summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-04-25 16:02:20 +0300
committerArtur Signell <artur@vaadin.com>2015-07-13 17:19:09 +0300
commit04100c62ac45550f12f8c631fb83140a0af0a48b (patch)
tree9e873b28b0df9b57c0ff5290d9662265d927b91a /shared
parentd193814bb5dd920bc402997c41cbd34771d09b51 (diff)
downloadvaadin-framework-04100c62ac45550f12f8c631fb83140a0af0a48b.tar.gz
vaadin-framework-04100c62ac45550f12f8c631fb83140a0af0a48b.zip
Allow configuration of reconnect dialog parameters (#11733)
Change-Id: Ibf60ef8cdd21204e8ccfbb0a7d93cf88c4d8468a
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/ui/UIState.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ui/UIState.java b/shared/src/com/vaadin/shared/ui/ui/UIState.java
index 6f7a531eb6..1a2e1e4f46 100644
--- a/shared/src/com/vaadin/shared/ui/ui/UIState.java
+++ b/shared/src/com/vaadin/shared/ui/ui/UIState.java
@@ -72,6 +72,7 @@ public class UIState extends TabIndexState {
* @since 7.3
*/
public String theme;
+ public ReconnectDialogConfigurationState reconnectDialog = new ReconnectDialogConfigurationState();
{
primaryStyleName = "v-ui";
// Default is 1 for legacy reasons
@@ -123,6 +124,14 @@ public class UIState extends TabIndexState {
}
}
+ public static class ReconnectDialogConfigurationState implements
+ Serializable {
+ public String dialogText = "Server connection lost, trying to reconnect...";
+ public String dialogTextGaveUp = "Server connection lost.";
+ public int reconnectAttempts = 10000;
+ public int reconnectInterval = 5000;
+ }
+
public static class LocaleServiceState implements Serializable {
public List<LocaleData> localeData = new ArrayList<LocaleData>();
}