Method Summary |
|
native protected JavaScriptObject | create(JavaScriptObject jsObj) |
native public Number | getValue() Returns the field value. |
public String | getXType() |
public void | setAllowDecimals(boolean allowDecimals) False to disallow decimal values (defaults to true). |
public void | setAllowNegative(boolean allowNegative) False to prevent entering a negative sign (defaults to true). |
public void | setDecimalPrecision(int decimalPrecision) The maximum precision to display after the decimal separator (defaults to 2). |
public void | setDecimalSeparator(String decimalSeparator) Character(s) to allow as the decimal separator (defaults to '.'). |
public void | setMaxText(String maxText) Error text to display if the maximum value validation fails (defaults to "The maximum value for this field is {maxValue}"). |
public void | setMaxValue(int maxValue) The maximum allowed value (defaults to Number.MAX_VALUE). |
public void | setMinText(String minText) Error text to display if the minimum value validation fails (defaults to "The minimum value for this field is {minValue}"). |
public void | setMinValue(int minValue) The minimum allowed value (defaults to Number.NEGATIVE_INFINITY). |
public void | setNanText(String nanText) Error text to display if the value is not a valid number. |
native public void | setValue(float value) Sets the fields value. |
public void | setValue(Number value) Sets the fields value. |
public boolean | validateValue(Number value) Validates a value according to the field's validation rules and marks the field as invalid if the validation fails. |
native public boolean | validateValue(float value) Validates a value according to the field's validation rules and marks the field as invalid if the validation fails. |