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

History | View | Annotate | Download (1.54 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
import org.gvsig.tools.util.LabeledValue;
9

    
10
/**
11
 *
12
 * @author jjdelcerro
13
 */
14
public interface Element extends LabeledValue, Comparable {
15

    
16
    public interface SimpleElement extends Element {
17

    
18
    }
19

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

    
22
        public Element get(int index);
23

    
24
        public int size();
25

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

    
29
        public void addElement(Element element);
30

    
31
        public void addElement(Function function);
32

    
33
        public List<Element> getElements();
34

    
35
        public boolean hasSubgroups();
36

    
37
        public boolean hasMoreElements();
38
    }
39

    
40
    public interface FunctionElement extends SimpleElement {
41

    
42
        public Function getFunction();
43
    }
44

    
45
    public interface ConstantElement extends SimpleElement {
46

    
47
    }
48

    
49
    public interface CalculatedElement extends SimpleElement {
50

    
51
    }
52

    
53
    public String getName();
54
    
55
    public String getRenderedValue();
56
    
57
    public String getDescription();
58

    
59
    public String getIconName();
60

    
61
    public ImageIcon getIcon();
62

    
63
    public Component getAditionalPanel(JExpressionBuilder expressionBuilder);
64
    
65
    public boolean isEnabled();
66

    
67
    public void reload();
68
    
69
    public void used();
70
    
71
    public Element setConfig(ExpressionBuilderConfig config);
72
    
73
    public ExpressionBuilderConfig getConfig();
74
}