com.vaadin.client.communication.

Class 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.google.gwt.user.client.ui.PopupPanel

        com.google.gwt.user.client.ui.PopupPanel.AnimationType, 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
    • 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.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 interface com.google.gwt.event.shared.HasHandlers

        fireEvent
    • Field Detail

      • label

        public com.google.gwt.user.client.ui.Label label
    • Constructor Detail

      • DefaultReconnectDialog

        public DefaultReconnectDialog()
    • 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 interface ReconnectDialog

        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 interface ReconnectDialog

        Parameters:

        reconnecting - true if we are trying to re-establish the server connection, false if we have given up

      • setPopupPosition

        public void setPopupPosition​(int left,
                                     int top)

        Overrides:

        setPopupPosition in class Overlay

      • 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 interface ReconnectDialog