Revision 186
org.gvsig.attributeeditor/trunk/org.gvsig.attributeeditor/org.gvsig.attributeeditor.mapcontrol/src/main/java/org/gvsig/fmap/mapcontrol/tools/Listeners/AttributeEditorPointListener.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
import org.gvsig.featureform.swing.CreateJFeatureFormException; |
40 | 40 |
import org.gvsig.featureform.swing.JFeatureForm; |
41 |
import org.gvsig.featureform.swing.JFeaturesForm; |
|
41 | 42 |
import org.gvsig.fmap.dal.exception.DataException; |
42 | 43 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
43 | 44 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
... | ... | |
78 | 79 |
public static final String ATTRIBUTE_EDITOR_TOOL_NAME = "attributeEditorTool"; |
79 | 80 |
private static final String ATTRIBUTE_EDITOR_FORM_NAME = "attributeEditorForm"; |
80 | 81 |
private MapControl mapControl; |
81 |
private JFeatureForm form; |
|
82 |
private JFeaturesForm form;
|
|
82 | 83 |
private FLyrVect currentLayer = null; |
83 | 84 |
/** |
84 | 85 |
* Radius as tolerance around the selected point, the area will be used to |
... | ... | |
86 | 87 |
*/ |
87 | 88 |
private static int TOL = 7; |
88 | 89 |
|
89 |
public AttributeEditorPointListener(MapControl mapControl, JFeatureForm form) { |
|
90 |
public AttributeEditorPointListener(MapControl mapControl, JFeaturesForm form) {
|
|
90 | 91 |
super(); |
91 | 92 |
this.mapControl = mapControl; |
92 | 93 |
this.form = form; |
... | ... | |
173 | 174 |
} |
174 | 175 |
} |
175 | 176 |
|
176 |
private JFeatureForm getForm() throws CreateJFeatureFormException, ServiceException, DataException { |
|
177 |
private JFeaturesForm getForm() throws CreateJFeatureFormException, ServiceException, DataException {
|
|
177 | 178 |
if (this.form == null) { |
178 | 179 |
DataSwingManager swingManager = DALSwingLocator.getSwingManager(); |
179 | 180 |
FeatureStore store = this.currentLayer.getFeatureStore(); |
180 |
this.form = swingManager.createJFeatureForm(store); |
|
181 |
this.form.setPreferredSize(new Dimension(300, 200)); |
|
181 |
this.form = swingManager.createJFeaturesForm(store);
|
|
182 |
this.form.asJComponent().setPreferredSize(new Dimension(300, 200));
|
|
182 | 183 |
this.form.asJComponent().setName(ATTRIBUTE_EDITOR_FORM_NAME); |
183 | 184 |
this.form.asJComponent().addComponentListener(this); |
184 | 185 |
} |
Also available in: Unified diff