Class zwt.event.ClickEventManager
Extends
zwt.event.UIEventManager.
A click event manager is used by a widget to process click events and dispatch them to the appropriate handlers.
Handlers are methods previously registered on the event manager to handle a specific type of event. A typical handler method has two input parameters: the object that triggered the event and the event. An optional object argument may also be passed to the handler if it was provided when dispatching the event to the event manager (see zwt.event.EventManager#onEvent).
Defined in: ClickEventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.event.ClickEventManager(zwt_ui_Widget_widget)
Construct a click event manager and attach it to the specified widget.
|
Method Attributes | Method Name and Description |
---|---|
addClickHandler(function_handler)
Add a click handler.
|
|
addDoubleClickHandler(function_handler)
Add a double click handler.
|
|
removeClickHandler(function_handler)
Remove a click handler.
|
|
removeDoubleClickHandler(function_handler)
Remove a double click handler.
|
- Methods borrowed from class zwt.event.UIEventManager:
- finalizeEventHandling, registerElement
- Methods borrowed from class zwt.event.EventManager:
- addHandler, addHandlers, onEvent, removeHandler, removeHandlers
Class Detail
zwt.event.ClickEventManager(zwt_ui_Widget_widget)
Construct a click event manager and attach it to the specified widget.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.Widget} zwt_ui_Widget_widget
- The widget to monitor
- See:
- zwt.event.ClickEvent
Method Detail
addClickHandler(function_handler)
Add a click handler.
- Parameters:
- {Function} function_handler
- The handler to add
addDoubleClickHandler(function_handler)
Add a double click handler.
- Parameters:
- {Function} function_handler
- The handler to add
removeClickHandler(function_handler)
Remove a click handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeDoubleClickHandler(function_handler)
Remove a double click handler.
- Parameters:
- {Function} function_handler
- The handler to remove