public interface ReconnectDialogConfiguration extends Serializable
Modifier and Type | Method and Description |
---|---|
int |
getDialogGracePeriod()
Gets the timeout (in milliseconds) between noticing a loss of connection
and showing the dialog.
|
String |
getDialogText()
Gets the text to show in the reconnect dialog when trying to re-establish
the server connection
|
String |
getDialogTextGaveUp()
Gets the text to show in the reconnect dialog after giving up trying to
reconnect (
getReconnectAttempts() reached) |
int |
getReconnectAttempts()
Gets the number of times to try to reconnect to the server before giving
up
|
int |
getReconnectInterval()
Gets the interval (in milliseconds) between reconnect attempts
|
boolean |
isDialogModal()
Checks the modality of the dialog.
|
void |
setDialogGracePeriod(int dialogGracePeriod)
Sets the timeout (in milliseconds) between noticing a loss of connection
and showing the dialog.
|
void |
setDialogModal(boolean dialogModal)
Sets the modality of the dialog.
|
void |
setDialogText(String dialogText)
Sets the text to show in the reconnect dialog when trying to re-establish
the server connection
|
void |
setDialogTextGaveUp(String dialogTextGaveUp)
Sets the text to show in the reconnect dialog after giving up trying to
reconnect (
getReconnectAttempts() reached) |
void |
setReconnectAttempts(int reconnectAttempts)
Sets the number of times to try to reconnect to the server before giving
up
|
void |
setReconnectInterval(int reconnectInterval)
Sets the interval (in milliseconds) between reconnect attempts
|
String getDialogText()
void setDialogText(String dialogText)
dialogText
- the text to show in the reconnect dialogString getDialogTextGaveUp()
getReconnectAttempts()
reached)void setDialogTextGaveUp(String dialogTextGaveUp)
getReconnectAttempts()
reached)dialogTextGaveUp
- the text to show in the reconnect dialog after giving upint getReconnectAttempts()
void setReconnectAttempts(int reconnectAttempts)
reconnectAttempts
- the number of times to try to reconnectint getReconnectInterval()
void setReconnectInterval(int reconnectInterval)
reconnectInterval
- the interval (in ms) between reconnect attemptsint getDialogGracePeriod()
void setDialogGracePeriod(int dialogGracePeriod)
dialogGracePeriod
- the time to wait before showing a dialogvoid setDialogModal(boolean dialogModal)
If the dialog is set to modal, it will prevent the usage of the application while the dialog is being shown. If not modal, the user can continue to use the application as normally and all server events will be queued until connection has been re-established.
dialogModal
- true to make the dialog modal, false otherwiseboolean isDialogModal()
setDialogModal(boolean)
Copyright © 2017 Vaadin Ltd. All rights reserved.