From ce2df6d10370c669a512e96f0693fc37cf02aca1 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 25 Mar 2013 23:37:45 +0200 Subject: Enable setting loading indicator delays from the server (#7448) * Refactored LoadingIndicator to a separate class on client side to enable customization and to remove clutter from ApplicationConnection Change-Id: I12e94294beed9c65a5710bdfe2486bc0f1b92bd9 --- shared/src/com/vaadin/shared/ui/ui/UIState.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shared') diff --git a/shared/src/com/vaadin/shared/ui/ui/UIState.java b/shared/src/com/vaadin/shared/ui/ui/UIState.java index cc6897dd0d..d5ee4c30e6 100644 --- a/shared/src/com/vaadin/shared/ui/ui/UIState.java +++ b/shared/src/com/vaadin/shared/ui/ui/UIState.java @@ -21,6 +21,13 @@ import com.vaadin.shared.ui.TabIndexState; public class UIState extends TabIndexState { public TooltipConfiguration tooltipConfiguration = new TooltipConfiguration(); + public LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfiguration(); + + public static class LoadingIndicatorConfiguration implements Serializable { + public int initialDelay = 300; + public int delayStateDelay = 1500; + public int waitStateDelay = 5000; + } public static class TooltipConfiguration implements Serializable { public int openDelay = 750; -- cgit v1.2.3