public class EventAdapter
extends org.mozilla.javascript.ScriptableObject
| Constructor and Description |
|---|
EventAdapter() |
EventAdapter(RhinoEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
Object |
addListener(String type,
Object function) |
Object |
addSyncListener(String type,
Object function) |
static String |
classToSignature(Class<?> clazz)
Convert Java class to "Lname-with-dots-replaced-by-slashes;" form
suitable for use as JVM type signatures.
|
static boolean |
emit(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj) |
boolean |
emit(String type,
Object... args) |
static Class<?> |
getAdapterClass(Object[] classes,
Map<?,?> overrides) |
String |
getClassName() |
Object |
getImpl() |
static String |
getSignature(Class<?>[] paramTypes,
Class<?> returnType) |
static Object |
jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function function,
boolean inNewExpr) |
Object |
removeAllListeners(String type) |
Object |
removeListener(String type,
Object callback) |
static String |
toEventName(Object name) |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic EventAdapter()
public EventAdapter(RhinoEngine engine)
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObject@JSConstructor public static Object jsConstructor(org.mozilla.javascript.Context cx, Object[] args, org.mozilla.javascript.Function function, boolean inNewExpr)
@JSGetter public Object getImpl()
@JSFunction
public static boolean emit(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
public static String classToSignature(Class<?> clazz)
clazz - the classCopyright © 2016. All rights reserved.