◆ coerceFromString()
Object org.turro.zkoss.input.ExpressionInput.coerceFromString |
( |
String |
value | ) |
throws WrongValueException |
|
protected |
Definition at line 53 of file ExpressionInput.java.
54 return Script.formatInput(
new Script().evalToDouble(value), format ==
null ?
"0.########" : format);
◆ coerceToString()
String org.turro.zkoss.input.ExpressionInput.coerceToString |
( |
Object |
value | ) |
|
|
protected |
Definition at line 58 of file ExpressionInput.java.
59 return Script.formatInput(value, format ==
null ?
"0.########" : format);
◆ getDoubleValue()
double org.turro.zkoss.input.ExpressionInput.getDoubleValue |
( |
| ) |
|
Definition at line 40 of file ExpressionInput.java.
42 if(n instanceof Number) {
43 return ((Number) n).doubleValue();
◆ getFormat()
String org.turro.zkoss.input.ExpressionInput.getFormat |
( |
| ) |
|
◆ getNumber() [1/2]
Object org.turro.zkoss.input.ExpressionInput.getNumber |
( |
| ) |
throws WrongValueException |
◆ getNumber() [2/2]
Object org.turro.zkoss.input.ExpressionInput.getNumber |
( |
int |
precision | ) |
throws WrongValueException |
Definition at line 36 of file ExpressionInput.java.
37 return new Script().evalToDouble(getText(), precision);
◆ setFormat()
void org.turro.zkoss.input.ExpressionInput.setFormat |
( |
String |
format | ) |
|
◆ setValue()
void org.turro.zkoss.input.ExpressionInput.setValue |
( |
Object |
value | ) |
throws WrongValueException |
The documentation for this class was generated from the following file: