|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface JavaScriptValidationInterface
ValidationInterface is used to allow an object to validate input, normalize input and return error information when the information is invalid.
The ValidationInterface was designed to be used by input components such as the TextField. Components which used validators should implement the ValidatorInterface so that there is a standard way to set/get the validator.
com.sas.util.validators.Validator is a default implementation of the ValidationInterface.
| Method Summary | |
|---|---|
abstract java.lang.String |
createValidationFunctionCall(TransformationInterface bean)
Returns a String containing the entire Javascript validation function call. |
abstract java.lang.String |
getClearErrorsFunctionName()
Gets the name of the clear errors function. |
abstract java.lang.String |
getErrorHandlerFunctionName()
Gets the name of the error handler function. |
abstract java.lang.String |
getValidationFunctionName()
Gets the name of the validation function. |
abstract void |
setClearErrorsFunctionName(java.lang.String name)
Sets the name of the clear errors javascript function to call to clear all validations that have failed. |
abstract void |
setErrorHandlerFunctionName(java.lang.String name)
Sets the name of the error handler function to call if validation fails. |
abstract void |
setValidationFunctionName(java.lang.String name)
Sets the name of the validation function to create if there are input fields associated with the form (via the validate methods). |
| Methods inherited from interface com.sas.util.validators.ValidationInterface |
|---|
getValidationMessage, getValidationMessageCode, normalizeValue, setValidationMessage, validateValue |
| Method Detail |
|---|
void setValidationFunctionName(java.lang.String name)
name - The validation function namejava.lang.String getValidationFunctionName()
void setErrorHandlerFunctionName(java.lang.String name)
name - The error handler function namejava.lang.String getErrorHandlerFunctionName()
void setClearErrorsFunctionName(java.lang.String name)
name - The clear errors function namejava.lang.String getClearErrorsFunctionName()
java.lang.String createValidationFunctionCall(TransformationInterface bean)
bean - The transformation bean validation has been set on.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||