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/ExpressionEvaluatorSwingManager.java
ExpressionEvaluatorSwingManager.java | ||
---|---|---|
1 | 1 |
|
2 | 2 |
package org.gvsig.expressionevaluator.swing; |
3 | 3 |
|
4 |
import java.util.Collection; |
|
4 | 5 |
import java.util.List; |
6 |
import javax.swing.JButton; |
|
7 |
import javax.swing.text.JTextComponent; |
|
5 | 8 |
import org.gvsig.expressionevaluator.Function; |
6 |
import org.gvsig.expressionevaluator.swing.JExpressionBuilder.Element; |
|
7 |
import org.gvsig.expressionevaluator.swing.JExpressionBuilder.GroupElement; |
|
9 |
import org.gvsig.expressionevaluator.SymbolTable; |
|
10 |
import org.gvsig.expressionevaluator.swing.Element.ConstantElement; |
|
11 |
import org.gvsig.expressionevaluator.swing.Element.FunctionElement; |
|
12 |
import org.gvsig.expressionevaluator.swing.Element.GroupElement; |
|
13 |
import org.gvsig.expressionevaluator.swing.Element.VariableElement; |
|
8 | 14 |
|
9 | 15 |
public interface ExpressionEvaluatorSwingManager { |
10 | 16 |
|
11 |
public List<Element> getElements();
|
|
17 |
public List<Element> createElements(Collection<SymbolTable> symbolTables);
|
|
12 | 18 |
|
13 | 19 |
public JExpressionBuilder createJExpressionBuilder(); |
14 | 20 |
|
15 |
public GroupElement createGroup(String name); |
|
21 |
public JExpressionPicker createJExpressionPicker(); |
|
22 |
|
|
23 |
public void registerElement(ElementFactory factory); |
|
16 | 24 |
|
17 |
public GroupElement createGroup(String name, List<Element> elements); |
|
25 |
public Element createElement(String name, Object... parameters); |
|
26 |
|
|
27 |
public GroupElement createGroupElement(String name); |
|
28 |
|
|
29 |
public GroupElement createGroupElement(String name, List<Element> elements); |
|
18 | 30 |
|
19 |
public Element createElement(Function function);
|
|
31 |
public FunctionElement createFunctionElement(Function function);
|
|
20 | 32 |
|
33 |
public ConstantElement createConstantElement(Object value); |
|
34 |
|
|
35 |
public ConstantElement createConstantElement(Object value, String description); |
|
36 |
|
|
37 |
public VariableElement createVariableElement(String label, String source, String name, String typeName, String description); |
|
38 |
|
|
39 |
public ExpressionPickerController createExpressionPickerController(JTextComponent text, JButton button); |
|
21 | 40 |
} |
Also available in: Unified diff