Class Index | File Index

Classes


Class zwt.ui.ListSelectionModelEventManager


Extends zwt.event.EventManager.

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


Defined in: ListSelectionModelEventManager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.ListSelectionModelEventManager(zwt_ui_ListSelectionModel_model)
Construct a list selection model event manager and attach it to the specified selection model.
Method Summary
Method Attributes Method Name and Description
 
addDeselectHandler(function_handler)
Add a deselect element handler.
 
addSelectHandler(function_handler)
Add a select element handler.
 
onEvent(zwt_ui_ListSelectionModelEvent_event, zwt_ui_ListSelectionModel_overrideModel, object_arg)
Dispatch the specified list selection model event to the appropriate handlers.
 
removeDeselectHandler(function_handler)
Remove a deselect element handler.
 
removeSelectHandler(function_handler)
Remove a select element handler.
Methods borrowed from class zwt.event.EventManager:
addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.ListSelectionModelEventManager(zwt_ui_ListSelectionModel_model)
Construct a list selection model event manager and attach it to the specified selection model.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.ListSelectionModel} zwt_ui_ListSelectionModel_model
The list selection model to monitor
See:
zwt.ui.ListSelectionModelEvent
Method Detail
addDeselectHandler(function_handler)
Add a deselect element handler.
Parameters:
{Function} function_handler
The handler to add

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

onEvent(zwt_ui_ListSelectionModelEvent_event, zwt_ui_ListSelectionModel_overrideModel, object_arg)
Dispatch the specified list selection model event to the appropriate handlers.
Parameters:
{zwt.ui.ListSelectionModelEvent} zwt_ui_ListSelectionModelEvent_event
The selection model event to dispatch
{zwt.ui.ListSelectionModel} zwt_ui_ListSelectionModel_overrideModel
If set it overrides the list selection model object passed to the handlers which is the list 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 element handler.
Parameters:
{Function} function_handler
The handler to remove

removeSelectHandler(function_handler)
Remove a select element 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)