public class Validation extends MBScriptableObject
Modifier and Type | Class and Description |
---|---|
static interface |
Validation.IValidationListener
Listener interface.
|
Constructor and Description |
---|
Validation() |
Modifier and Type | Method and Description |
---|---|
void |
(JavaScript Function) clear(java.lang.String theField,
java.lang.String theId)
Clear the validation state.
|
void |
(JavaScript Function) clearAll(java.lang.String theField)
Clear the full validation state for a field.
|
void |
(JavaScript Function) error(java.lang.String theField,
java.lang.String theId,
java.lang.String theMessage)
Set a validation error.
|
boolean |
(JavaScript Function) hasErrors(java.lang.String theField)
Check to see if the given field has errors.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void (JavaScript Function) error(java.lang.String theField, java.lang.String theId, java.lang.String theMessage)
theField
- The field that had the errortheId
- The IDtheMessage
- The error messagepublic void (JavaScript Function) clear(java.lang.String theField, java.lang.String theId)
theField
- The fieldtheId
- ID to clearpublic void (JavaScript Function) clearAll(java.lang.String theField)
theField
- The field to clear the validation state for, or null to clear all fieldspublic boolean (JavaScript Function) hasErrors(java.lang.String theField)
theField
- The field to check, or null to check all fieldsCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.