Package 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.Labellabel-
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 Instance Methods Concrete Methods Modifier and Type Method Description voidpreload(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.voidsetPopupPosition(int left, int top)voidsetReconnecting(boolean reconnecting)Sets the reconnecting state, which is true if we are trying to re-establish a connection with the server.voidsetText(String text)Sets the main text shown in the dialog.voidshow(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:ReconnectDialogSets the main text shown in the dialog.- Specified by:
setTextin interfaceReconnectDialog- Parameters:
text- the text to show
-
setReconnecting
public void setReconnecting(boolean reconnecting)
Description copied from interface:ReconnectDialogSets the reconnecting state, which is true if we are trying to re-establish a connection with the server.- Specified by:
setReconnectingin 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:ReconnectDialogShows the dialog to the user.- Specified by:
showin interfaceReconnectDialog- Parameters:
connection- the application connection this is related to
-
setPopupPosition
public void setPopupPosition(int left, int top)- Overrides:
setPopupPositionin classOverlay
-
preload
public void preload(ApplicationConnection connection)
Description copied from interface:ReconnectDialogCalled 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:
preloadin interfaceReconnectDialog
-
-