Package com.adobe.xfa
Class EventManager
- java.lang.Object
-
- com.adobe.xfa.EventManager
-
public class EventManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventManager.EventID
EventID classstatic class
EventManager.EventTable
Represents a collection of Dispatchers associated with a particular Obj.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancelAction(java.lang.String sAction)
boolean
cancelEvent(java.lang.String sEvent)
boolean
eventOccurred(int nEventID, Obj object)
eventOccurred informs the event manager that a particular event has occurred.int
getEventID(java.lang.String sEventName)
return an ID for a event nameEventManager.EventID
getEventIDByIndex(int nIndex)
void
registerEvents(Dispatcher dispatcher)
void
reset()
static void
resetEventTable(EventManager.EventTable eventTable)
Reset an event table
-
-
-
Method Detail
-
resetEventTable
public static void resetEventTable(EventManager.EventTable eventTable)
Reset an event table- Parameters:
eventTable
- the event table to reset
-
cancelAction
public boolean cancelAction(java.lang.String sAction)
-
cancelEvent
public boolean cancelEvent(java.lang.String sEvent)
-
eventOccurred
public boolean eventOccurred(int nEventID, Obj object)
eventOccurred informs the event manager that a particular event has occurred. For each entry in mRegisteredEvents, if all required events have occurred, the corresponding node will have its attached script invoked. If object is not null, only events registered with that particular object will be considered.- Returns:
true
if the event was dispatched to one or more listeners.
-
getEventID
public int getEventID(java.lang.String sEventName)
return an ID for a event name- Parameters:
sEventName
-
-
getEventIDByIndex
public EventManager.EventID getEventIDByIndex(int nIndex)
-
registerEvents
public void registerEvents(Dispatcher dispatcher)
-
reset
public void reset()
-
-