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