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 @ 44263
History | View | Annotate | Download (1.57 KB)
1 |
package org.gvsig.expressionevaluator.swing; |
---|---|
2 |
|
3 |
import java.util.Collection; |
4 |
import java.util.Iterator; |
5 |
import java.util.List; |
6 |
import javax.swing.ImageIcon; |
7 |
import org.gvsig.expressionevaluator.Function; |
8 |
import org.gvsig.tools.swing.api.Component; |
9 |
import org.gvsig.tools.util.LabeledValue; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author jjdelcerro
|
14 |
*/
|
15 |
public interface Element extends LabeledValue, Comparable { |
16 |
|
17 |
public interface SimpleElement extends Element { |
18 |
|
19 |
} |
20 |
|
21 |
public interface GroupElement extends Element, Iterable<Element> { |
22 |
|
23 |
public Element get(int index); |
24 |
|
25 |
public int size(); |
26 |
|
27 |
@Override
|
28 |
public Iterator<Element> iterator(); |
29 |
|
30 |
public void addElement(Element element); |
31 |
|
32 |
public void addElement(Function function); |
33 |
|
34 |
public List<Element> getElements(); |
35 |
|
36 |
} |
37 |
|
38 |
public interface FunctionElement extends SimpleElement { |
39 |
|
40 |
public Function getFunction();
|
41 |
} |
42 |
|
43 |
public interface ConstantElement extends SimpleElement { |
44 |
|
45 |
} |
46 |
|
47 |
public interface CalculatedElement extends SimpleElement { |
48 |
|
49 |
} |
50 |
|
51 |
public String getName(); |
52 |
|
53 |
public String getRenderedValue(); |
54 |
|
55 |
public String getDescription(); |
56 |
|
57 |
public String getIconName(); |
58 |
|
59 |
public ImageIcon getIcon(); |
60 |
|
61 |
public Collection<Element> getValues(); |
62 |
|
63 |
public boolean hasMoreValues(); |
64 |
|
65 |
public Component getAditionalPanel(JExpressionBuilder expressionBuilder); |
66 |
|
67 |
public boolean isEnabled(); |
68 |
|
69 |
public void reload(); |
70 |
|
71 |
public void used(); |
72 |
|
73 |
public Element setConfig(ExpressionBuilderConfig config); |
74 |
|
75 |
public ExpressionBuilderConfig getConfig();
|
76 |
} |