Class EditorEventManager
java.lang.Object
ca.phon.app.session.editor.EditorEventManager
Handles passing of internal EditorEvents. Events can be dispatched on the AWT event thread or on a background thread.
Events are placed into a queue until they can be processed. Events are processed using a background thread.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
queueEvent
(EditorEvent<?> ee) Queue the given event.<T> void
registerActionForEvent
(EditorEventType<T> eventType, EditorAction<T> action) <T> void
registerActionForEvent
(EditorEventType<T> eventName, EditorAction<T> action, EditorEventManager.RunOn runOn) Register a handler for the given event name<T> void
removeActionForEvent
(EditorEventType<T> eventType, EditorAction<T> action) Remove handler for the given eventvoid
shutdown()
Shutdown the even thread.
-
Constructor Details
-
EditorEventManager
public EditorEventManager()Constructor
-
-
Method Details
-
shutdown
public void shutdown()Shutdown the even thread. -
queueEvent
-
registerActionForEvent
-
registerActionForEvent
public <T> void registerActionForEvent(EditorEventType<T> eventName, EditorAction<T> action, EditorEventManager.RunOn runOn) Register a handler for the given event name- Parameters:
eventName
-action
-runOn
-
-
removeActionForEvent
Remove handler for the given event- Parameters:
eventType
-action
-
-