Revision 44505 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/featuretype/FeatureTypePanel.java
FeatureTypePanel.java | ||
---|---|---|
10 | 10 |
* @author jjdelcerro |
11 | 11 |
*/ |
12 | 12 |
public interface FeatureTypePanel extends Component, ChangeListenerSupport { |
13 |
|
|
14 |
public static final String CONFIGURABLE_PANEL_ID = "FeatureTypePanel"; |
|
15 |
|
|
16 |
public static final int MODE_EDIT_ONLY_METADATA = 0; |
|
17 |
public static final int MODE_EDIT_ALL = 1; |
|
18 |
public static final int MODE_SHOW_ONLY = 2; |
|
13 | 19 |
|
20 |
|
|
14 | 21 |
public EditableFeatureType fetch(EditableFeatureType type); |
15 | 22 |
|
16 | 23 |
public void put(FeatureType type); |
17 | 24 |
|
18 |
public void setEditable(boolean editable); |
|
25 |
/** |
|
26 |
* Sets the display mode of the panel. |
|
27 |
* Can be: |
|
28 |
* <ul> |
|
29 |
* <li>MODE_EDIT_ONLY_METADATA, only allows you to modify the metadata. |
|
30 |
* It can be used without being in store edition. |
|
31 |
* </li> |
|
32 |
* <li>MODE_EDIT_ALL, allows you to modify all values. |
|
33 |
* The store must be in edition. |
|
34 |
* </li> |
|
35 |
* <li>MODE_SHOW_ONLY, only display the values.</li> |
|
36 |
* </ul> |
|
37 |
* |
|
38 |
* @param mode |
|
39 |
*/ |
|
40 |
public void setMode(int mode); |
|
41 |
|
|
42 |
public int getMode(); |
|
19 | 43 |
|
20 | 44 |
public boolean isModifyingAField(); |
21 | 45 |
} |
Also available in: Unified diff