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 | 43983 | jjdelcerro | 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 | 44259 | jjdelcerro | import org.gvsig.tools.util.LabeledValue; |
9 | 43983 | jjdelcerro | |
10 | /**
|
||
11 | *
|
||
12 | * @author jjdelcerro
|
||
13 | */
|
||
14 | 44259 | jjdelcerro | public interface Element extends LabeledValue, Comparable { |
15 | 43983 | jjdelcerro | |
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 | 44006 | jjdelcerro | public interface CalculatedElement extends SimpleElement { |
50 | |||
51 | } |
||
52 | |||
53 | 43983 | jjdelcerro | public String getName(); |
54 | 44259 | jjdelcerro | |
55 | public String getRenderedValue(); |
||
56 | |||
57 | 43983 | jjdelcerro | public String getDescription(); |
58 | |||
59 | public String getIconName(); |
||
60 | |||
61 | public ImageIcon getIcon(); |
||
62 | |||
63 | 44126 | jjdelcerro | public Component getAditionalPanel(JExpressionBuilder expressionBuilder); |
64 | 44098 | jjdelcerro | |
65 | public boolean isEnabled(); |
||
66 | 43983 | jjdelcerro | |
67 | 43987 | jjdelcerro | public void reload(); |
68 | 44259 | jjdelcerro | |
69 | public void used(); |
||
70 | |||
71 | public Element setConfig(ExpressionBuilderConfig config); |
||
72 | |||
73 | public ExpressionBuilderConfig getConfig();
|
||
74 | 43983 | jjdelcerro | } |