|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.html.validation.ValidationFunction
org.pajes.html.validation.IsDecimal
Creates a JavaScript validation function to validate that the value entered by the user is a decimal number with a specified number of decimal places.
| Constructor Summary | |
IsDecimal()
Creates a JavaScript validation function. |
|
IsDecimal(InputField element,
java.lang.String displayName,
boolean mandatory,
int decimalPlaces)
Creates a JavaScript validation function. |
|
| Method Summary | |
void |
setDecimalPlaces(int decimalPlaces)
Sets the number of decimal places. |
void |
setDecimalPlaces(java.lang.String decimalPlaces)
Sets the number of decimal places. |
java.lang.String |
toJavaScript(Browser browser)
Converts the validation function into a string to be returned to the browser. |
| Methods inherited from class org.pajes.html.validation.ValidationFunction |
clone, getDisplayName, getInputField, isMandatory, setDisplayName, setInputField, setMandatory, setMandatory, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IsDecimal()
public IsDecimal(InputField element,
java.lang.String displayName,
boolean mandatory,
int decimalPlaces)
element - the input field to be validated.displayName - the name of the field that will appear in any error messages.mandatory - true if a value is required, or false if it may be left blank.decimalPlaces - the required number of decimal places. The valid range is 0 to
15.
ValidationFunctionException - if an invalid number of decimal places is specified.| Method Detail |
public void setDecimalPlaces(int decimalPlaces)
decimalPlaces - the required number of decimal places. The valid range is 0 to
15.public void setDecimalPlaces(java.lang.String decimalPlaces)
decimalPlaces - the required number of decimal places. The valid range is 0 to
15.public java.lang.String toJavaScript(Browser browser)
toJavaScript in class ValidationFunctionbrowser - the browser to which the function will be returned.
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||