Class zwt.ui.table.RowSorterEventManager
Extends
zwt.event.EventManager.
A row sorter event manager is used by a row sorter to process row sorter 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: RowSorterEventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.table.RowSorterEventManager(zwt_ui_table_RowSorter_sorter)
Construct a row sorter event manager and attach it to the specified row sorter.
|
Method Attributes | Method Name and Description |
---|---|
addOrderChangeHandler(function_handler)
Add an order change handler.
|
|
addSortHandler(function_handler)
Add a sort handler.
|
|
onEvent(zwt_ui_table_RowSorterEvent_event, zwt_ui_table_RowSorter_overrideSorter, object_arg)
Dispatch the specified row sorter event to the appropriate handlers.
|
|
removeOrderChangeHandler(function_handler)
Remove an order change handler.
|
|
removeSortHandler(function_handler)
Remove a sort handler.
|
- Methods borrowed from class zwt.event.EventManager:
- addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.table.RowSorterEventManager(zwt_ui_table_RowSorter_sorter)
Construct a row sorter event manager and attach it to the specified row sorter.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.table.RowSorter} zwt_ui_table_RowSorter_sorter
- The row sorter to monitor
Method Detail
addOrderChangeHandler(function_handler)
Add an order change handler.
- Parameters:
- {Function} function_handler
- The handler to add
addSortHandler(function_handler)
Add a sort handler.
- Parameters:
- {Function} function_handler
- The handler to add
onEvent(zwt_ui_table_RowSorterEvent_event, zwt_ui_table_RowSorter_overrideSorter, object_arg)
Dispatch the specified row sorter event to the appropriate handlers.
- Parameters:
- {zwt.ui.table.RowSorterEvent} zwt_ui_table_RowSorterEvent_event
- The row sorter event to dispatch
- {zwt.ui.table.RowSorter} zwt_ui_table_RowSorter_overrideSorter
- If set it overrides the row sorter object passed to the handlers which is the row sorter managed by the event manager by default
- {zwt.Object} object_arg
- An optional object to pass to the handler method
removeOrderChangeHandler(function_handler)
Remove an order change handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeSortHandler(function_handler)
Remove a sort handler.
- Parameters:
- {Function} function_handler
- The handler to remove