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 / ExpressionBuilderConfig.java @ 44855
History | View | Annotate | Download (2.2 KB)
1 |
package org.gvsig.expressionevaluator.swing; |
---|---|
2 |
|
3 |
import java.util.Collection; |
4 |
import java.util.List; |
5 |
import org.gvsig.expressionevaluator.Expression; |
6 |
import org.gvsig.expressionevaluator.SymbolTable; |
7 |
import org.gvsig.tools.util.Factory; |
8 |
import org.gvsig.tools.util.PropertiesSupport; |
9 |
|
10 |
/**
|
11 |
*
|
12 |
* @author jjdelcerro
|
13 |
*/
|
14 |
public interface ExpressionBuilderConfig extends PropertiesSupport { |
15 |
|
16 |
public interface Preferences { |
17 |
/**
|
18 |
* Time in secons to use when obtains the list of elements.
|
19 |
*
|
20 |
* @return time in secons
|
21 |
*/
|
22 |
public int getSimpleElementsLimit(); |
23 |
|
24 |
/**
|
25 |
* Set the time in secons to use to obtain the list of elements.
|
26 |
*
|
27 |
* @param limit
|
28 |
*/
|
29 |
public void setSimpleElementsLimit(int limit); |
30 |
|
31 |
public void setSQLCompatible(boolean sqlCompatible); |
32 |
|
33 |
public boolean isSQLCompatible(); |
34 |
|
35 |
public boolean getShowLabelsOfElements(); |
36 |
|
37 |
public void setShowLabelsOfElements(boolean showLabels); |
38 |
|
39 |
public void copyPreferencesFrom(Preferences other); |
40 |
} |
41 |
|
42 |
public Preferences getPreferences(); |
43 |
|
44 |
public List<Element> getElements(); |
45 |
|
46 |
public void addElement(Element element); |
47 |
|
48 |
public Collection<SymbolTable> getSymbolTables(); |
49 |
|
50 |
public void addSymbolTable(SymbolTable symbolTable); |
51 |
|
52 |
public void addSymbolTable(String name); |
53 |
|
54 |
public void removeSymbolTable(String name); |
55 |
|
56 |
public void removeAllSymbolTables(); |
57 |
|
58 |
public void removeAllElements(); |
59 |
|
60 |
public SymbolTable getPreviewSymbolTable();
|
61 |
|
62 |
public void setPreviewSymbolTable(SymbolTable symbolTable); |
63 |
|
64 |
public void copyConfigFrom(ExpressionBuilderConfig other); |
65 |
|
66 |
public boolean allowAggregates(); |
67 |
|
68 |
public boolean allowAggregates(boolean allow); |
69 |
|
70 |
public void setAllowedFunctions(java.util.function.Function<String,Integer>allow); |
71 |
|
72 |
public java.util.function.Function<String,Integer> getAllowedFunctions(); |
73 |
|
74 |
public java.util.function.Function<String,Integer> isFunctionAllowed(); |
75 |
|
76 |
public void addSuggestionFactory(Factory factory); |
77 |
|
78 |
public Collection<Factory> getSuggestionFactories(); |
79 |
|
80 |
public String getSuggestion(Expression expression); |
81 |
} |