Class LiveObject
java.lang.Object
org.mozilla.javascript.ScriptableObject
com.adobe.xfa.scripthandler.rhino.LiveObject
- All Implemented Interfaces:
Serializable,ConstProperties,DebuggableObject,Scriptable
A class to expose XFA objects to JavaScript scripting.
Each scriptable XFA objects is peered to instances of this class.
- See Also:
-
Field Summary
FieldsFields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionLiveObject(RhinoScriptHandler handler, Obj xfaObject) Instantiates a LiveObject object. -
Method Summary
Modifier and TypeMethodDescriptionget(String name, Scriptable start) Gets the value of the named property of this object.Gets the name of the class.static Objectinvoke(Context cx, Scriptable obj, Object[] args, Function func) voidjsConstructor(Object handler, Object xfaObject) Defines the JavaScript constructor to Rhino.voidput(String name, Scriptable start, Object value) Puts the value of the named property of the start object.Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, 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, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
Field Details
-
CLASSNAME
- See Also:
-
-
Constructor Details
-
LiveObject
Instantiates a LiveObject object. The lone constructor used by this package to create instances of this class.- Parameters:
handler- a Rhino script handler.xfaObject- the XFA object that is peered to this object.
-
-
Method Details
-
jsConstructor
Defines the JavaScript constructor to Rhino.This method is required by the Scriptable interface and must mirror the signature of the class constructor.
- Parameters:
handler- a Rhino script handler.xfaObject- the XFA object that is peered to this object.
-
getClassName
Gets the name of the class.- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
get
Gets the value of the named property of this object.- Specified by:
getin interfaceScriptable- Overrides:
getin classScriptableObject- Parameters:
name- the name of the property.start- the object in which the lookup began.- Returns:
- the value of the property, or NOT_FOUND if the property is not a property of this object's peered XFA object.
- Throws:
EvaluatorException- whenever an ExFull was thrown while getting the XFA property.- See Also:
-
put
Puts the value of the named property of the start object.This method may (or not) set the property in the start object.
- Specified by:
putin interfaceScriptable- Overrides:
putin classScriptableObject- Parameters:
name- the name of the property.start- the object whose property is being set.value- the value to set the property to.- See Also:
-
invoke
-