|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.DecoratedPopupPanel
com.google.gwt.user.client.ui.DialogBox
org.exoplatform.gwtframework.ui.client.window.Window
public class Window
Window component that can be modal or not and dragged by user. It has close and maximize/restore buttons.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.DialogBox |
|---|
com.google.gwt.user.client.ui.DialogBox.Caption, com.google.gwt.user.client.ui.DialogBox.CaptionImpl |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
com.google.gwt.user.client.ui.PopupPanel.PositionCallback |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary | |
|---|---|
protected MaximizeButton |
maximizeButton
Maximize window button. |
protected com.google.gwt.user.client.ui.Panel |
parent
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
protected |
Window()
|
|
Window(java.lang.String title)
|
|
Window(java.lang.String title,
com.google.gwt.user.client.ui.Image icon)
|
| Method Summary | |
|---|---|
void |
addCloseClickHandler(CloseClickHandler handler)
Adds CloseClickHandler handler. |
void |
addMaximizeHandler(MaximizeHandler handler)
Adds MaximizeHandler handler. |
void |
addRestoreHandler(RestoreHandler handler)
Adds RestoreHandler handler. |
void |
addWindowButton(WindowButton windowButton)
Adds button to window's header. |
protected void |
beginDragging(com.google.gwt.event.dom.client.MouseDownEvent event)
|
void |
center()
|
protected void |
continueDragging(com.google.gwt.event.dom.client.MouseMoveEvent event)
|
void |
destroy()
Destroy the window. |
protected void |
endDragging(com.google.gwt.event.dom.client.MouseUpEvent event)
|
int |
getHeight()
|
com.google.gwt.user.client.ui.Image |
getIcon()
|
java.lang.String |
getTitle()
|
int |
getWidth()
|
void |
hide()
|
boolean |
isCanClose()
|
boolean |
isCanMaximize()
|
boolean |
isMaximized()
|
void |
onCloseClick()
Perform actions on close window click. |
void |
onMaximize()
Maximize window. |
void |
onRestore()
Restore window size |
void |
removeWindowButton(WindowButton windowButton)
Removes button from window's header. |
void |
setCanClose(boolean canClose)
Set whether window has close button for it's closing. |
void |
setCanMaximize(boolean canMaximize)
Set whether window has maximize/restore button for maximizing/restoring back. |
void |
setHeight(int height)
|
void |
setIcon(com.google.gwt.user.client.ui.Image icon)
Set icon displayed near the window's title. |
void |
setTitle(java.lang.String title)
Set title at the header of the window. |
void |
setWidth(int width)
|
void |
show()
|
void |
show(com.google.gwt.user.client.ui.Panel parent)
|
void |
showCentered()
|
void |
showCentered(com.google.gwt.user.client.ui.Panel parent)
|
| Methods inherited from class com.google.gwt.user.client.ui.DialogBox |
|---|
doAttachChildren, doDetachChildren, getCaption, getHTML, getText, onBrowserEvent, onEnsureDebugId, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, onPreviewNativeEvent, setHTML, setHTML, setText |
| Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel |
|---|
clear, getCellElement, getWidget, iterator, remove, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
addAutoHidePartner, addCloseHandler, addPopupListener, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setVisible, setWidth, showRelativeTo |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, adopt, adopt, disown, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
protected MaximizeButton maximizeButton
protected com.google.gwt.user.client.ui.Panel parent
| Constructor Detail |
|---|
protected Window()
public Window(java.lang.String title)
title - title of the window
public Window(java.lang.String title,
com.google.gwt.user.client.ui.Image icon)
title - title of the windowicon - icon of the window| Method Detail |
|---|
protected void beginDragging(com.google.gwt.event.dom.client.MouseDownEvent event)
beginDragging in class com.google.gwt.user.client.ui.DialogBoxDialogBox.beginDragging(com.google.gwt.event.dom.client.MouseDownEvent)protected void continueDragging(com.google.gwt.event.dom.client.MouseMoveEvent event)
continueDragging in class com.google.gwt.user.client.ui.DialogBoxprotected void endDragging(com.google.gwt.event.dom.client.MouseUpEvent event)
endDragging in class com.google.gwt.user.client.ui.DialogBoxDialogBox.endDragging(com.google.gwt.event.dom.client.MouseUpEvent)public void addCloseClickHandler(CloseClickHandler handler)
HasCloseClickHandlersCloseClickHandler handler.
addCloseClickHandler in interface HasCloseClickHandlershandler - close window click handlerHasCloseClickHandlers.addCloseClickHandler(org.exoplatform.gwtframework.ui.client.window.CloseClickHandler)public void onCloseClick()
CloseClickHandler
onCloseClick in interface CloseClickHandlerCloseClickHandler.onCloseClick()public java.lang.String getTitle()
getTitle in class com.google.gwt.user.client.ui.PopupPanelpublic void setTitle(java.lang.String title)
setTitle in class com.google.gwt.user.client.ui.PopupPaneltitle - the title to setpublic com.google.gwt.user.client.ui.Image getIcon()
public void setIcon(com.google.gwt.user.client.ui.Image icon)
icon - the icon to setpublic int getHeight()
public void setHeight(int height)
height - the height to setpublic int getWidth()
public void setWidth(int width)
width - the width to setpublic boolean isCanClose()
public void setCanClose(boolean canClose)
canClose - the canClose to setpublic boolean isCanMaximize()
public void setCanMaximize(boolean canMaximize)
canMaximize - the canMaximize to setpublic void addWindowButton(WindowButton windowButton)
windowButton - public void removeWindowButton(WindowButton windowButton)
windowButton - public void destroy()
public void addMaximizeHandler(MaximizeHandler handler)
HasMaximizeHandlersMaximizeHandler handler.
addMaximizeHandler in interface HasMaximizeHandlershandler - maximize window handlerHasMaximizeHandlers.addMaximizeHandler(org.exoplatform.gwtframework.ui.client.window.MaximizeHandler)public void onMaximize()
MaximizeHandler
onMaximize in interface MaximizeHandlerMaximizeHandler.onMaximize()public void addRestoreHandler(RestoreHandler handler)
HasRestoreHandlersRestoreHandler handler.
addRestoreHandler in interface HasRestoreHandlershandler - restore window handlerHasRestoreHandlers.addRestoreHandler(org.exoplatform.gwtframework.ui.client.window.RestoreHandler)public void onRestore()
RestoreHandler
onRestore in interface RestoreHandlerRestoreHandler.onRestore()public boolean isMaximized()
public void center()
center in class com.google.gwt.user.client.ui.PopupPanelpublic void show()
show in class com.google.gwt.user.client.ui.DialogBoxpublic void show(com.google.gwt.user.client.ui.Panel parent)
public void showCentered(com.google.gwt.user.client.ui.Panel parent)
public void showCentered()
public void hide()
hide in class com.google.gwt.user.client.ui.DialogBox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||