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 / JExpressionBuilder.java @ 43970
History | View | Annotate | Download (1.01 KB)
1 | 43939 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.expressionevaluator.swing; |
||
3 | |||
4 | import java.util.Iterator; |
||
5 | import java.util.List; |
||
6 | import org.gvsig.expressionevaluator.Function; |
||
7 | import org.gvsig.tools.swing.api.Component; |
||
8 | |||
9 | /**
|
||
10 | *
|
||
11 | * @author jjdelcerro
|
||
12 | */
|
||
13 | public interface JExpressionBuilder extends Component { |
||
14 | |||
15 | public interface Element { |
||
16 | public String getName(); |
||
17 | |||
18 | public String getDescription(); |
||
19 | } |
||
20 | |||
21 | public interface SimpleElement extends Element { |
||
22 | public Function getFunction();
|
||
23 | |||
24 | public Component getAditionalPanel(); |
||
25 | } |
||
26 | |||
27 | public interface GroupElement extends Element, Iterable<Element> { |
||
28 | public Element get(int index); |
||
29 | |||
30 | public int size(); |
||
31 | |||
32 | @Override
|
||
33 | public Iterator<Element> iterator(); |
||
34 | |||
35 | public void addElement(Element element); |
||
36 | 43969 | jjdelcerro | public void addElement(Function function); |
37 | 43970 | jjdelcerro | |
38 | public List<Element> getElements(); |
||
39 | 43939 | jjdelcerro | } |
40 | |||
41 | |||
42 | |||
43 | public String getExpression(); |
||
44 | |||
45 | public List<Element> getElements(); |
||
46 | |||
47 | } |