com.vaadin.client.communication
Class DefaultReconnectDialog

java.lang.Object
  extended by PopupPanel
      extended by com.vaadin.client.widgets.Overlay
          extended by com.vaadin.client.ui.VOverlay
              extended by com.vaadin.client.communication.DefaultReconnectDialog
All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<PopupPanel>, com.google.gwt.event.shared.EventHandler, ReconnectDialog

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
 
Field Summary
 Label label
           
 
Fields inherited from class com.vaadin.client.ui.VOverlay
ac, current
 
Fields inherited from class com.vaadin.client.widgets.Overlay
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, Z_INDEX
 
Constructor Summary
DefaultReconnectDialog()
           
 
Method Summary
 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(java.lang.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, setOverlayContainerLabel
 
Methods inherited from class com.vaadin.client.widgets.Overlay
center, getOwner, hide, hide, hide, isShadowEnabled, isShimElementEnabled, isSinkShadowEvents, needsShimElement, onAttach, onClose, onDetach, positionOrSizeUpdated, setHeight, setOwner, setShadowEnabled, setShadowStyle, setSinkShadowEvents, setVisible, setWidth, setZIndex, show, sinkEvents, updateShadowSizeAndPosition, useShadowDiv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.client.communication.ReconnectDialog
hide, isModal, isVisible, setModal
 
Methods inherited from interface com.google.gwt.event.logical.shared.CloseHandler
onClose
 

Field Detail

label

public Label label
Constructor Detail

DefaultReconnectDialog

public DefaultReconnectDialog()
Method Detail

setText

public void setText(java.lang.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

show

public void show(ApplicationConnection connection)
Description copied from interface: ReconnectDialog
Shows the dialog to the user

Specified by:
show in interface ReconnectDialog
Parameters:
connection - the application connection this is related to

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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.