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 @ 44505

History | View | Annotate | Download (1.24 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
    
20
    
21
    public EditableFeatureType fetch(EditableFeatureType type);
22
    
23
    public void put(FeatureType type);
24
    
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();
43

    
44
    public boolean isModifyingAField();
45
}