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

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

    
43
    public int getMode();
44
}