Class zwt.ui.popup.PopupWindowEventManager
Extends
zwt.event.UIEventManager.
A popup window event manager is used by a popup window to process popup window 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: PopupWindowEventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.popup.PopupWindowEventManager(zwt_ui_popup_PopupWindow_window)
Construct a popup window event manager and attach it to the specified popup window.
|
Method Attributes | Method Name and Description |
---|---|
addCloseHandler(function_handler)
Add a close handler.
|
|
addInitMoveHandler(function_handler)
Add a move init handler.
|
|
addInitResizeHandler(function_handler)
Add a resize init handler.
|
|
addMaximizeHandler(function_handler)
Add a maximize handler.
|
|
addMinimizeHandler(function_handler)
Add a minimize handler.
|
|
addRestoreHandler(function_handler)
Add a restore handler.
|
|
onEvent(zwt_ui_popup_PopupWindowEvent_event, zwt_ui_popup_PopupWindow_overridePopup, object_arg)
Dispatch the specified popup event to the appropriate handlers.
|
|
removeCloseHandler(function_handler)
Remove a close handler.
|
|
removeInitMoveHandler(function_handler)
Remove a move init handler.
|
|
removeInitResizeHandler(function_handler)
Remove a resize init handler.
|
|
removeMaximizeHandler(function_handler)
Remove a maximize handler.
|
|
removeMinimizeHandler(function_handler)
Remove a minimize handler.
|
|
removeRestoreHandler(function_handler)
Remove a restore handler.
|
- Methods borrowed from class zwt.event.UIEventManager:
- finalizeEventHandling, registerElement
- Methods borrowed from class zwt.event.EventManager:
- addHandler, addHandlers, removeHandler, removeHandlers
Class Detail
zwt.ui.popup.PopupWindowEventManager(zwt_ui_popup_PopupWindow_window)
Construct a popup window event manager and attach it to the specified popup window.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.popup.PopupWindow} zwt_ui_popup_PopupWindow_window
- The popup window to monitor
Method Detail
addCloseHandler(function_handler)
Add a close handler.
- Parameters:
- {Function} function_handler
- The handler to add
addInitMoveHandler(function_handler)
Add a move init handler.
- Parameters:
- {Function} function_handler
- The handler to add
addInitResizeHandler(function_handler)
Add a resize init handler.
- Parameters:
- {Function} function_handler
- The handler to add
addMaximizeHandler(function_handler)
Add a maximize handler.
- Parameters:
- {Function} function_handler
- The handler to add
addMinimizeHandler(function_handler)
Add a minimize handler.
- Parameters:
- {Function} function_handler
- The handler to add
addRestoreHandler(function_handler)
Add a restore handler.
- Parameters:
- {Function} function_handler
- The handler to add
onEvent(zwt_ui_popup_PopupWindowEvent_event, zwt_ui_popup_PopupWindow_overridePopup, object_arg)
Dispatch the specified popup event to the appropriate handlers.
- Parameters:
- {zwt.ui.popup.PopupWindowEvent} zwt_ui_popup_PopupWindowEvent_event
- The event to dispatch
- {zwt.ui.popup.PopupWindow} zwt_ui_popup_PopupWindow_overridePopup
- If set it overrides the popup object passed to the handlers which is the popup managed by the event manager by default
- {zwt.Object} object_arg
- An optional object to pass to the handler method
removeCloseHandler(function_handler)
Remove a close handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeInitMoveHandler(function_handler)
Remove a move init handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeInitResizeHandler(function_handler)
Remove a resize init handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeMaximizeHandler(function_handler)
Remove a maximize handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeMinimizeHandler(function_handler)
Remove a minimize handler.
- Parameters:
- {Function} function_handler
- The handler to remove
removeRestoreHandler(function_handler)
Remove a restore handler.
- Parameters:
- {Function} function_handler
- The handler to remove