|
||||||||||
| 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
org.exoplatform.gwtframework.ui.client.window.ResizeableWindow
public class ResizeableWindow
Window component with ability to resize. Created by The eXo Platform SAS .
| 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 | |
|---|---|
static int |
BORDER_BOTTOM
Bottom border that enables resize |
static int |
BORDER_LEFT
Left border that enables resize |
static int |
BORDER_RIGHT
Right border that enables resize |
static int |
BORDER_TOP
Top border that enables resize |
static int |
HEADER_HEIGHT
Height of this window header |
static int |
MIN_HEIGHT
Minimal window height |
static int |
MIN_WIDTH
Minimal width |
| Fields inherited from class org.exoplatform.gwtframework.ui.client.window.Window |
|---|
maximizeButton, parent |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ResizeableWindow()
Creates new instance of ResizeableWindow |
|
ResizeableWindow(java.lang.String title)
Creates new instance of ResizeableWindow with specified title |
|
| Method Summary | |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Add content widget to this window |
protected boolean |
checkMaximizeRestore(com.google.gwt.user.client.Event event)
Checks whether the mouse cursor over this window and if so - maximizes or restores this window. |
protected boolean |
isStartResizing(com.google.gwt.user.client.Event event)
Checks whether the mouse cursor is places over edges of this window and if so starts resizing |
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
Handling browser's events |
void |
onMaximize()
Resize child widget after this window was maximized. |
void |
onRestore()
Resize child widget after this window was restored from maximized state. |
void |
setHeight(int height)
Sets new height of this window |
void |
setWidth(int width)
Sets new width of this window |
void |
stopResizing()
Stops resizing of this window |
| Methods inherited from class org.exoplatform.gwtframework.ui.client.window.Window |
|---|
addCloseClickHandler, addMaximizeHandler, addRestoreHandler, addWindowButton, beginDragging, center, continueDragging, destroy, endDragging, getHeight, getIcon, getTitle, getWidth, hide, isCanClose, isCanMaximize, isMaximized, onCloseClick, removeWindowButton, setCanClose, setCanMaximize, setIcon, setTitle, show, show, showCentered, showCentered |
| Methods inherited from class com.google.gwt.user.client.ui.DialogBox |
|---|
doAttachChildren, doDetachChildren, getCaption, getHTML, getText, 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 |
|---|
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 |
|---|
public static final int BORDER_LEFT
public static final int BORDER_RIGHT
public static final int BORDER_TOP
public static final int BORDER_BOTTOM
public static final int MIN_HEIGHT
public static final int MIN_WIDTH
public static final int HEADER_HEIGHT
| Constructor Detail |
|---|
public ResizeableWindow()
public ResizeableWindow(java.lang.String title)
title - initial title of this window| Method Detail |
|---|
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.DialogBoxDialogBox.onBrowserEvent(com.google.gwt.user.client.Event)public void setHeight(int height)
setHeight in class Windowheight - the height to setWindow.setHeight(int)public void setWidth(int width)
setWidth in class Windowwidth - the width to setWindow.setWidth(int)public void onMaximize()
onMaximize in interface MaximizeHandleronMaximize in class WindowWindow.onMaximize()public void onRestore()
onRestore in interface RestoreHandleronRestore in class WindowWindow.onRestore()protected boolean checkMaximizeRestore(com.google.gwt.user.client.Event event)
event - MouseDown event
protected boolean isStartResizing(com.google.gwt.user.client.Event event)
event - MouseDown event
public void stopResizing()
public void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class com.google.gwt.user.client.ui.SimplePanelSimplePanel.add(com.google.gwt.user.client.ui.Widget)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||