|
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.IsBetween
public class IsBetween
Creates a JavaScript validation function to validate that the value entered by the user is within the specifed range. The range may be specified as an integer, a double or a string. The minimum and maximum values are optional: ie if only the minimum value is supplied, the user-entered value must be greater than it, or if only the maximum value is supplied, the user-entered value must be less than it.
| Constructor Summary | |
|---|---|
IsBetween()
Creates a JavaScript validation function. |
|
IsBetween(InputField element,
java.lang.String displayName,
boolean mandatory,
java.lang.Double minValue,
java.lang.Double maxValue)
Creates a JavaScript validation function. |
|
IsBetween(InputField element,
java.lang.String displayName,
boolean mandatory,
java.lang.Integer minValue,
java.lang.Integer maxValue)
Creates a JavaScript validation function. |
|
IsBetween(InputField element,
java.lang.String displayName,
boolean mandatory,
java.lang.String minValue,
java.lang.String maxValue)
Creates a JavaScript validation function. |
|
| Method Summary | |
|---|---|
void |
setMaxValue(java.lang.Double maxValue)
Sets the maxValue. |
void |
setMaxValue(java.lang.Integer maxValue)
Sets the maxValue. |
void |
setMaxValue(java.lang.String maxValue)
Sets the maxValue. |
void |
setMinValue(java.lang.Double minValue)
Sets the minValue. |
void |
setMinValue(java.lang.Integer minValue)
Sets the minValue. |
void |
setMinValue(java.lang.String minValue)
Sets the minValue. |
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 IsBetween()
public IsBetween(InputField element,
java.lang.String displayName,
boolean mandatory,
java.lang.Double minValue,
java.lang.Double maxValue)
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.minValue - the minimum allowable value for this input element.maxValue - the maximum allowable value for this input element.
public IsBetween(InputField element,
java.lang.String displayName,
boolean mandatory,
java.lang.Integer minValue,
java.lang.Integer maxValue)
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.minValue - the minimum allowable value for this input element.maxValue - the maximum allowable value for this input element.
public IsBetween(InputField element,
java.lang.String displayName,
boolean mandatory,
java.lang.String minValue,
java.lang.String maxValue)
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.minValue - the minimum allowable value for this input element.maxValue - the maximum allowable value for this input element.| Method Detail |
|---|
public void setMaxValue(java.lang.Double maxValue)
maxValue - the maxValue.public void setMaxValue(java.lang.Integer maxValue)
maxValue - the maxValue.public void setMaxValue(java.lang.String maxValue)
maxValue - the maxValue.public void setMinValue(java.lang.Double minValue)
minValue - the minValue.public void setMinValue(java.lang.Integer minValue)
minValue - the minValue.public void setMinValue(java.lang.String minValue)
minValue - the minValue.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 | ||||||||