public class SubWindowWidget
extends com.vaadin.client.ui.VOverlay
implements com.vaadin.client.ui.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, com.vaadin.client.Focusable
com.vaadin.client.widgets.Overlay.PositionAndSize, com.vaadin.client.widgets.Overlay.ResizeAnimationcom.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Modifier and Type | Field and Description |
|---|---|
int |
bringToFrontSequence
For internal use only.
|
boolean |
centered
If centered (via UIDL), the window should stay in the centered -mode
until a position is received from the server, or the user moves or
resizes the window.
|
static String |
CLASSNAME |
com.vaadin.client.ApplicationConnection |
client
For internal use only.
|
com.google.gwt.dom.client.Element |
closeBox
For internal use only.
|
SubWindowConnector |
connector
For internal use only.
|
com.vaadin.client.ui.FocusableScrollPanel |
contentPanel
For internal use only.
|
com.google.gwt.dom.client.Element |
contents
For internal use only.
|
com.google.gwt.dom.client.Element |
footer
For internal use only.
|
com.google.gwt.dom.client.Element |
header
For internal use only.
|
String |
id
For internal use only.
|
com.google.gwt.dom.client.Element |
maximizeRestoreBox
For internal use only.
|
com.google.gwt.dom.client.Element |
minimizeBox
For internal use only.
|
boolean |
resizable
For internal use only.
|
boolean |
resizeLazy
For internal use only.
|
com.vaadin.client.ui.ShortcutActionHandler |
shortcutHandler
For internal use only.
|
boolean |
vaadinModality
For internal use only.
|
boolean |
visibilityChangesDisabled
For internal use only.
|
static int |
Z_INDEX |
| Constructor and Description |
|---|
SubWindowWidget() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addMoveHandler(SubWindowMoveHandler handler)
Adds a Handler for when user moves the window.
|
void |
addStyleDependentName(String styleSuffix) |
static com.google.gwt.event.shared.HandlerRegistration |
addWindowOrderHandler(com.vaadin.client.ui.window.WindowOrderHandler handler)
Adds a Handler for window order change event.
|
void |
bringToFront() |
protected void |
constructDOM() |
static void |
deferOrdering()
Calling this method will defer ordering algorithm, to order windows based
on servers bringToFront and modality instructions.
|
void |
focus() |
List<com.vaadin.shared.Connector> |
getAssistiveDescription()
Gets the connectors that are used as assistive description.
|
String |
getAssistivePostfix()
Getter for the text for assistive devices the window caption is postfixed
with.
|
String |
getAssistivePrefix()
Getter for the text for assistive devices the window caption is prefixed
with.
|
protected com.google.gwt.user.client.Element |
getContainerElement() |
protected com.google.gwt.user.client.Element |
getModalityCurtain() |
com.vaadin.client.ui.ShortcutActionHandler |
getShortcutActionHandler() |
String |
getTabStopBottomAssistiveText()
Gets the message that is provided to users of assistive devices when the
user reaches the bottom of the window when leaving a window with the tab
key is prevented.
|
String |
getTabStopTopAssistiveText()
Gets the message that is provided to users of assistive devices when the
user reaches the top of the window when leaving a window with the tab key
is prevented.
|
int |
getWindowOrder()
Returns window position in list of opened and shown windows.
|
void |
hide() |
protected boolean |
isClosable()
Returns the closable state of the sub window.
|
static boolean |
isModalWindowOpen()
Checks if a modal window is currently open.
|
protected void |
onAttach() |
void |
onBlur(com.google.gwt.event.dom.client.BlurEvent event) |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
protected void |
onDetach() |
boolean |
onEventPreview(com.google.gwt.user.client.Event event) |
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event) |
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) |
void |
onScroll(com.google.gwt.event.dom.client.ScrollEvent event) |
void |
setAssistiveDescription(com.vaadin.shared.Connector[] connectors)
Allows to specify which connectors contain the description for the
window.
|
void |
setAssistivePostfix(String assistivePostfix)
Setter for the text for assistive devices the window caption is postfixed
with.
|
void |
setAssistivePrefix(String assistivePrefix)
Setter for the text for assistive devices the window caption is prefixed
with.
|
void |
setCaption(String c) |
void |
setCaption(String c,
String iconURL) |
void |
setCaption(String c,
String iconURL,
boolean asHtml) |
void |
setClosable(boolean closable)
Sets the closable state of the window.
|
void |
setDraggable(boolean draggable)
For internal use only.
|
void |
setHeight(String height) |
void |
setPopupPosition(int left,
int top) |
void |
setPopupPositionNoUpdate(int left,
int top) |
void |
setResizable(boolean resizability)
For internal use only.
|
void |
setTabStopBottomAssistiveText(String bottomMessage)
Sets the message that is provided to users of assistive devices when the
user reaches the bottom of the window when leaving a window with the tab
key is prevented.
|
void |
setTabStopEnabled(boolean doTabStop)
Registers the handlers that prevent to leave the window using the
Tab-key.
|
void |
setTabStopTopAssistiveText(String topMessage)
Sets the message that is provided to users of assistive devices when the
user reaches the top of the window when leaving a window with the tab key
is prevented.
|
void |
setVaadinModality(boolean modality)
For internal use only.
|
void |
setVisible(boolean visible) |
void |
setWaiAriaRole(com.vaadin.shared.ui.window.WindowRole role)
Sets the WAI-ARIA role the window.
|
void |
setWidth(String width) |
void |
setWindowOrderAndPosition()
For internal use only.
|
protected void |
setZIndex(int zIndex) |
void |
show() |
void |
updateContentsSize() |
void |
updateMaximizeRestoreClassName(boolean visible,
SubWindowMode windowMode) |
getApplicationConnection, getOverlayContainer, getOverlayContainer, setOverlayContainerLabelcenter, getOwner, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, positionOrSizeUpdated, setFitInWindow, setOwner, updateShadowSizeAndPositionaddAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeToadd, getWidget, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, clear, iterator, removeforEach, spliteratorpublic static final String CLASSNAME
public static final int Z_INDEX
public com.google.gwt.dom.client.Element contents
public com.google.gwt.dom.client.Element header
public com.google.gwt.dom.client.Element footer
public final com.vaadin.client.ui.FocusableScrollPanel contentPanel
public com.google.gwt.dom.client.Element closeBox
public com.google.gwt.dom.client.Element maximizeRestoreBox
public com.google.gwt.dom.client.Element minimizeBox
public com.vaadin.client.ApplicationConnection client
public SubWindowConnector connector
public String id
public com.vaadin.client.ui.ShortcutActionHandler shortcutHandler
public boolean vaadinModality
public boolean resizable
public boolean resizeLazy
public boolean centered
For internal use only. May be removed or replaced in the future.
public boolean visibilityChangesDisabled
public int bringToFrontSequence
protected void onAttach()
onAttach in class com.vaadin.client.widgets.Overlayprotected void onDetach()
onDetach in class com.vaadin.client.widgets.Overlaypublic void bringToFront()
public void setWindowOrderAndPosition()
public final int getWindowOrder()
protected void setZIndex(int zIndex)
setZIndex in class com.vaadin.client.widgets.Overlayprotected com.google.gwt.user.client.Element getModalityCurtain()
protected void constructDOM()
public void setTabStopTopAssistiveText(String topMessage)
This message is not visible on the screen.
topMessage - String provided when the user navigates with Shift-Tab keys to
the top of the windowpublic void setTabStopBottomAssistiveText(String bottomMessage)
This message is not visible on the screen.
bottomMessage - String provided when the user navigates with the Tab key to
the bottom of the windowpublic String getTabStopTopAssistiveText()
public String getTabStopBottomAssistiveText()
public static void deferOrdering()
For internal use only. May be removed or replaced in the future.
public void setVisible(boolean visible)
setVisible in interface com.google.gwt.user.client.ui.HasVisibilitysetVisible in class com.vaadin.client.widgets.Overlaypublic void setDraggable(boolean draggable)
draggable - booleanpublic void setClosable(boolean closable)
closable - true if the window can be closed by the userprotected boolean isClosable()
public void show()
show in class com.vaadin.client.widgets.Overlaypublic void hide()
hide in class com.vaadin.client.widgets.Overlaypublic void setVaadinModality(boolean modality)
modality - booleanpublic void setResizable(boolean resizability)
resizability - booleanpublic void updateMaximizeRestoreClassName(boolean visible,
SubWindowMode windowMode)
visible - visiblewindowMode - windowModepublic void setPopupPositionNoUpdate(int left,
int top)
left - lefttop - toppublic void setPopupPosition(int left,
int top)
setPopupPosition in class com.vaadin.client.widgets.Overlaypublic void setCaption(String c)
c - captionpublic void setCaption(String c, String iconURL, boolean asHtml)
c - captioniconURL - iconasHtml - asHtmlpublic void setAssistivePrefix(String assistivePrefix)
assistivePrefix - the assistivePrefix to setpublic String getAssistivePrefix()
public void setAssistivePostfix(String assistivePostfix)
assistivePostfix - the assistivePostfix to setpublic String getAssistivePostfix()
protected com.google.gwt.user.client.Element getContainerElement()
getContainerElement in class com.google.gwt.user.client.ui.PopupPanelpublic 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.Widgetpublic void updateContentsSize()
public void setWidth(String width)
setWidth in class com.vaadin.client.widgets.Overlaypublic void setHeight(String height)
setHeight in class com.vaadin.client.widgets.Overlaypublic boolean onEventPreview(com.google.gwt.user.client.Event event)
onEventPreview in interface com.google.gwt.user.client.EventPreviewonEventPreview in class com.google.gwt.user.client.ui.PopupPanelpublic void addStyleDependentName(String styleSuffix)
addStyleDependentName in class com.google.gwt.user.client.ui.UIObjectpublic com.vaadin.client.ui.ShortcutActionHandler getShortcutActionHandler()
getShortcutActionHandler in interface com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwnerpublic void onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
onScroll in interface com.google.gwt.event.dom.client.ScrollHandlerpublic void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandlerpublic void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
onBlur in interface com.google.gwt.event.dom.client.BlurHandlerpublic void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus in interface com.google.gwt.event.dom.client.FocusHandlerpublic void focus()
focus in interface com.vaadin.client.Focusablepublic void setAssistiveDescription(com.vaadin.shared.Connector[] connectors)
When the provided array is empty, an existing description is removed.
connectors - with the connectors of the widgets to use as descriptionpublic List<com.vaadin.shared.Connector> getAssistiveDescription()
public void setWaiAriaRole(com.vaadin.shared.ui.window.WindowRole role)
role - WAI-ARIA role to set for the windowpublic void setTabStopEnabled(boolean doTabStop)
The value of the parameter doTabStop is stored and used for non-modal windows. For modal windows, the handlers are always registered, while preserving the stored value.
doTabStop - true to prevent leaving the window, false to allow leaving the
window for non modal windowspublic com.google.gwt.event.shared.HandlerRegistration addMoveHandler(SubWindowMoveHandler handler)
handler - handlerHandlerRegistration used to remove the handlerpublic static com.google.gwt.event.shared.HandlerRegistration addWindowOrderHandler(com.vaadin.client.ui.window.WindowOrderHandler handler)
handler - handlerpublic static boolean isModalWindowOpen()
true if a modal window is open, false
otherwise.Copyright © 2018 Awesome controls. All rights reserved.