Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.util / org.gvsig.tools.util.api / src / main / java / org / gvsig / propertypage / PropertiesPage.java @ 1746

History | View | Annotate | Download (1.59 KB)

1
package org.gvsig.propertypage;
2

    
3
import org.gvsig.tools.swing.api.Component;
4
import org.gvsig.tools.util.Invocable;
5

    
6

    
7

    
8

    
9
public interface PropertiesPage extends Component {
10
    
11
    public interface SetPageEnabledEvent {
12
        public static int ID = 0xCAFE0001;
13
        public static String ACTION_COMMAND = "SetPageEnabled";
14
        
15
        public Invocable getFilter();
16
        public boolean isEnabled();
17
    }
18
    
19
    public void setData(Object data);
20
    
21
    /**
22
     * Title of the properties page
23
     * 
24
     * @return the title.
25
     */    
26
    public String getTitle();
27
    
28
    /**
29
     * The priority of this properties page.
30
     * When more high is the priority more to the left are set properties page.
31
     * 
32
     * @return the priority of the properties page
33
     */
34
    public int getPriority();
35

    
36
    /**
37
     * Called when the button accept is presed by the user.
38
     * If return false the panel is not hidden and do not call whenAccept of
39
     * other properties pages.
40
     * 
41
     * @return false to cancel the user action.
42
     */
43
    public boolean whenAccept();
44

    
45
    /**
46
     * Called when the button apply is presed by the user.
47
     * If return false the panel do not call whenApply of
48
     * other properties pages.
49
     * 
50
     * @return false to cancel the user action.
51
     */
52
    public boolean whenApply();
53

    
54
    /**
55
     * Called when the button accept is presed by the user.
56
     * If return false the panel is not hidden and do not call whenCancel of
57
     * other properties pages.
58
     * 
59
     * @return false to cancel the user action.
60
     */
61
    public boolean whenCancel();
62
    
63
}