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 @ 44259
History | View | Annotate | Download (2.41 KB)
1 |
|
---|---|
2 |
package org.gvsig.expressionevaluator.swing; |
3 |
|
4 |
import java.util.Collection; |
5 |
import java.util.List; |
6 |
import javax.lang.model.element.VariableElement; |
7 |
import javax.swing.JButton; |
8 |
import javax.swing.text.JTextComponent; |
9 |
import org.gvsig.expressionevaluator.Function; |
10 |
import org.gvsig.expressionevaluator.SymbolTable; |
11 |
import org.gvsig.expressionevaluator.swing.Element.ConstantElement; |
12 |
import org.gvsig.expressionevaluator.swing.Element.FunctionElement; |
13 |
import org.gvsig.expressionevaluator.swing.Element.GroupElement; |
14 |
|
15 |
public interface ExpressionEvaluatorSwingManager { |
16 |
|
17 |
|
18 |
// public List<Element> createElements(Collection<SymbolTable> symbolTables);
|
19 |
|
20 |
public List<Element> createElements(Collection<SymbolTable> symbolTables); |
21 |
|
22 |
public JExpressionBuilder createJExpressionBuilder();
|
23 |
|
24 |
public JExpressionPicker createJExpressionPicker();
|
25 |
|
26 |
public void registerElement(ElementFactory factory); |
27 |
|
28 |
public Collection<ElementFactory> getElementFactories(); |
29 |
|
30 |
public void registerAdditionalPanel(FunctionAdditionalPanelFactory factory); |
31 |
|
32 |
public FunctionAdditionalPanelFactory getFunctionAdditionalPanelFactory(String functionName); |
33 |
|
34 |
public Collection<FunctionAdditionalPanelFactory> getFunctionAdditionalPanelFactories(); |
35 |
|
36 |
public Element createElement(String name, Object... parameters); |
37 |
|
38 |
// public GroupElement createGroupElement(String name);
|
39 |
//
|
40 |
// public GroupElement createGroupElement(String name, List<Element> elements);
|
41 |
//
|
42 |
// public FunctionElement createFunctionElement(Function function);
|
43 |
//
|
44 |
// public ConstantElement createConstantElement(Object value);
|
45 |
//
|
46 |
// public ConstantElement createConstantElement(Object value, String description);
|
47 |
//
|
48 |
// public VariableElement createVariableElement(String label, String source, String name, String typeName, String description);
|
49 |
|
50 |
public GroupElement createGroupElement(String name); |
51 |
|
52 |
public GroupElement createGroupElement(String name, List<Element> elements); |
53 |
|
54 |
public FunctionElement createFunctionElement(Function function);
|
55 |
|
56 |
public ConstantElement createConstantElement(Object value, String label); |
57 |
|
58 |
public ConstantElement createConstantElement(Object value, String label, String description); |
59 |
|
60 |
public ExpressionPickerController createExpressionPickerController(JTextComponent text, JButton button); |
61 |
|
62 |
public CalculatorController createCalculatorController(JTextComponent text, int dataType); |
63 |
|
64 |
} |