root / tags / v2_0_0_Build_2035 / extensions / extExpressionField / src / org / gvsig / expressionfield / project / documents / table / operators / LessEquals.java @ 36300
History | View | Annotate | Download (1.13 KB)
1 | 29628 | jpiera | package org.gvsig.expressionfield.project.documents.table.operators; |
---|---|---|---|
2 | 27752 | vcaballero | |
3 | import org.apache.bsf.BSFException; |
||
4 | import org.apache.bsf.BSFManager; |
||
5 | 29628 | jpiera | import org.gvsig.andami.PluginServices; |
6 | import org.gvsig.expressionfield.project.documents.table.AbstractOperator; |
||
7 | import org.gvsig.expressionfield.project.documents.table.IOperator; |
||
8 | 27752 | vcaballero | |
9 | |||
10 | /**
|
||
11 | * @author Vicente Caballero Navarro
|
||
12 | */
|
||
13 | public class LessEquals extends AbstractOperator { |
||
14 | |||
15 | public String addText(String s) { |
||
16 | return s.concat(toString());
|
||
17 | } |
||
18 | |||
19 | public void eval(BSFManager interpreter) throws BSFException { |
||
20 | } |
||
21 | public String toString() { |
||
22 | return "<="; |
||
23 | } |
||
24 | public boolean isEnable() { |
||
25 | return (getType()==IOperator.NUMBER);
|
||
26 | } |
||
27 | public String getTooltip(){ |
||
28 | return PluginServices.getText(this,"operator")+": "+addText("")+"\n"+getDescription(); |
||
29 | } |
||
30 | public String getDescription() { |
||
31 | return PluginServices.getText(this, "returns") + ": " + |
||
32 | PluginServices.getText(this, "boolean_value") + "\n" + |
||
33 | PluginServices.getText(this, "description") + ": " + |
||
34 | "Returns true if the first object value is less or equals than the second value.";
|
||
35 | } |
||
36 | } |