public class RequiredIfValidator extends Validator
expression
which takes three parameters: true
, the field will be
treated as a required field, so validation will fail if the field has no value.Constructor and Description |
---|
RequiredIfValidator() |
RequiredIfValidator(RequiredIfFunction expression) |
Modifier and Type | Method and Description |
---|---|
void |
setExpression(RequiredIfFunction expression)
Set the expression.
|
addValidatorDefinition, create, getClientOnly, getDependentFields, getOrCreateRef, getStopIfFalse, getStopOnError, getType, getTypeAsString, getValidateOnChange, setClientOnly, setDependentFields, setErrorMessage, setJavaScriptObject, setStopIfFalse, setStopOnError, setType, setType, setValidateOnChange
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject
public RequiredIfValidator()
public RequiredIfValidator(RequiredIfFunction expression)
public void setExpression(RequiredIfFunction expression)
expression
- the expression