Class Index | File Index

Classes


Class zwt.ui.table.TableModelEventManager


Extends zwt.event.EventManager.

A table model event manager is used by a table model to process table 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: TableModelEventManager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.table.TableModelEventManager(zwt_ui_table_TableModel_model)
Construct a table model event manager and attach it to the specified table model.
Method Summary
Method Attributes Method Name and Description
 
addResetHandler(function_handler)
Add a table model reset handler.
 
addRowDeleteHandler(function_handler)
Add a row delete handler.
 
addRowInsertHandler(function_handler)
Add a row insert handler.
 
addRowUpdateHandler(function_handler)
Add a row update handler.
 
onEvent(zwt_ui_table_TableModelEvent_event, zwt_ui_table_TableModel_overrideModel, object_arg)
Dispatch the specified table model event to the appropriate handlers.
 
removeResetHandler(function_handler)
Remove a table model reset handler.
 
removeRowDeleteHandler(function_handler)
Remove a row delete handler.
 
removeRowInsertHandler(function_handler)
Remove a row insert handler.
 
removeRowUpdateHandler(function_handler)
Remove a row update handler.
Methods borrowed from class zwt.event.EventManager:
addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.table.TableModelEventManager(zwt_ui_table_TableModel_model)
Construct a table model event manager and attach it to the specified table model.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.table.TableModel} zwt_ui_table_TableModel_model
The table model to monitor
See:
zwt.ui.table.TableModelEvent
Method Detail
addResetHandler(function_handler)
Add a table model reset handler.
Parameters:
{Function} function_handler
The handler to add

addRowDeleteHandler(function_handler)
Add a row delete handler.
Parameters:
{Function} function_handler
The handler to add

addRowInsertHandler(function_handler)
Add a row insert handler.
Parameters:
{Function} function_handler
The handler to add

addRowUpdateHandler(function_handler)
Add a row update handler.
Parameters:
{Function} function_handler
The handler to add

onEvent(zwt_ui_table_TableModelEvent_event, zwt_ui_table_TableModel_overrideModel, object_arg)
Dispatch the specified table model event to the appropriate handlers.
Parameters:
{zwt.ui.table.TableModelEvent} zwt_ui_table_TableModelEvent_event
The table model event to dispatch
{zwt.ui.table.TableModel} zwt_ui_table_TableModel_overrideModel
If set it overrides the table model object passed to the handlers which is the table model managed by the event manager by default
{zwt.Object} object_arg
An optional object to pass to the handler method

removeResetHandler(function_handler)
Remove a table model reset handler.
Parameters:
{Function} function_handler
The handler to remove

removeRowDeleteHandler(function_handler)
Remove a row delete handler.
Parameters:
{Function} function_handler
The handler to remove

removeRowInsertHandler(function_handler)
Remove a row insert handler.
Parameters:
{Function} function_handler
The handler to remove

removeRowUpdateHandler(function_handler)
Remove a row update handler.
Parameters:
{Function} function_handler
The handler to remove

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 12 2012 02:07:54 GMT+0100 (CET)