Statistics
| Revision:

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
package org.gvsig.fmap.dal.swing.featuretype;
2

    
3
import org.gvsig.fmap.dal.feature.EditableFeatureType;
4
import org.gvsig.fmap.dal.feature.FeatureType;
5
import org.gvsig.tools.swing.api.ChangeListenerSupport;
6
import org.gvsig.tools.swing.api.Component;
7

    
8
/**
9
 *
10
 * @author jjdelcerro
11
 */
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;
19
    public static final int MODE_VIRTUAL_FIELD = 2;
20
    
21
    
22
    public EditableFeatureType fetch(EditableFeatureType type);
23
    
24
    public void put(FeatureType type);
25
    
26
    /**
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

    
45
    public boolean isEditing();
46
}