Class Index | File Index

Classes


Class zwt.ui.popup.PopupWindow


Extends zwt.ui.popup.Popup.

A popup window container appears on top the other widgets with basic window decoration: a title bar, maximize, minimize and close buttons.

CSS rules

.zwt_popupWindow {}
.zwt_popupWindow-move {}
.zwt_popupWindow-resize {}
.zwt_popupWindow .zwt_popupWindow-head {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-title {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-minimize {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-minimize-over {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-maximize {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-maximize-over {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-close {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-titleBar .zwt_popupWindow-close-over {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-topLeft {}
.zwt_popupWindow .zwt_popupWindow-head .zwt_popupWindow-topRight {}
.zwt_popupWindow .zwt_popupWindow-resizer {}
.zwt_popupWindow .zwt_popupWindow-content {}

Defined in: PopupWindow.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a popup window.
Field Summary
Field Attributes Field Name and Description
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMCENTER
Indicate that the window should be placed in the bottom center
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMLEFT
Indicate that the window should be placed in the bottom left corner
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMRIGHT
Indicate that the window should be placed in the bottom right corner
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_CENTER
Indicate that the window should be placed in the center
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERLEFT
Indicate that the window should be placed in the left center
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERRIGHT
Indicate that the window should be placed in the top right corner
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_TOPCENTER
Indicate that the window should be placed in the top center
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_TOPLEFT
Indicate that the window should be placed in the top left corner
<static>  
zwt.ui.popup.PopupWindow.ALIGNMENT_TOPRIGHT
Indicate that the window should be placed in the top right corner
Method Summary
Method Attributes Method Name and Description
 
Return the popup alignment.
 
Return the popup window event manager attached to the popup window.
 
Return the window title.
 
Determine whether the maximize button is enabled.
 
Determine whether the minimize button is enabled.
 
Determine whether the popup window is modal.
 
Determine whether the popup window is resizable.
 
processEvent(zwt_event_Event_event)
Process the specified event.
 
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
 
processPopupWindowEvent(zwt_ui_popup_PopupWindowEvent_event)
Process the specified popup window event.
 
setAlignment(int_alignment)
Set the popup alignment.
 
setMaximize(boolean_maximize)
Disable or enable the maximize button.
 
setMinimize(boolean_minimize)
Disable or enable the minimize button.
 
setModal(boolean_modal)
Make the popup window modal.
 
setResizable(boolean_minimize)
Make the popup window resizable.
 
setTitle(string_text)
Set the window title display in the title bar.
 
show(boolean_forceAlign)
Show the popup window at the last known position or at a position determined from the window alignment.
Methods borrowed from class zwt.ui.popup.Popup:
hide, setDimension, setPosition
Methods borrowed from class zwt.ui.Part:
getClickEventManager, getMouseEventManager, getPartEventManager, processClickEvent, processMouseEvent, processPartEvent, setContent
Methods borrowed from class zwt.ui.container.SingleContainer:
getContent, isFocusable
Methods borrowed from class zwt.ui.container.Container:
getContentEventManager, isFocusContainer, processContentEvent, setFocusContainer
Methods borrowed from class zwt.ui.Widget:
addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isVisible, onEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Class Detail
zwt.ui.popup.PopupWindow()
Construct a popup window.
Author: Jeremy KUHN.
Field Detail
<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMCENTER
Indicate that the window should be placed in the bottom center

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMLEFT
Indicate that the window should be placed in the bottom left corner

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMRIGHT
Indicate that the window should be placed in the bottom right corner

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_CENTER
Indicate that the window should be placed in the center

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERLEFT
Indicate that the window should be placed in the left center

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERRIGHT
Indicate that the window should be placed in the top right corner

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_TOPCENTER
Indicate that the window should be placed in the top center

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_TOPLEFT
Indicate that the window should be placed in the top left corner

<static> {Integer} zwt.ui.popup.PopupWindow.ALIGNMENT_TOPRIGHT
Indicate that the window should be placed in the top right corner
Method Detail
{Integer} getAlignment()
Return the popup alignment.
Returns:
The popup alignment, one of zwt.ui.popup.PopupWindow.ALIGNMENT_TOPLEFT, zwt.ui.popup.PopupWindow.ALIGNMENT_TOPCENTER, zwt.ui.popup.PopupWindow.ALIGNMENT_TOPRIGHT, zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERLEFT, zwt.ui.popup.PopupWindow.ALIGNMENT_CENTER, zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERRIGHT, zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMLEFT, zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMCENTER or zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMRIGHT

{zwt.ui.popup.PopupWindowEventManager} getPopupWindowEventManager()
Return the popup window event manager attached to the popup window.
Returns:
The popup window event manager

{String} getTitle()
Return the window title.
Returns:
The title of the window.

{Boolean} isMaximize()
Determine whether the maximize button is enabled.
Returns:
true if the maximize button is enabled, false otherwise.

{Boolean} isMinimize()
Determine whether the minimize button is enabled.
Returns:
true if the minimize button is enabled, false otherwise.

{Boolean} isModal()
Determine whether the popup window is modal.
Returns:
true if the popup window is modal, false otherwise.

{Boolean} isResizable()
Determine whether the popup window is resizable.
Returns:
true if the popup window is resizable, false otherwise.

processEvent(zwt_event_Event_event)
Process the specified event.
Parameters:
{zwt.event.Event} zwt_event_Event_event
The event to process

processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
Parameters:
{zwt.event.FocusEvent} zwt_event_FocusEvent_event
The focus event to process

processPopupWindowEvent(zwt_ui_popup_PopupWindowEvent_event)
Process the specified popup window event.
Parameters:
{zwt.ui.popup.PopupWindowEvent} zwt_ui_popup_PopupWindowEvent_event
The popup window event to process

setAlignment(int_alignment)
Set the popup alignment.
Parameters:
{String} int_alignment
The popup alignment to set, one of zwt.ui.popup.PopupWindow.ALIGNMENT_TOPLEFT, zwt.ui.popup.PopupWindow.ALIGNMENT_TOPCENTER, zwt.ui.popup.PopupWindow.ALIGNMENT_TOPRIGHT, zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERLEFT, zwt.ui.popup.PopupWindow.ALIGNMENT_CENTER, zwt.ui.popup.PopupWindow.ALIGNMENT_CENTERRIGHT, zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMLEFT, zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMCENTER or zwt.ui.popup.PopupWindow.ALIGNMENT_BOTTOMRIGHT

setMaximize(boolean_maximize)
Disable or enable the maximize button.
Parameters:
{Boolean} boolean_maximize
true to enable the maximize button, false otherwise.

setMinimize(boolean_minimize)
Disable or enable the minimize button.
Parameters:
{Boolean} boolean_minimize
true to enable the minimize button, false otherwise.

setModal(boolean_modal)
Make the popup window modal. A modal popup will be the only active part of the window.
Parameters:
{Boolean} boolean_modal
true to make the popup window modal, false otherwise.

setResizable(boolean_minimize)
Make the popup window resizable.
Parameters:
{Boolean} boolean_minimize
true to make the popup window resizable, false otherwise.

setTitle(string_text)
Set the window title display in the title bar.
Parameters:
{String} string_text
The title to set.

show(boolean_forceAlign)
Show the popup window at the last known position or at a position determined from the window alignment.
Parameters:
{Boolean} boolean_forceAlign
Force the alignment of the popup window when shown even if it was already displayed

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Nov 09 2011 19:29:08 GMT+0100 (CET)