public class EventManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EventManager.EventID
EventID class
|
static class |
EventManager.EventTable
Represents a collection of Dispatchers associated with a particular Obj.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelAction(String sAction) |
boolean |
cancelEvent(String sEvent) |
boolean |
eventOccurred(int nEventID,
Obj object)
eventOccurred informs the event manager that a particular event has
occurred.
|
int |
getEventID(String sEventName)
return an ID for a event name
|
EventManager.EventID |
getEventIDByIndex(int nIndex) |
void |
registerEvents(Dispatcher dispatcher) |
void |
reset() |
static void |
resetEventTable(EventManager.EventTable eventTable)
Reset an event table
|
public static void resetEventTable(EventManager.EventTable eventTable)
eventTable - the event table to resetpublic boolean cancelAction(String sAction)
public boolean cancelEvent(String sEvent)
public boolean eventOccurred(int nEventID,
Obj object)
true if the event was dispatched to one or more listeners.public int getEventID(String sEventName)
sEventName - public EventManager.EventID getEventIDByIndex(int nIndex)
public void registerEvents(Dispatcher dispatcher)
public void reset()
Copyright © 2010 - 2020 Adobe. All Rights Reserved