|
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.IsEqual
public class IsEqual
Creates a JavaScript validation function to validate that the user entered the same value twice.
| Constructor Summary | |
|---|---|
IsEqual()
Creates a JavaScript validation function. |
|
IsEqual(InputField element,
java.lang.String displayName,
InputField comparisonElement)
Creates a JavaScript validation function. |
|
IsEqual(InputField element,
java.lang.String displayName,
InputHidden comparisonElement)
Creates a JavaScript validation function. |
|
| Method Summary | |
|---|---|
void |
setComparisonField(Input comparisonField)
Sets the comparisonField. |
void |
setComparisonField(java.lang.String comparisonField)
Sets the comparisonField. |
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 IsEqual()
public IsEqual(InputField element,
java.lang.String displayName,
InputField comparisonElement)
element - the input field to be validated.displayName - the name of the field that will appear in any error messages.comparisonElement - the input field to which the element must be equal.
public IsEqual(InputField element,
java.lang.String displayName,
InputHidden comparisonElement)
element - the input field to be validated.displayName - the name of the field that will appear in any error messages.comparisonElement - the field to which the element must be equal.| Method Detail |
|---|
public void setComparisonField(Input comparisonField)
comparisonElement - the field to which the element must be equal.public void setComparisonField(java.lang.String comparisonField)
domReference - the JavaScript DOM reference of the field to which the element
must be equal.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 | ||||||||