|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.util.validators.MinMaxValueCompositeValidator
public class MinMaxValueCompositeValidator
The MinMaxValueCompositeValidator is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for creating a minimum and maximum value composite validator. A MinMaxValueCompositeValidator is a validator that validates (1) the value is present, (2) that the value is numeric, (3) that the value does not exceed the maximum value specified, and (4) the value is not less than the minimum value specified.
For More Information:
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary |
---|
Fields inherited from class com.sas.util.validators.CompositeValidator |
---|
validator1, validator2, validators |
Fields inherited from class com.sas.util.validators.Validator |
---|
message, messages, msgObject, RB_KEY |
Constructor Summary | |
---|---|
MinMaxValueCompositeValidator()
Construct a new MinMaxValueCompositeValidator Transformation Bean The default min value is 0, and the default max value is 100. |
|
MinMaxValueCompositeValidator(int min,
int max)
Constructs a new MinMaxValueCompositeValidator Transformation Bean |
Method Summary | |
---|---|
int |
getMaxValue()
Returns the maxumum value set. |
int |
getMinValue()
Returns the minumum value set. |
void |
setMaxValue(int max)
Sets the maximum value to use. |
void |
setMinValue(int min)
Sets the minimum value to use. |
Methods inherited from class com.sas.util.validators.CompositeValidator |
---|
addValidator, getFirstValidator, getSecondValidator, getValidatorAtIndex, getValidators, insertValidatorAtIndex, normalizeValue, removeValidator, removeValidatorAtIndex, setFirstValidator, setSecondValidator, setValidators, validateValue |
Methods inherited from class com.sas.util.validators.Validator |
---|
createValidationMessages, getExtendedBeanInfo, getValidationMessage, getValidationMessageCode, newValidationMessage, setValidationMessage, setValidationMessageCode |
Constructor Detail |
---|
public MinMaxValueCompositeValidator()
public MinMaxValueCompositeValidator(int min, int max)
min
- The minimum valuemax
- The maximum valueMethod Detail |
---|
public void setMinValue(int min)
min
- the minimum value to use.public int getMinValue()
public void setMaxValue(int max)
max
- the maximum value to use.public int getMaxValue()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |