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 @ 43987
History | View | Annotate | Download (1.34 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 VariableElement extends SimpleElement { |
50 |
|
51 |
public String getSource(); |
52 |
|
53 |
public String getLabel(); |
54 |
|
55 |
public String getTypeName(); |
56 |
} |
57 |
|
58 |
public String getName(); |
59 |
|
60 |
public String getDescription(); |
61 |
|
62 |
public String getIconName(); |
63 |
|
64 |
public ImageIcon getIcon(); |
65 |
|
66 |
public Component getAditionalPanel(); |
67 |
|
68 |
public void reload(); |
69 |
} |