Class MaskValidator
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.MaskValidator
- All Implemented Interfaces:
- HasHandlers
Validate against a regular expression mask, specified as validator.mask. If validation is successful a transformation
 can also be specified via the validator.transformTo property. This should be set to a string in the standard format
 for string replacement via the native JavaScript replace()  method.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetMask()Return the mask.Return the transformTo.voidSet the mask.voidsetTransformTo(String transformTo) Set the transformTo.Methods inherited from class com.smartgwt.client.widgets.form.validator.ValidatoraddValidatorDefinition, create, getApplyWhen, getCheckComponentData, getClientOnly, getCondition, getDependentFields, getOrCreateRef, getStopIfFalse, getStopOnError, getType, getTypeAsString, getValidateOnChange, setApplyWhen, setCheckComponentData, setClientOnly, setCondition, setDependentFields, setErrorMessage, setStopIfFalse, setStopOnError, setType, setType, setValidateOnChangeMethods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, 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, setFactoryCreated
- 
Constructor Details- 
MaskValidatorpublic MaskValidator()
 
- 
- 
Method Details- 
setMaskSet the mask. Eg : ^\s*(1?)\s*\(?\s*(\d{3})\s*\)?\s*-?\s*(\d{3})\s*-?\s*(\d{4})\s*$- Parameters:
- mask- the mask
 
- 
getMaskReturn the mask.- Returns:
- the mask
 
- 
setTransformToSet the transformTo. Eg : $1($2) $3 - $4- Parameters:
- transformTo- the transformTo
 
- 
getTransformToReturn the transformTo.- Returns:
- the transformTo
 
 
-