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

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

    
48
    public int getMode();
49
}