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

History | View | Annotate | Download (1.38 KB)

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

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

    
9
/**
10
 *
11
 * @author jjdelcerro
12
 */
13
public interface FeatureTypePanel extends Component, ChangeListenerSupport {
14

    
15
    public static final String CONFIGURABLE_PANEL_ID = "FeatureTypePanel";
16

    
17
    public static final int MODE_EDIT_ONLY_METADATA = 0;
18
    public static final int MODE_EDIT_ALL = 1;
19
    public static final int MODE_SHOW_ONLY = 2;
20
    public static final int MODE_VIRTUAL_FIELD = 2;
21
    
22
    
23
    public EditableFeatureType fetch(EditableFeatureType type);
24
    
25
    public void put(FeatureType type);
26
    
27
    /**
28
     * Sets the display mode of the panel.
29
     * Can be:
30
     * <ul>
31
     * <li>MODE_EDIT_ONLY_METADATA, only allows you to modify the metadata. 
32
     *   It can be used without being in store edition.
33
     * </li>
34
     * <li>MODE_EDIT_ALL, allows you to modify all values. 
35
     * The store must be in edition.
36
     * </li>
37
     * <li>MODE_SHOW_ONLY, only display the values.</li>
38
     * </ul>
39
     * 
40
     * @param mode 
41
     */    
42
    public void setMode(int mode);
43
    
44
    public int getMode();
45

    
46
    public boolean isEditing();
47
    
48
    public void setDefaultProjection(IProjection projection);
49
}