public class EventHandler<E> extends java.lang.Object implements Function<java.lang.Void>, Equivalence<EventHandler<E>>
Modifier and Type | Field and Description |
---|---|
EventDispatchInfo |
dispatchInfo |
int |
id |
java.lang.Object[] |
params |
Modifier | Constructor and Description |
---|---|
protected |
EventHandler(HasEventDispatcher hasEventDispatcher,
int id) |
|
EventHandler(HasEventDispatcher hasEventDispatcher,
int id,
java.lang.Object[] params) |
|
EventHandler(int id,
EventDispatchInfo dispatchInfo)
The EventDispatchInfo ctors are used to construct EventHandlers from generated code.
|
|
EventHandler(int id,
EventDispatchInfo dispatchInfo,
java.lang.Object[] params) |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
call(java.lang.Object... arguments)
Executes the function.
|
void |
dispatchEvent(E event) |
boolean |
isEquivalentTo(EventHandler other) |
java.lang.String |
toString() |
public final int id
public final EventDispatchInfo dispatchInfo
public final java.lang.Object[] params
protected EventHandler(HasEventDispatcher hasEventDispatcher, int id)
public EventHandler(HasEventDispatcher hasEventDispatcher, int id, java.lang.Object[] params)
public EventHandler(int id, EventDispatchInfo dispatchInfo)
public EventHandler(int id, EventDispatchInfo dispatchInfo, java.lang.Object[] params)
public java.lang.Void call(java.lang.Object... arguments)
Function
public void dispatchEvent(E event)
public boolean isEquivalentTo(EventHandler other)
isEquivalentTo
in interface Equivalence<EventHandler<E>>
public java.lang.String toString()
toString
in class java.lang.Object