Class Index | File Index

Classes


Class zwt.ui.ListModelEventManager


Extends zwt.event.EventManager.

A list model event manager is used by a list model to process list 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.


Defined in: ListModelEventManager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.ListModelEventManager(zwt_ui_ListModel_model)
Construct a list model event manager and attach it to the specified list model.
Method Summary
Method Attributes Method Name and Description
 
addDeleteHandler(function_handler)
Add a delete handler.
 
addInsertHandler(function_handler)
Add an insert handler.
 
addResetHandler(function_handler)
Add a reset handler.
 
addUpdateHandler(function_handler)
Add an update handler.
 
onEvent(zwt_ui_ListModelEvent_event, zwt_ui_ListModel_overrideModel, object_arg)
Dispatch the specified list model event to the appropriate handlers.
 
removeDeleteHandler(function_handler)
Remove a delete handler.
 
removeInsertHandler(function_handler)
Remove an insert handler.
 
removeResetHandler(function_handler)
Remove a reset handler.
 
removeUpdateHandler(function_handler)
Remove an update handler.
Methods borrowed from class zwt.event.EventManager:
addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.ListModelEventManager(zwt_ui_ListModel_model)
Construct a list model event manager and attach it to the specified list model.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.ListModel} zwt_ui_ListModel_model
The list model to monitor
See:
zwt.ui.ListModelEvent
Method Detail
addDeleteHandler(function_handler)
Add a delete handler.
Parameters:
{Function} function_handler
The handler to add

addInsertHandler(function_handler)
Add an insert handler.
Parameters:
{Function} function_handler
The handler to add

addResetHandler(function_handler)
Add a reset handler.
Parameters:
{Function} function_handler
The handler to add

addUpdateHandler(function_handler)
Add an update handler.
Parameters:
{Function} function_handler
The handler to add

onEvent(zwt_ui_ListModelEvent_event, zwt_ui_ListModel_overrideModel, object_arg)
Dispatch the specified list model event to the appropriate handlers.
Parameters:
{zwt.ui.ListModelEvent} zwt_ui_ListModelEvent_event
The list model event to dispatch
{zwt.ui.ListModel} zwt_ui_ListModel_overrideModel
If set it overrides the list model object passed to the handlers which is the list 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 a delete handler.
Parameters:
{Function} function_handler
The handler to remove

removeInsertHandler(function_handler)
Remove an insert handler.
Parameters:
{Function} function_handler
The handler to remove

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

removeUpdateHandler(function_handler)
Remove an update handler.
Parameters:
{Function} function_handler
The handler to remove

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Nov 09 2011 19:29:08 GMT+0100 (CET)