com.vaadin.client.communication.
Class DefaultReconnectDialog
- 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.client.widgets.Overlay
-
- com.vaadin.client.ui.VOverlay
-
- com.vaadin.client.communication.DefaultReconnectDialog
-
All Implemented Interfaces:
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.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
,ReconnectDialog
,Iterable<com.google.gwt.user.client.ui.Widget>
public class DefaultReconnectDialog extends VOverlay implements ReconnectDialog
The default implementation of the reconnect dialog.
Since:
7.6
Author:
Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.client.widgets.Overlay
Overlay.PositionAndSize, Overlay.ResizeAnimation
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Field Summary
Fields Modifier and Type Field Description com.google.gwt.user.client.ui.Label
label
-
Fields inherited from class com.vaadin.client.widgets.Overlay
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current, Z_INDEX
-
-
Constructor Summary
Constructors Constructor Description DefaultReconnectDialog()
-
Method Summary
All Methods Modifier and Type Method Description void
preload(ApplicationConnection connection)
Called once after initialization to allow the reconnect dialog to preload required resources, which might not be available when the server connection is gone.
void
setPopupPosition(int left, int top)
void
setReconnecting(boolean reconnecting)
Sets the reconnecting state, which is true if we are trying to re-establish a connection with the server.
void
setText(String text)
Sets the main text shown in the dialog.
void
show(ApplicationConnection connection)
Shows the dialog to the user.
-
Methods inherited from class com.vaadin.client.ui.VOverlay
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabel
-
Methods inherited from class com.vaadin.client.widgets.Overlay
center, getOwner, hide, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setVisible, setWidth, setZIndex, show, updateShadowSizeAndPosition
-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, 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, clear, 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, onBrowserEvent, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.vaadin.client.communication.ReconnectDialog
hide, isModal, isVisible, setModal
-
-
-
-
Method Detail
-
setText
public void setText(String text)
Description copied from interface:
ReconnectDialog
Sets the main text shown in the dialog.
Specified by:
setText
in interfaceReconnectDialog
Parameters:
text
- the text to show
-
setReconnecting
public void setReconnecting(boolean reconnecting)
Description copied from interface:
ReconnectDialog
Sets the reconnecting state, which is true if we are trying to re-establish a connection with the server.
Specified by:
setReconnecting
in interfaceReconnectDialog
Parameters:
reconnecting
- true if we are trying to re-establish the server connection, false if we have given up
-
show
public void show(ApplicationConnection connection)
Description copied from interface:
ReconnectDialog
Shows the dialog to the user.
Specified by:
show
in interfaceReconnectDialog
Parameters:
connection
- the application connection this is related to
-
setPopupPosition
public void setPopupPosition(int left, int top)
Overrides:
setPopupPosition
in classOverlay
-
preload
public void preload(ApplicationConnection connection)
Description copied from interface:
ReconnectDialog
Called once after initialization to allow the reconnect dialog to preload required resources, which might not be available when the server connection is gone.
Specified by:
preload
in interfaceReconnectDialog
-
-