|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReconnectDialogConfiguration
Provides method for configuring the reconnect dialog.
Method Summary | |
---|---|
int |
getDialogGracePeriod()
Gets the timeout (in milliseconds) between noticing a loss of connection and showing the dialog. |
java.lang.String |
getDialogText()
Gets the text to show in the reconnect dialog when trying to re-establish the server connection |
java.lang.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(java.lang.String dialogText)
Sets the text to show in the reconnect dialog when trying to re-establish the server connection |
void |
setDialogTextGaveUp(java.lang.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 |
Method Detail |
---|
java.lang.String getDialogText()
void setDialogText(java.lang.String dialogText)
dialogText
- the text to show in the reconnect dialogjava.lang.String getDialogTextGaveUp()
getReconnectAttempts()
reached)
void setDialogTextGaveUp(java.lang.String dialogTextGaveUp)
getReconnectAttempts()
reached)
dialogText
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |