Class Index | File Index

Classes


Class zwt.ui.table.CellEditorEventManager


Extends zwt.event.EventManager.

A cell editor event manager is used by a cell editor to process cell editor 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: CellEditorEventManager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.table.CellEditorEventManager(zwt_ui_table_CellEditor_editor)
Construct a cell editor event manager and attach it to the specified cell editor.
Method Summary
Method Attributes Method Name and Description
 
addEditingCanceledHandler(function_handler)
Add an editing canceled handler.
 
addEditingStoppedHandler(function_handler)
Add an editing stopped handler.
 
onEvent(zwt_ui_table_CellEditorEvent_event, zwt_ui_table_CellEditor_overrideEditor, object_arg)
Dispatch the specified cell editor event to the appropriate handlers.
 
removeEditingCanceledHandler(function_handler)
Remove an editing canceled handler.
 
removeEditingStoppedHandler(function_handler)
Remove an editing stopped handler.
Methods borrowed from class zwt.event.EventManager:
addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.table.CellEditorEventManager(zwt_ui_table_CellEditor_editor)
Construct a cell editor event manager and attach it to the specified cell editor.
Author: Jeremy KUHN.
Parameters:
{zwt.ui.table.CellEditor} zwt_ui_table_CellEditor_editor
The cell editor to monitor
See:
zwt.ui.table.CellEditorEvent
Method Detail
addEditingCanceledHandler(function_handler)
Add an editing canceled handler.
Parameters:
{Function} function_handler
The handler to add

addEditingStoppedHandler(function_handler)
Add an editing stopped handler.
Parameters:
{Function} function_handler
The handler to add

onEvent(zwt_ui_table_CellEditorEvent_event, zwt_ui_table_CellEditor_overrideEditor, object_arg)
Dispatch the specified cell editor event to the appropriate handlers.
Parameters:
{zwt.ui.table.CellEditorEvent} zwt_ui_table_CellEditorEvent_event
The event to dispatch
{zwt.ui.table.CellEditor} zwt_ui_table_CellEditor_overrideEditor
If set it overrides the cell editor object passed to the handlers which is the cell editor managed by the event manager by default
{zwt.Object} object_arg
An optional object to pass to the handler method

removeEditingCanceledHandler(function_handler)
Remove an editing canceled handler.
Parameters:
{Function} function_handler
The handler to remove

removeEditingStoppedHandler(function_handler)
Remove an editing stopped handler.
Parameters:
{Function} function_handler
The handler to remove

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 12 2012 02:07:53 GMT+0100 (CET)