svn-gvsig-desktop / branches / v2_0_0_prep / extensions / extExpressionField / src / com / iver / cit / gvsig / project / documents / table / operators / Minus.java @ 27752
History | View | Annotate | Download (1.05 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 |
* @author Vicente Caballero Navarro
|
11 |
*/
|
12 |
public class Minus extends AbstractOperator{ |
13 |
|
14 |
public String addText(String s) { |
15 |
return s.concat(toString());
|
16 |
} |
17 |
public String toString() { |
18 |
return "-"; |
19 |
} |
20 |
public void eval(BSFManager interpreter) throws BSFException { |
21 |
} |
22 |
public boolean isEnable() { |
23 |
return (getType()==IOperator.NUMBER);
|
24 |
} |
25 |
public String getTooltip(){ |
26 |
return PluginServices.getText(this,"operator")+": "+addText("")+"\n"+getDescription(); |
27 |
} |
28 |
public String getDescription() { |
29 |
return PluginServices.getText(this, "returns") + ": " + |
30 |
PluginServices.getText(this, "numeric_value") + "\n" + |
31 |
PluginServices.getText(this, "description") + ": " + |
32 |
"Returns the result of rest.";
|
33 |
} |
34 |
} |