public class EventHandlersController extends 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,
String globalKey)
Update all the known event handlers for a dispatcher with the given key with the new dispacher
instance.
|
void |
clearUnusedEventHandlers()
Remove entries for dispatchers that are no longer present in the tree.
|
Map<String,EventHandlersController.EventHandlersWrapper> |
getEventHandlers() |
void |
recordEventHandler(String globalKey,
EventHandler eventHandler)
Map the given event handler to a dispatcher with the given global key.
|
public void bindEventHandlers(ComponentContext c, HasEventDispatcher dispatcher, String globalKey)
public void clearUnusedEventHandlers()
public void recordEventHandler(String globalKey, EventHandler eventHandler)
public Map<String,EventHandlersController.EventHandlersWrapper> getEventHandlers()