Class Index | File Index

Classes


Class zwt.ui.tree.TreeSelectionModelEventManager


Extends zwt.event.EventManager.

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

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.tree.TreeSelectionModelEventManager(zwt_ui_tree_TreeModel_model)
Construct a tree selection model event manager and attach it to the specified tree model.
Method Summary
Method Attributes Method Name and Description
 
addDeselectHandler(function_handler)
Add a deselect handler.
 
addSelectHandler(function_handler)
Add an select handler.
 
onEvent(zwt_ui_tree_TreeSelectionModelEvent_event, zwt_ui_tree_TreeSelectionModel_overrideModel, object_arg)
Dispatch the specified tree selection model event to the appropriate handlers.
 
removeDeselectHandler(function_handler)
Remove a deselect handler.
 
removeSelectHandler(function_handler)
Remove an select handler.
Methods borrowed from class zwt.event.EventManager:
addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.tree.TreeSelectionModelEventManager(zwt_ui_tree_TreeModel_model)
Construct a tree selection 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
addDeselectHandler(function_handler)
Add a deselect handler.
Parameters:
{Function} function_handler
The handler to add

addSelectHandler(function_handler)
Add an select handler.
Parameters:
{Function} function_handler
The handler to add

onEvent(zwt_ui_tree_TreeSelectionModelEvent_event, zwt_ui_tree_TreeSelectionModel_overrideModel, object_arg)
Dispatch the specified tree selection model event to the appropriate handlers.
Parameters:
{zwt.ui.tree.TreeSelectionModelEvent} zwt_ui_tree_TreeSelectionModelEvent_event
The tree selection model event to dispatch
{zwt.ui.tree.TreeSelectionModel} zwt_ui_tree_TreeSelectionModel_overrideModel
If set it overrides the tree selection model object passed to the handlers which is the tree selection model managed by the event manager by default
{zwt.Object} object_arg
An optional object to pass to the handler method

removeDeselectHandler(function_handler)
Remove a deselect handler.
Parameters:
{Function} function_handler
The handler to remove

removeSelectHandler(function_handler)
Remove an select handler.
Parameters:
{Function} function_handler
The handler to remove

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