Revision 44707 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/DefaultDataSwingManager.java
DefaultDataSwingManager.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
import java.util.Collection; |
26 | 26 |
import java.util.Collections; |
27 |
import java.util.HashMap; |
|
27 | 28 |
import java.util.LinkedHashMap; |
28 | 29 |
import java.util.List; |
29 | 30 |
import java.util.Map; |
... | ... | |
88 | 89 |
import org.gvsig.tools.exception.BaseException; |
89 | 90 |
import org.gvsig.fmap.dal.swing.DALActionFactory; |
90 | 91 |
import org.gvsig.fmap.dal.swing.DALActionFactory.DALActionContext; |
92 |
import org.gvsig.fmap.dal.swing.featuretype.FeatureAttributeSelectionPanel; |
|
91 | 93 |
import org.gvsig.fmap.dal.swing.impl.featuretable.SimpleFeaturesTableModel; |
92 | 94 |
import org.gvsig.fmap.dal.swing.impl.featuretype.DefaultFeatureAttributeListCellRenderer; |
95 |
import org.gvsig.fmap.dal.swing.impl.featuretype.DefaultFeatureAttributeSelectionPanel; |
|
93 | 96 |
import org.gvsig.fmap.dal.swing.impl.jdbc.DefaultJDBCConnectionDialog; |
94 | 97 |
import org.gvsig.fmap.dal.swing.impl.jdbc.JDBCConnectionPickerController; |
95 | 98 |
import org.gvsig.fmap.dal.swing.impl.orderpanel.DefaultFeatureStoreOrderPanel; |
96 | 99 |
import org.gvsig.fmap.dal.swing.jdbc.JDBCConnectionDialog; |
97 | 100 |
import org.gvsig.fmap.dal.swing.orderpanel.FeatureStoreOrderPanel; |
101 |
import org.gvsig.fmap.dal.swing.searchpanel.SearchConditionPanel.SearchConditionPanelFactory; |
|
98 | 102 |
import org.gvsig.tools.swing.api.pickercontroller.PickerController; |
99 | 103 |
|
100 | 104 |
|
... | ... | |
106 | 110 |
public class DefaultDataSwingManager implements DataSwingManager { |
107 | 111 |
|
108 | 112 |
private final Map<String,DALActionFactory> featureStoreSearchActions; |
113 |
private Map<String,SearchConditionPanelFactory> searchConditionPanelFactories; |
|
109 | 114 |
|
110 | 115 |
public DefaultDataSwingManager() { |
111 | 116 |
this.featureStoreSearchActions = new LinkedHashMap<>(); |
... | ... | |
372 | 377 |
return p; |
373 | 378 |
} |
374 | 379 |
|
380 |
@Override |
|
381 |
public Iterable<SearchConditionPanelFactory> getSearchConditionPanels() { |
|
382 |
if( this.searchConditionPanelFactories==null ) { |
|
383 |
return Collections.EMPTY_LIST; |
|
384 |
} |
|
385 |
return this.searchConditionPanelFactories.values(); |
|
386 |
} |
|
387 |
|
|
388 |
@Override |
|
389 |
public void registerSearchConditionPanel(SearchConditionPanelFactory factory) { |
|
390 |
if( this.searchConditionPanelFactories==null ) { |
|
391 |
this.searchConditionPanelFactories = new HashMap<>(); |
|
392 |
} |
|
393 |
this.searchConditionPanelFactories.put(factory.getName(), factory); |
|
394 |
} |
|
395 |
|
|
396 |
@Override |
|
397 |
public FeatureAttributeSelectionPanel createFeatureAttributeSelectionPanel() { |
|
398 |
FeatureAttributeSelectionPanel p = new DefaultFeatureAttributeSelectionPanel(); |
|
399 |
return p; |
|
400 |
} |
|
401 |
|
|
375 | 402 |
} |
Also available in: Unified diff