public class Validation extends MBScriptableObject
Modifier and Type | Class and Description |
---|---|
static interface |
Validation.IValidationListener
Listener interface.
|
myLogger
Constructor and Description |
---|
Validation() |
Modifier and Type | Method and Description |
---|---|
void |
jsFunction_clear(java.lang.String theField,
java.lang.String theId)
Clear the validation state.
|
void |
jsFunction_clearAll(java.lang.String theField)
Clear the full validation state for a field.
|
void |
jsFunction_error(java.lang.String theField,
java.lang.String theId,
java.lang.String theMessage)
Set a validation error.
|
boolean |
jsFunction_hasErrors(java.lang.String theField)
Check to see if the given field has errors.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void jsFunction_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 jsFunction_clear(java.lang.String theField, java.lang.String theId)
theField
- The fieldtheId
- ID to clearpublic void jsFunction_clearAll(java.lang.String theField)
theField
- The field to clear the validation state for, or null to clear all fieldspublic boolean jsFunction_hasErrors(java.lang.String theField)
theField
- The field to check, or null to check all fieldsCopyright © 2023 MediaBeacon, Inc. All Rights Reserved.