|
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
ValidationFunction is extendeded by classes that represent client-side JavaScript validation functions.
| Constructor Summary | |
ValidationFunction()
|
|
| Method Summary | |
java.lang.Object |
clone()
Allows the validation function to be cloned. |
java.lang.String |
getDisplayName()
Retrieves the field name that will be displayed in the error message. |
InputValidation |
getInputField()
Returns the field that will be validated by this validation function. |
boolean |
isMandatory()
Determines if this field is mandatory. |
ValidationFunction |
setDisplayName(java.lang.String displayName)
Sets the field name that will be displayed in the error message. |
ValidationFunction |
setInputField(InputValidation field)
Sets the field that will be validated by this validation function. |
ValidationFunction |
setMandatory(boolean valueIsRequired)
Sets validation to ensure the user enters a value in this field. |
ValidationFunction |
setMandatory(java.lang.String valueIsRequired)
Sets validation to ensure the user enters a value in this field. |
abstract java.lang.String |
toJavaScript(Browser browser)
Converts the validation function into a string to be returned to the browser. |
java.lang.String |
toString()
Returns the name of this class as a string. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ValidationFunction()
| Method Detail |
public java.lang.Object clone()
java.lang.RuntimeException - if the operation threw a CloneNotSupportedException. This
should never happen.public java.lang.String getDisplayName()
public InputValidation getInputField()
public boolean isMandatory()
public ValidationFunction setDisplayName(java.lang.String displayName)
displayName - the field name that will be displayed in the error message.
public ValidationFunction setInputField(InputValidation field)
field - the field that will be validated by this validation function.
public ValidationFunction setMandatory(boolean valueIsRequired)
valueIsRequired - true if a value is mandatory.
public ValidationFunction setMandatory(java.lang.String valueIsRequired)
valueIsRequired - "true" (case-insensitive) if a value is mandatory.
public abstract java.lang.String toJavaScript(Browser browser)
browser - the browser to which the function will be returned.
public java.lang.String toString()
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||