com.vaadin.terminal.gwt.client.ui.window
Class VWindow
java.lang.Object
com.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.vaadin.terminal.gwt.client.ui.VOverlay
com.vaadin.terminal.gwt.client.ui.window.VWindow
- All Implemented Interfaces:
- com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.ScrollHandler, com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, Focusable, ShortcutActionHandler.ShortcutActionHandlerOwner, Iterable<com.google.gwt.user.client.ui.Widget>
public class VWindow
- extends VOverlay
- implements ShortcutActionHandler.ShortcutActionHandlerOwner, com.google.gwt.event.dom.client.ScrollHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.BlurHandler, Focusable
"Sub window" component.
- Author:
- Vaadin Ltd
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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
Methods inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay |
getOwner, isShadowEnabled, isSinkShadowEvents, onClose, onDetach, setOwner, setShadowEnabled, setShadowStyle, setSinkShadowEvents, sinkEvents, updateShadowSizeAndPosition |
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
addAutoHidePartner, addCloseHandler, addPopupListener, center, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeTo |
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
add, getWidget, iterator, remove, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, 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, onLoad, removeFromParent, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets |
add, clear, iterator, remove |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
Z_INDEX
public static final int Z_INDEX
- See Also:
- Constant Field Values
client
protected ApplicationConnection client
VWindow
public VWindow()
bringToFront
public void bringToFront()
setZIndex
protected void setZIndex(int zIndex)
- Description copied from class:
VOverlay
- Set the z-index (visual stack position) for this overlay.
- Overrides:
setZIndex
in class VOverlay
- Parameters:
zIndex
- The new z-index
getModalityCurtain
protected com.google.gwt.user.client.Element getModalityCurtain()
constructDOM
protected void constructDOM()
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interface com.google.gwt.user.client.ui.HasVisibility
- Overrides:
setVisible
in class VOverlay
setClosable
protected void setClosable(boolean closable)
- Sets the closable state of the window. Additionally hides/shows the close
button according to the new state.
- Parameters:
closable
- true if the window can be closed by the user
isClosable
protected boolean isClosable()
- Returns the closable state of the sub window. If the sub window is
closable a decoration (typically an X) is shown to the user. By clicking
on the X the user can close the window.
- Returns:
- true if the sub window is closable
show
public void show()
- Overrides:
show
in class VOverlay
hide
public void hide()
- Overrides:
hide
in class com.google.gwt.user.client.ui.PopupPanel
setPopupPosition
public void setPopupPosition(int left,
int top)
- Overrides:
setPopupPosition
in class VOverlay
setCaption
public void setCaption(String c)
setCaption
public void setCaption(String c,
String icon)
getContainerElement
protected com.google.gwt.user.client.Element getContainerElement()
- Overrides:
getContainerElement
in class com.google.gwt.user.client.ui.PopupPanel
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
setWidth
public void setWidth(String width)
- Overrides:
setWidth
in class VOverlay
setHeight
public void setHeight(String height)
- Overrides:
setHeight
in class VOverlay
onEventPreview
public boolean onEventPreview(com.google.gwt.user.client.Event event)
- Specified by:
onEventPreview
in interface com.google.gwt.user.client.EventPreview
- Overrides:
onEventPreview
in class com.google.gwt.user.client.ui.PopupPanel
addStyleDependentName
public void addStyleDependentName(String styleSuffix)
- Overrides:
addStyleDependentName
in class com.google.gwt.user.client.ui.UIObject
getShortcutActionHandler
public ShortcutActionHandler getShortcutActionHandler()
- Description copied from interface:
ShortcutActionHandler.ShortcutActionHandlerOwner
- Returns the ShortCutActionHandler currently used or null if there is
currently no shortcutactionhandler
- Specified by:
getShortcutActionHandler
in interface ShortcutActionHandler.ShortcutActionHandlerOwner
onScroll
public void onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
- Specified by:
onScroll
in interface com.google.gwt.event.dom.client.ScrollHandler
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
- Specified by:
onKeyDown
in interface com.google.gwt.event.dom.client.KeyDownHandler
onBlur
public void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
- Specified by:
onBlur
in interface com.google.gwt.event.dom.client.BlurHandler
onFocus
public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
- Specified by:
onFocus
in interface com.google.gwt.event.dom.client.FocusHandler
focus
public void focus()
- Description copied from interface:
Focusable
- Sets focus to this widget.
- Specified by:
focus
in interface Focusable
getMinHeight
public int getMinHeight()
getMinWidth
public int getMinWidth()
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.