|
PAJES 3.0.21 | ||||||||
| 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.IsValid
public class IsValid
Creates a JavaScript validation function to validate that the user entered one of a set of specified values.
| Constructor Summary | |
|---|---|
IsValid()
Creates a JavaScript validation function. |
|
IsValid(InputField element,
java.lang.String displayName,
boolean caseSensitive,
boolean mandatory,
java.lang.String[] validValues)
Creates a JavaScript validation function. |
|
| Method Summary | |
|---|---|
void |
setCaseSensitive(boolean caseSensitive)
Sets the case sensitivity of the comparison. |
void |
setCaseSensitive(java.lang.String caseSensitive)
Sets the case sensitivity of the comparison. |
void |
setValidValues(java.lang.String[] validValues)
Sets the valid values. |
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 IsValid()
public IsValid(InputField element,
java.lang.String displayName,
boolean caseSensitive,
boolean mandatory,
java.lang.String[] validValues)
element - the input field to be validated.displayName - the name of the field that will appear in any error messages.caseSensitive - true if the comparison to the valid values is to be case
sensitive.mandatory - true if a value is required, or false if it may be left blank.validValues - the array of valid values.| Method Detail |
|---|
public void setCaseSensitive(boolean caseSensitive)
caseSensitive - true if the comparison to the valid values is to be case
sensitive.public void setCaseSensitive(java.lang.String caseSensitive)
caseSensitive - "true" if the comparison to the valid values is to be case
sensitive.public void setValidValues(java.lang.String[] validValues)
validValues - the array of valid values.public java.lang.String toJavaScript(Browser browser)
toJavaScript in class ValidationFunctionbrowser - the browser to which the function will be returned.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||