|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.form.validator.Validator
com.smartgwt.client.widgets.form.validator.RequiredIfValidator
public class RequiredIfValidator
RequiredIf type validators should be specified with an 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.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
RequiredIfValidator()
|
|
RequiredIfValidator(RequiredIfFunction expression)
|
|
| Method Summary | |
|---|---|
void |
setExpression(RequiredIfFunction expression)
Set the expression. |
| Methods inherited from class com.smartgwt.client.widgets.form.validator.Validator |
|---|
addValidatorDefinition, convertToValidatorArray, getClientOnly, getDependentFields, getOrCreateRef, getStopIfFalse, getStopOnError, getType, getTypeAsString, getValidateOnChange, setClientOnly, setDependentFields, setErrorMessage, setJavaScriptObject, setStopIfFalse, setStopOnError, setType, setType, setValidateOnChange |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequiredIfValidator()
public RequiredIfValidator(RequiredIfFunction expression)
| Method Detail |
|---|
public void setExpression(RequiredIfFunction expression)
expression - the expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||