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 @ 47417
History | View | Annotate | Download (3.7 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.DALActionFactory; |
11 |
import org.gvsig.fmap.dal.swing.DALActionFactory.DALActionContext; |
12 |
import org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel; |
13 |
import org.gvsig.tools.dispose.Disposable; |
14 |
import org.gvsig.tools.swing.api.ActionListenerSupport; |
15 |
import org.gvsig.tools.swing.api.Component; |
16 |
import org.gvsig.tools.util.Factory; |
17 |
import org.gvsig.tools.util.PropertiesSupport; |
18 |
|
19 |
/**
|
20 |
*
|
21 |
* @author jjdelcerro
|
22 |
*/
|
23 |
public interface FeatureStoreSearchPanel extends Component, ActionListenerSupport, Disposable, PropertiesSupport { |
24 |
|
25 |
public interface SearchResultsPanelFactory extends Factory<Component> { |
26 |
|
27 |
@Override
|
28 |
public Component create(Object... os); |
29 |
|
30 |
public String getTitle(); |
31 |
} |
32 |
|
33 |
public static final String CONFIGURABLE_PANEL_ID = "FeatureStoreSearchPanel"; |
34 |
|
35 |
public static final String ACTION_CONTEXT_NAME = "FeatureStoreSearchPanel"; |
36 |
|
37 |
public static final int DEFAULT_WIDTH = 715; |
38 |
public static final int DEFAULT_HEIGHT = 450; |
39 |
|
40 |
public static final int NOT_HANDLE_NULL = 0; |
41 |
public static final int NULL_AS_TRUE = 1; |
42 |
public static final int NULL_AS_FALSE = 2; |
43 |
|
44 |
public static final int STATUS_OK = 0; |
45 |
public static final int STATUS_NOT_VALID = 1; |
46 |
public static final int STATUS_ERROR1 = 2; |
47 |
public static final int STATUS_ERROR2 = 3; |
48 |
|
49 |
public void clear(); |
50 |
|
51 |
public void setEnabled(boolean enabled); |
52 |
|
53 |
public FeatureStore getStore();
|
54 |
|
55 |
public FeatureType getFeatureType();
|
56 |
|
57 |
// public FeatureQuery getQuery();
|
58 |
|
59 |
public Feature getLastSelectedFeature();
|
60 |
|
61 |
public FeatureQuery getLastQuery();
|
62 |
|
63 |
public Expression getFilterForSelectedFeature(); |
64 |
|
65 |
public Expression getFilterForSelectedFeatures(); |
66 |
|
67 |
public int getSelectedFeatureCount(); |
68 |
|
69 |
public boolean setFilter(Expression filter); |
70 |
|
71 |
public JComponent getActionButton(String name); |
72 |
|
73 |
public void setShowActions(boolean showActions); |
74 |
|
75 |
public boolean isShowActions(); |
76 |
|
77 |
public List<SearchConditionPanel> getConditionPanels(); |
78 |
|
79 |
public SearchConditionPanel getConditionPanel(String name); |
80 |
|
81 |
/**
|
82 |
* Performs the search with the existing values in the user
|
83 |
* interface asynchronously.
|
84 |
*
|
85 |
* @return status of the search (ok, error,...)
|
86 |
*/
|
87 |
public int search(); |
88 |
|
89 |
/**
|
90 |
* Performs the search with the indicated parameters synchronously.
|
91 |
*
|
92 |
* @param params
|
93 |
* @return status of the search (ok, error,...)
|
94 |
*/
|
95 |
public int search(SearchParameters params); |
96 |
|
97 |
public SimpleFeaturesTableModel getResultsTableModel();
|
98 |
|
99 |
public void put(SearchParameters params); |
100 |
|
101 |
public SearchParameters fetch(SearchParameters params);
|
102 |
|
103 |
public void setFilterOnlyMode(boolean filterOnlyMode); |
104 |
|
105 |
public boolean isFilterOnlyMode(); |
106 |
|
107 |
public void setPostProcessEnabled(boolean enabled); |
108 |
|
109 |
public void setGroupByEnabled(boolean enabled); |
110 |
|
111 |
public boolean isPostProcessEnabled(); |
112 |
|
113 |
public boolean isGroupByEnabled(); |
114 |
|
115 |
public void setAutomaticallySearch(boolean automaticallySearch); |
116 |
|
117 |
public boolean isAutomaticallySearch(); |
118 |
|
119 |
public String getLastErrorMessage(); |
120 |
|
121 |
public void addResultPanel(String name, String title, Component component); |
122 |
|
123 |
public void removeResultPanel(String name); |
124 |
|
125 |
public DALActionContext getSearchActionContext();
|
126 |
} |