Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.swing / org.gvsig.expressionevaluator.swing.api / src / main / java / org / gvsig / expressionevaluator / swing / Element.java @ 44006

History | View | Annotate | Download (1.44 KB)

1
package org.gvsig.expressionevaluator.swing;
2

    
3
import java.util.Iterator;
4
import java.util.List;
5
import javax.swing.ImageIcon;
6
import org.gvsig.expressionevaluator.Function;
7
import org.gvsig.tools.swing.api.Component;
8

    
9
/**
10
 *
11
 * @author jjdelcerro
12
 */
13
public interface Element {
14

    
15
    public interface SimpleElement extends Element {
16

    
17
    }
18

    
19
    public interface GroupElement extends Element, Iterable<Element> {
20

    
21
        public Element get(int index);
22

    
23
        public int size();
24

    
25
        @Override
26
        public Iterator<Element> iterator();
27

    
28
        public void addElement(Element element);
29

    
30
        public void addElement(Function function);
31

    
32
        public List<Element> getElements();
33

    
34
        public boolean hasSubgroups();
35

    
36
        public boolean hasMoreElements();
37
    }
38

    
39
    public interface FunctionElement extends SimpleElement {
40

    
41
        public Function getFunction();
42
    }
43

    
44
    public interface ConstantElement extends SimpleElement {
45

    
46
        public Object getValue();
47
    }
48

    
49
    public interface CalculatedElement extends SimpleElement {
50

    
51
        public Object getValue();
52
    }
53

    
54
    public interface VariableElement extends SimpleElement {
55

    
56
        public String getSource();
57

    
58
        public String getLabel();
59

    
60
        public String getTypeName();
61
    }
62

    
63
    public String getName();
64

    
65
    public String getDescription();
66

    
67
    public String getIconName();
68

    
69
    public ImageIcon getIcon();
70

    
71
    public Component getAditionalPanel();
72

    
73
    public void reload();
74
}