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 @ 43983
History | View | Annotate | Download (1.5 KB)
1 | 43939 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.expressionevaluator.swing; |
||
3 | |||
4 | 43983 | jjdelcerro | import java.util.Collection; |
5 | 43939 | jjdelcerro | import java.util.List; |
6 | 43983 | jjdelcerro | import javax.swing.JButton; |
7 | import javax.swing.text.JTextComponent; |
||
8 | 43970 | jjdelcerro | import org.gvsig.expressionevaluator.Function; |
9 | 43983 | jjdelcerro | 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 | 43939 | jjdelcerro | |
15 | public interface ExpressionEvaluatorSwingManager { |
||
16 | |||
17 | 43983 | jjdelcerro | public List<Element> createElements(Collection<SymbolTable> symbolTables); |
18 | 43939 | jjdelcerro | |
19 | public JExpressionBuilder createJExpressionBuilder();
|
||
20 | 43970 | jjdelcerro | |
21 | 43983 | jjdelcerro | public JExpressionPicker createJExpressionPicker();
|
22 | |||
23 | public void registerElement(ElementFactory factory); |
||
24 | 43970 | jjdelcerro | |
25 | 43983 | jjdelcerro | public Element createElement(String name, Object... parameters); |
26 | |||
27 | public GroupElement createGroupElement(String name); |
||
28 | |||
29 | public GroupElement createGroupElement(String name, List<Element> elements); |
||
30 | 43939 | jjdelcerro | |
31 | 43983 | jjdelcerro | public FunctionElement createFunctionElement(Function function);
|
32 | 43970 | jjdelcerro | |
33 | 43983 | jjdelcerro | 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); |
||
40 | 43939 | jjdelcerro | } |