Statistics
| Revision:

root / branches / v2_0_0_prep / extensions / extExpressionField / src / com / iver / cit / gvsig / project / documents / table / operators / LessEquals.java @ 27752

History | View | Annotate | Download (1.11 KB)

1
package com.iver.cit.gvsig.project.documents.table.operators;
2

    
3
import org.apache.bsf.BSFException;
4
import org.apache.bsf.BSFManager;
5

    
6
import com.iver.andami.PluginServices;
7
import com.iver.cit.gvsig.project.documents.table.AbstractOperator;
8
import com.iver.cit.gvsig.project.documents.table.IOperator;
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
}