com.smartgwt.client.widgets.form.validator
Class MatchesFieldValidator
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.form.validator.Validator
com.smartgwt.client.widgets.form.validator.MatchesFieldValidator
public class MatchesFieldValidator
- extends Validator
Tests whether the value for this field matches the value of some other field. The field to compare against is
specified via the otherField property on the validator object (should be set to a field name). Note this validator
type is only supported for items being edited within a DynamicForm - it cannot be applied to a ListGrid field.
Fields inherited from class com.smartgwt.client.core.JsObject |
jsObj |
Methods inherited from class com.smartgwt.client.core.DataClass |
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchesFieldValidator
public MatchesFieldValidator()
setOtherField
public void setOtherField(String otherField)
- Set the otherField.
- Parameters:
otherField
- the otherField
getOtherField
public String getOtherField()
- Return the otherField.
- Returns:
- the otherField