Revision 43983 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
JExpressionBuilder.java | ||
---|---|---|
1 |
|
|
2 | 1 |
package org.gvsig.expressionevaluator.swing; |
3 | 2 |
|
3 |
import java.util.Collection; |
|
4 |
import java.util.Collections; |
|
4 | 5 |
import java.util.Iterator; |
5 | 6 |
import java.util.List; |
7 |
import javax.swing.ImageIcon; |
|
8 |
import org.gvsig.expressionevaluator.Expression; |
|
6 | 9 |
import org.gvsig.expressionevaluator.Function; |
10 |
import org.gvsig.expressionevaluator.SymbolTable; |
|
7 | 11 |
import org.gvsig.tools.swing.api.Component; |
8 | 12 |
|
9 | 13 |
/** |
10 | 14 |
* |
11 | 15 |
* @author jjdelcerro |
12 | 16 |
*/ |
13 |
public interface JExpressionBuilder extends Component { |
|
14 |
|
|
15 |
public interface Element { |
|
16 |
public String getName(); |
|
17 |
|
|
18 |
public String getDescription(); |
|
19 |
} |
|
17 |
public interface JExpressionBuilder extends Component, ExpressionBuilderConfig { |
|
20 | 18 |
|
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 |
public void addElement(Function function); |
|
19 |
public Expression getExpression(); |
|
37 | 20 |
|
38 |
public List<Element> getElements(); |
|
39 |
} |
|
40 |
|
|
41 |
|
|
21 |
public void setExpression(Expression expression); |
|
42 | 22 |
|
43 |
public String getExpression(); |
|
44 |
|
|
45 |
public List<Element> getElements(); |
|
46 |
|
|
47 | 23 |
} |
Also available in: Unified diff