public class LiveComponent extends ScriptableObject
Instances of this class are registered as global objects such that any naked reference, including JavaScript variables, is first processed by the get method of this class.
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description |
|---|
LiveComponent(RhinoScriptHandler handler,
Obj xfaObject)
Instantiates a LiveComponent object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name,
Scriptable start)
Gets the value of the named property of this object.
|
String |
getClassName()
Gets the name of the set of objects implemented by this class.
|
static Object |
invoke(Context cx,
Scriptable obj,
Object[] args,
Function func) |
void |
jsConstructor(Object handler,
Obj object)
Defines the JavaScript constructor to Rhino.
|
void |
put(String name,
Scriptable start,
Object value)
Puts the value of the named property of the start object.
|
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, sizepublic LiveComponent(RhinoScriptHandler handler, Obj xfaObject)
handler - a Rhino script handler.xfaObject - the XFA object associated with this component.
Typically this is the application model.public void jsConstructor(Object handler, Obj object)
This method is required by the Scriptable interface and must mirror the signature of the class constructor.
handler - a Rhino script handler.object - the XFA object associated with this component.public String getClassName()
This method is required by the Scriptable interface.
getClassName in interface ScriptablegetClassName in class ScriptableObjectpublic Object get(String name, Scriptable start)
get in interface Scriptableget in class ScriptableObjectname - the name of the property.start - the object in which the lookup began.EvaluatorException - whenever an ExFull was thrown while getting the XFA
property.Context.getUndefinedValue()public void put(String name, Scriptable start, Object value)
This method may (or not) set the property in the start object.
put in interface Scriptableput in class ScriptableObjectname - the name of the property.start - the object whose property is being set.value - the value to set the property to.Scriptable.has(String, Scriptable),
Scriptable.get(String, Scriptable),
ScriptableObject.putProperty(Scriptable, String, Object),
Context.toObject(Object, Scriptable)public static Object invoke(Context cx, Scriptable obj, Object[] args, Function func)
Copyright © 2010 - 2020 Adobe. All Rights Reserved