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