Package com.vaadin.client
Class ConnectionIndicator
java.lang.Object
com.vaadin.client.ConnectionIndicator
GWT interface to ConnectionIndicator.ts
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringApplication is connected to server: last transaction over the wire (XHR / heartbeat / endpoint call) was successful.static final StringApplication has been permanently disconnected due to browser receiving the 'offline' event, or the server not being reached after a number of reconnect attempts.static final StringApplication is connected and Flow is loading application state from the server, or Fusion is waiting for an endpoint call to return.static final StringApplication has been temporarily disconnected from the server because the last transaction over the wire (XHR / heartbeat / endpoint call) resulted in a network error, or the browser has received the 'online' event and needs to verify reconnection with the server. -
Method Summary
-
Field Details
-
CONNECTED
Application is connected to server: last transaction over the wire (XHR / heartbeat / endpoint call) was successful.- See Also:
-
LOADING
Application is connected and Flow is loading application state from the server, or Fusion is waiting for an endpoint call to return.- See Also:
-
RECONNECTING
Application has been temporarily disconnected from the server because the last transaction over the wire (XHR / heartbeat / endpoint call) resulted in a network error, or the browser has received the 'online' event and needs to verify reconnection with the server. Flow is attempting to reconnect a configurable number of times before giving up.- See Also:
-
CONNECTION_LOST
Application has been permanently disconnected due to browser receiving the 'offline' event, or the server not being reached after a number of reconnect attempts.- See Also:
-
-
Method Details
-
setState
Set the connection state to be displayed by the loading indicator.- Parameters:
state- the connection state
-
getState
Get the connection state.- Returns:
- the connection state
-
setProperty
Set a property of the connection indicator component.- Parameters:
property- the property to setvalue- the value to set
-