svn-gvsig-desktop / 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 @ 46978
History | View | Annotate | Download (1.28 KB)
1 | 44096 | jjdelcerro | package org.gvsig.fmap.dal.swing.featuretype; |
---|---|---|---|
2 | 44077 | jjdelcerro | |
3 | import org.gvsig.fmap.dal.feature.EditableFeatureType; |
||
4 | import org.gvsig.fmap.dal.feature.FeatureType; |
||
5 | 44478 | jjdelcerro | import org.gvsig.tools.swing.api.ChangeListenerSupport; |
6 | 44077 | jjdelcerro | import org.gvsig.tools.swing.api.Component; |
7 | |||
8 | /**
|
||
9 | *
|
||
10 | * @author jjdelcerro
|
||
11 | */
|
||
12 | 44478 | jjdelcerro | public interface FeatureTypePanel extends Component, ChangeListenerSupport { |
13 | 44505 | jjdelcerro | |
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; |
||
19 | 46978 | fdiaz | public static final int MODE_VIRTUAL_FIELD = 2; |
20 | 44077 | jjdelcerro | |
21 | 44505 | jjdelcerro | |
22 | 44077 | jjdelcerro | public EditableFeatureType fetch(EditableFeatureType type);
|
23 | |||
24 | public void put(FeatureType type); |
||
25 | |||
26 | 44505 | jjdelcerro | /**
|
27 | * Sets the display mode of the panel.
|
||
28 | * Can be:
|
||
29 | * <ul>
|
||
30 | * <li>MODE_EDIT_ONLY_METADATA, only allows you to modify the metadata.
|
||
31 | * It can be used without being in store edition.
|
||
32 | * </li>
|
||
33 | * <li>MODE_EDIT_ALL, allows you to modify all values.
|
||
34 | * The store must be in edition.
|
||
35 | * </li>
|
||
36 | * <li>MODE_SHOW_ONLY, only display the values.</li>
|
||
37 | * </ul>
|
||
38 | *
|
||
39 | * @param mode
|
||
40 | */
|
||
41 | public void setMode(int mode); |
||
42 | |||
43 | public int getMode(); |
||
44 | 44077 | jjdelcerro | |
45 | 45739 | jjdelcerro | public boolean isEditing(); |
46 | 44077 | jjdelcerro | } |