public class EventHandlersController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EventHandlersController.EventHandlersWrapper
Used to hold a dispatcher's event handlers.
|
Constructor and Description |
---|
EventHandlersController() |
Modifier and Type | Method and Description |
---|---|
void |
bindEventHandlers(ComponentContext c,
HasEventDispatcher dispatcher,
java.lang.String globalKey)
Update all the known event handlers for a dispatcher with the given key with the new dispatcher
instance.
|
void |
clearUnusedEventHandlers()
Remove entries for dispatchers that are no longer present in the tree.
|
java.util.Map<java.lang.String,EventHandlersController.EventHandlersWrapper> |
getEventHandlers() |
void |
recordEventHandler(java.lang.String globalKey,
EventHandler<?> eventHandler)
Map the given event handler to a dispatcher with the given global key.
|
public void bindEventHandlers(ComponentContext c, HasEventDispatcher dispatcher, java.lang.String globalKey)
public void clearUnusedEventHandlers()
public void recordEventHandler(java.lang.String globalKey, EventHandler<?> eventHandler)
public java.util.Map<java.lang.String,EventHandlersController.EventHandlersWrapper> getEventHandlers()