svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.swing / org.gvsig.fmap.dal.swing.api / src / main / java / org / gvsig / fmap / dal / swing / searchpanel / FeatureStoreSearchPanel.java @ 46485
History | View | Annotate | Download (2.88 KB)
1 |
package org.gvsig.fmap.dal.swing.searchpanel; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
import javax.swing.JComponent; |
5 |
import org.gvsig.expressionevaluator.Expression; |
6 |
import org.gvsig.fmap.dal.feature.Feature; |
7 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
8 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
9 |
import org.gvsig.fmap.dal.feature.FeatureType; |
10 |
import org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel; |
11 |
import org.gvsig.tools.dispose.Disposable; |
12 |
import org.gvsig.tools.swing.api.ActionListenerSupport; |
13 |
import org.gvsig.tools.swing.api.Component; |
14 |
import org.gvsig.tools.util.PropertiesSupport; |
15 |
|
16 |
/**
|
17 |
*
|
18 |
* @author jjdelcerro
|
19 |
*/
|
20 |
public interface FeatureStoreSearchPanel extends Component, ActionListenerSupport, Disposable, PropertiesSupport { |
21 |
|
22 |
public static final String CONFIGURABLE_PANEL_ID = "FeatureStoreSearchPanel"; |
23 |
|
24 |
public static final String ACTION_CONTEXT_NAME = "FeatureStoreSearchPanel"; |
25 |
|
26 |
public static final int DEFAULT_WIDTH = 715; |
27 |
public static final int DEFAULT_HEIGHT = 450; |
28 |
|
29 |
public static final int NOT_HANDLE_NULL = 0; |
30 |
public static final int NULL_AS_TRUE = 1; |
31 |
public static final int NULL_AS_FALSE = 2; |
32 |
|
33 |
public static final int STATUS_OK = 0; |
34 |
public static final int STATUS_NOT_VALID = 1; |
35 |
public static final int STATUS_ERROR1 = 2; |
36 |
public static final int STATUS_ERROR2 = 3; |
37 |
|
38 |
public void clear(); |
39 |
|
40 |
public void setEnabled(boolean enabled); |
41 |
|
42 |
public FeatureStore getStore();
|
43 |
|
44 |
public FeatureType getFeatureType();
|
45 |
|
46 |
// public FeatureQuery getQuery();
|
47 |
|
48 |
public Feature getLastSelectedFeature();
|
49 |
|
50 |
public FeatureQuery getLastQuery();
|
51 |
|
52 |
public Expression getFilterForSelectedFeature(); |
53 |
|
54 |
public int getSelectedFeatureCount(); |
55 |
|
56 |
public boolean setFilter(Expression filter); |
57 |
|
58 |
public JComponent getActionButton(String name); |
59 |
|
60 |
public void setShowActions(boolean showActions); |
61 |
|
62 |
public boolean isShowActions(); |
63 |
|
64 |
public List<SearchConditionPanel> getConditionPanels(); |
65 |
|
66 |
public SearchConditionPanel getConditionPanel(String name); |
67 |
|
68 |
/**
|
69 |
* Performs the search with the existing values in the user
|
70 |
* interface asynchronously.
|
71 |
*
|
72 |
* @return status of the search (ok, error,...)
|
73 |
*/
|
74 |
public int search(); |
75 |
|
76 |
/**
|
77 |
* Performs the search with the indicated parameters synchronously.
|
78 |
*
|
79 |
* @param params
|
80 |
* @return status of the search (ok, error,...)
|
81 |
*/
|
82 |
public int search(SearchParameters params); |
83 |
|
84 |
public SimpleFeaturesTableModel getResultsTableModel();
|
85 |
|
86 |
public void put(SearchParameters params); |
87 |
|
88 |
public SearchParameters fetch(SearchParameters params);
|
89 |
|
90 |
public void setFilterOnlyMode(boolean filterOnlyMode); |
91 |
|
92 |
public boolean isFilterOnlyMode(); |
93 |
|
94 |
public void setAutomaticallySearch(boolean automaticallySearch); |
95 |
|
96 |
public boolean isAutomaticallySearch(); |
97 |
|
98 |
} |