Class Index | File Index

Classes


Class zwt.ui.tree.TreeModelEventManager


Extends zwt.event.EventManager.

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

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.tree.TreeModelEventManager(zwt_ui_tree_TreeModel_model)
Construct a tree model event manager and attach it to the specified tree model.
Method Summary
Method Attributes Method Name and Description
 
addCollapseHandler(function_handler)
Add a collapse handler.
 
addDeleteHandler(function_handler)
Add a delete handler.
 
addExpandHandler(function_handler)
Add an expand 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_tree_TreeModelEvent_event, zwt_ui_tree_TreeModel_overrideModel, object_arg)
Dispatch the specified tree model event to the appropriate handlers.
 
removeCollapseHandler(function_handler)
Remove a collapse handler.
 
removeDeleteHandler(function_handler)
Remove a delete handler.
 
removeExpandHandler(function_handler)
Remove an expand 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.tree.TreeModelEventManager(zwt_ui_tree_TreeModel_model)
Construct a tree model event manager and attach it to the specified tree model.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.tree.TreeModel} zwt_ui_tree_TreeModel_model
The tree model to monitor
See:
zwt.ui.tree.TreeModelEvent
Method Detail
addCollapseHandler(function_handler)
Add a collapse handler.
Parameters:
{Function} function_handler
The handler to add

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

addExpandHandler(function_handler)
Add an expand 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_tree_TreeModelEvent_event, zwt_ui_tree_TreeModel_overrideModel, object_arg)
Dispatch the specified tree model event to the appropriate handlers.
Parameters:
{zwt.ui.tree.TreeModelEvent} zwt_ui_tree_TreeModelEvent_event
The tree model event to dispatch
{zwt.ui.tree.TreeModel} zwt_ui_tree_TreeModel_overrideModel
If set it overrides the tree model object passed to the handlers which is the tree model managed by the event manager by default
{zwt.Object} object_arg
An optional object to pass to the handler method

removeCollapseHandler(function_handler)
Remove a collapse handler.
Parameters:
{Function} function_handler
The handler to remove

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

removeExpandHandler(function_handler)
Remove an expand 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 Thu Jan 12 2012 02:07:54 GMT+0100 (CET)