Class zwt.ui.table.ColumnEventManager
Extends
zwt.event.EventManager.
A column event manager is used by a column to process column 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: ColumnEventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.table.ColumnEventManager(zwt_ui_table_Column_column)
Construct a column event manager and attach it to the specified column.
|
Method Attributes | Method Name and Description |
---|---|
addChangeHandler(function_handler)
Add an column change handler.
|
|
onEvent(zwt_ui_table_ColumnEvent_event, zwt_ui_table_Column_overrideColumn, object_arg)
Dispatch the specified column event to the appropriate handlers.
|
|
removeChangeHandler(function_handler)
Remove a column change handler.
|
- Methods borrowed from class zwt.event.EventManager:
- addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.table.ColumnEventManager(zwt_ui_table_Column_column)
Construct a column event manager and attach it to the specified column.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.table.Column} zwt_ui_table_Column_column
- The column to monitor
Method Detail
addChangeHandler(function_handler)
Add an column change handler.
- Parameters:
- {Function} function_handler
- The handler to add
onEvent(zwt_ui_table_ColumnEvent_event, zwt_ui_table_Column_overrideColumn, object_arg)
Dispatch the specified column event to the appropriate handlers.
- Parameters:
- {zwt.ui.table.ColumnEvent} zwt_ui_table_ColumnEvent_event
- The column event to dispatch
- {zwt.ui.table.Column} zwt_ui_table_Column_overrideColumn
- If set it overrides the column object passed to the handlers which is the column managed by the event manager by default
- {zwt.Object} object_arg
- An optional object to pass to the handler method
removeChangeHandler(function_handler)
Remove a column change handler.
- Parameters:
- {Function} function_handler
- The handler to remove