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 / ExpressionEvaluatorSwingManager.java @ 44076
History | View | Annotate | Download (1.72 KB)
1 |
|
---|---|
2 |
package org.gvsig.expressionevaluator.swing; |
3 |
|
4 |
import java.util.Collection; |
5 |
import java.util.List; |
6 |
import javax.swing.JButton; |
7 |
import javax.swing.text.JTextComponent; |
8 |
import org.gvsig.expressionevaluator.Function; |
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; |
14 |
import org.gvsig.tools.swing.api.pickercontroller.PickerController; |
15 |
|
16 |
public interface ExpressionEvaluatorSwingManager { |
17 |
|
18 |
public List<Element> createElements(Collection<SymbolTable> symbolTables); |
19 |
|
20 |
public JExpressionBuilder createJExpressionBuilder();
|
21 |
|
22 |
public JExpressionPicker createJExpressionPicker();
|
23 |
|
24 |
public void registerElement(ElementFactory factory); |
25 |
|
26 |
public Collection<ElementFactory> getElementFactories(); |
27 |
|
28 |
public Element createElement(String name, Object... parameters); |
29 |
|
30 |
public GroupElement createGroupElement(String name); |
31 |
|
32 |
public GroupElement createGroupElement(String name, List<Element> elements); |
33 |
|
34 |
public FunctionElement createFunctionElement(Function function);
|
35 |
|
36 |
public ConstantElement createConstantElement(Object value); |
37 |
|
38 |
public ConstantElement createConstantElement(Object value, String description); |
39 |
|
40 |
public VariableElement createVariableElement(String label, String source, String name, String typeName, String description); |
41 |
|
42 |
public ExpressionPickerController createExpressionPickerController(JTextComponent text, JButton button); |
43 |
|
44 |
public CalculatorController createCalculatorController(JTextComponent text, int dataType); |
45 |
|
46 |
} |