Revision 35437
branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/dal/feature/swing/table/FeatureTypesControl.java | ||
---|---|---|
65 | 65 |
featureStore=fs; |
66 | 66 |
initialize(); |
67 | 67 |
} |
68 |
|
|
69 |
public void select(int index){ |
|
70 |
getJList().setSelectedIndex(index); |
|
71 |
} |
|
68 | 72 |
|
69 | 73 |
private void initialize() { |
70 | 74 |
GridBagConstraints gridBagConstraints = new GridBagConstraints() ; |
branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/dal/feature/swing/FeatureTypesTablePanel.java | ||
---|---|---|
131 | 131 |
super(isDoubleBuffered); |
132 | 132 |
this.tablePanel = tablePanel; |
133 | 133 |
typesControl = new FeatureTypesControl(tablePanel.getFeatureStore()); |
134 |
//Add a listener to change the selection |
|
135 |
typesControl.addFeatureTypeChangeListener(this); |
|
136 |
//Select first feature type |
|
137 |
typesControl.select(0); |
|
134 | 138 |
this.initializeUI(); |
139 |
|
|
135 | 140 |
} |
136 | 141 |
|
137 | 142 |
private boolean hasManyFeatureTypes() throws DataException { |
Also available in: Unified diff