Revision 44340 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 | ||
---|---|---|
25 | 25 |
import java.util.Collection; |
26 | 26 |
import java.util.Collections; |
27 | 27 |
import java.util.LinkedHashMap; |
28 |
import java.util.List; |
|
28 | 29 |
import java.util.Map; |
29 | 30 |
import java.util.function.Predicate; |
30 | 31 |
import javax.swing.JButton; |
31 | 32 |
import javax.swing.JComboBox; |
32 | 33 |
import javax.swing.JList; |
33 | 34 |
import javax.swing.JTextField; |
35 |
import javax.swing.table.TableModel; |
|
34 | 36 |
import org.gvsig.expressionevaluator.swing.ExpressionEvaluatorSwingLocator; |
35 | 37 |
import org.gvsig.expressionevaluator.swing.ExpressionEvaluatorSwingManager; |
36 | 38 |
import org.gvsig.expressionevaluator.swing.JExpressionBuilder; |
... | ... | |
80 | 82 |
import org.gvsig.tools.dynobject.DynStruct; |
81 | 83 |
import org.gvsig.tools.exception.BaseException; |
82 | 84 |
import org.gvsig.fmap.dal.swing.DALActionFactory; |
85 |
import org.gvsig.fmap.dal.swing.impl.featuretable.SimpleFeaturesTableModel; |
|
83 | 86 |
import org.gvsig.fmap.dal.swing.impl.jdbc.DefaultJDBCConnectionDialog; |
84 | 87 |
import org.gvsig.fmap.dal.swing.impl.jdbc.JDBCConnectionPickerController; |
85 | 88 |
import org.gvsig.fmap.dal.swing.jdbc.JDBCConnectionDialog; |
... | ... | |
292 | 295 |
} |
293 | 296 |
|
294 | 297 |
@Override |
298 |
public DALActionFactory getStoreAction(String name) { |
|
299 |
DALActionFactory action = this.featureStoreSearchActions.get(name.toLowerCase()); |
|
300 |
return action; |
|
301 |
} |
|
302 |
|
|
303 |
@Override |
|
295 | 304 |
public PickerController<JDBCServerExplorerParameters> createJDBCConnectionPickerController( |
296 | 305 |
JComboBox cboConnection, JButton btnConnection |
297 | 306 |
) { |
298 | 307 |
JDBCConnectionPickerController x = new JDBCConnectionPickerController(cboConnection, btnConnection); |
299 | 308 |
return x; |
300 | 309 |
} |
310 |
|
|
311 |
@Override |
|
312 |
public TableModel createSimpleFeaturesTableModel(FeatureStore store) { |
|
313 |
try { |
|
314 |
SimpleFeaturesTableModel m = new SimpleFeaturesTableModel(store); |
|
315 |
return m; |
|
316 |
} catch (DataException ex) { |
|
317 |
throw new RuntimeException("Can't creatre SimpleFeaturesTableModel.", ex); |
|
318 |
} |
|
319 |
} |
|
301 | 320 |
|
321 |
@Override |
|
322 |
public TableModel createSimpleFeaturesTableModel(FeatureType featureType, List<String> columnNames, List<Feature> features) { |
|
323 |
SimpleFeaturesTableModel m = new SimpleFeaturesTableModel(featureType, columnNames, features); |
|
324 |
return m; |
|
325 |
} |
|
302 | 326 |
|
303 | 327 |
} |
Also available in: Unified diff