Class Index | File Index

Classes


Class zwt.ui.table.TableSelectionModelEventManager


Extends zwt.event.EventManager.

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

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.table.TableSelectionModelEventManager(zwt_ui_table_TableSelectionModel_model)
Construct a selection model event manager and attach it to the specified selection model.
Method Summary
Method Attributes Method Name and Description
 
addDeselectCellHandler(function_handler)
Add a deselect cell handler.
 
addDeselectColumnHandler(function_handler)
Add a deselect column handler.
 
addDeselectRowHandler(function_handler)
Add a deselect row handler.
 
addSelectCellHandler(function_handler)
Add a select cell handler.
 
addSelectColumnHandler(function_handler)
Add a select column handler.
 
addSelectRowHandler(function_handler)
Add a select row handler.
 
onEvent(zwt_ui_table_TableSelectionModelEvent_event, zwt_ui_table_TableSelectionModel_overrideModel, object_arg)
Dispatch the specified selection model event to the appropriate handlers.
 
removeDeselectCellHandler(function_handler)
Remove a deselect cell handler.
 
removeDeselectColumnHandler(function_handler)
Remove a deselect column handler.
 
removeDeselectRowHandler(function_handler)
Remove a deselect row handler.
 
removeSelectCellHandler(function_handler)
Remove a select cell handler.
 
removeSelectColumnHandler(function_handler)
Remove a select column handler.
 
removeSelectRowHandler(function_handler)
Remove a select row handler.
Methods borrowed from class zwt.event.EventManager:
addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.table.TableSelectionModelEventManager(zwt_ui_table_TableSelectionModel_model)
Construct a selection model event manager and attach it to the specified selection model.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.table.TableSelectionModel} zwt_ui_table_TableSelectionModel_model
The selection model to monitor
See:
zwt.ui.table.TableSelectionModelEvent
Method Detail
addDeselectCellHandler(function_handler)
Add a deselect cell handler.
Parameters:
{Function} function_handler
The handler to add

addDeselectColumnHandler(function_handler)
Add a deselect column handler.
Parameters:
{Function} function_handler
The handler to add

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

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

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

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

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

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

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

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

removeSelectCellHandler(function_handler)
Remove a select cell handler.
Parameters:
{Function} function_handler
The handler to remove

removeSelectColumnHandler(function_handler)
Remove a select column handler.
Parameters:
{Function} function_handler
The handler to remove

removeSelectRowHandler(function_handler)
Remove a select row 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)