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 / FeatureTypeAttributePanel.java @ 47403

History | View | Annotate | Download (1.54 KB)

1
package org.gvsig.fmap.dal.swing.featuretype;
2

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

    
8
/**
9
 *
10
 * @author jjdelcerro
11
 */
12
public interface FeatureTypeAttributePanel extends Component {
13
    
14
    public static final int MODE_EDIT_ONLY_METADATA = FeatureTypePanel.MODE_EDIT_ONLY_METADATA;
15
    public static final int MODE_EDIT_ALL = FeatureTypePanel.MODE_EDIT_ALL;
16
    public static final int MODE_SHOW_ONLY = FeatureTypePanel.MODE_SHOW_ONLY;
17
    public static final int MODE_VIRTUAL_FIELD = 100;
18

    
19
    public EditableFeatureAttributeDescriptor fetch(EditableFeatureAttributeDescriptor descriptor);
20
    
21
    public void put(FeatureAttributeDescriptor descriptor);
22

    
23
    public void setFeatureType(FeatureType featureType);
24
    
25
    public void clean();
26
    
27
    public void setNameAsNew(FeatureType featureType);
28
    
29
    public String getName();
30
    
31
    /**
32
     * Sets the display mode of the panel.
33
     * Can be:
34
     * <ul>
35
     * <li>MODE_EDIT_ONLY_METADATA, only allows you to modify the metadata. 
36
     *   It can be used without being in store edition.
37
     * </li>
38
     * <li>MODE_EDIT_ALL, allows you to modify all values. 
39
     * The store must be in edition.
40
     * </li>
41
     * <li>MODE_SHOW_ONLY, only display the values.</li>
42
     * </ul>
43
     * 
44
     * @see {FeatureTypePanel.setMode}
45
     * 
46
     * @param mode 
47
     */
48
    public void setMode(int mode);
49

    
50
    public int getMode();
51
}