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