public final class NEventInfo extends NMemberInfo
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier and Type | Method and Description |
|---|---|
void |
addListener(NObject object,
EventListener listener)
Binds the event to the object.
|
NMethodInfo |
getAddCallbackMethod()
Retrieves the method which adds a callback to the event.
|
NMethodInfo |
getAddMethod()
Retrieves a method which adds an event.
|
NType |
getEventType()
Retrieves the type of the current event.
|
NMethodInfo |
getRemoveCallbackMethod()
Retrieves the method which removes a callback from the event.
|
NMethodInfo |
getRemoveMethod()
Retrieves a method which removes an event.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
void |
removeListener(NObject object,
EventListener listener)
Unbinds the listener from the object so that the listener will no longer receive events from the object.
|
getAttributes, getDeclaringType, getNameaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizepublic static NType nativeTypeOf()
public NType getEventType()
public NMethodInfo getAddMethod()
public NMethodInfo getAddCallbackMethod()
public NMethodInfo getRemoveMethod()
public NMethodInfo getRemoveCallbackMethod()
public void addListener(NObject object, EventListener listener)
object - The object the event binds to.listener - The event listener.public void removeListener(NObject object, EventListener listener)
object - The object the event binds to.listener - The event listener.Copyright © 2016 Neurotechnology. All rights reserved.