Class zwt.ui.table.ColumnModelEventManager
Extends
zwt.event.EventManager.
A column model event manager is used by a column model to process column model 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: ColumnModelEventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.table.ColumnModelEventManager(zwt_ui_table_ColumnModel_model)
Construct a column model event manager and attach it to the specified column model.
|
Method Attributes | Method Name and Description |
---|---|
addDeleteHandler(function_handler)
Add an column delete handler.
|
|
addInsertHandler(function_handler)
Add an column insert handler.
|
|
addMoveHandler(function_handler)
Add an column move handler.
|
|
addResetHandler(function_handler)
Add an column model reset handler.
|
|
onEvent(zwt_ui_table_ColumnModelEvent_event, zwt_ui_table_ColumnModel_overrideModel, object_arg)
Dispatch the specified column model event to the appropriate handlers.
|
|
removeDeleteHandler(function_handler)
Remove an column delete handler.
|
|
removeInsertHandler(function_handler)
Remove an column insert handler.
|
|
removeMoveHandler(function_handler)
Remove an column move handler.
|
|
removeResetHandler(function_handler)
Remove an column model reset handler.
|
- Methods borrowed from class zwt.event.EventManager:
- addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.table.ColumnModelEventManager(zwt_ui_table_ColumnModel_model)
Construct a column model event manager and attach it to the specified column model.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.table.ColumnModel} zwt_ui_table_ColumnModel_model
- The column model to monitor
Method Detail
addDeleteHandler(function_handler)
Add an column delete handler.
- Parameters:
- {Function} function_handler
- The handler to add
addInsertHandler(function_handler)
Add an column insert handler.
- Parameters:
- {Function} function_handler
- The handler to add
addMoveHandler(function_handler)
Add an column move handler.
- Parameters:
- {Function} function_handler
- The handler to add
addResetHandler(function_handler)
Add an column model reset handler.
- Parameters:
- {Function} function_handler
- The handler to add
onEvent(zwt_ui_table_ColumnModelEvent_event, zwt_ui_table_ColumnModel_overrideModel, object_arg)
Dispatch the specified column model event to the appropriate handlers.
- Parameters:
- {zwt.ui.table.ColumnModelEvent} zwt_ui_table_ColumnModelEvent_event
- The column model event to dispatch
- {zwt.ui.table.ColumnModel} zwt_ui_table_ColumnModel_overrideModel
- If set it overrides the column model object passed to the handlers which is the column model managed by the event manager by default
- {zwt.Object} object_arg
- An optional object to pass to the handler method
removeDeleteHandler(function_handler)
Remove an column delete handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeInsertHandler(function_handler)
Remove an column insert handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeMoveHandler(function_handler)
Remove an column move handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeResetHandler(function_handler)
Remove an column model reset handler.
- Parameters:
- {Function} function_handler
- The handler to remove