diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-22 14:06:54 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-23 07:46:25 +0000 |
commit | f596fea90a03df5191ff65aa82cf70a879809774 (patch) | |
tree | 19b7f50b3ad209e107b02c54f7b4ba39000406f9 | |
parent | 09cb9d88956b5c892d8dba9b1a3f3dd9cdfd078a (diff) | |
download | vaadin-framework-f596fea90a03df5191ff65aa82cf70a879809774.tar.gz vaadin-framework-f596fea90a03df5191ff65aa82cf70a879809774.zip |
Renamed UI.getLoadingIndicator -> getLoadingIndicatorConfiguration (#11665)
Change-Id: If80abf821abd9c6c025e49b249339eb20d56f7ce
-rw-r--r-- | server/src/com/vaadin/ui/LoadingIndicatorConfiguration.java (renamed from server/src/com/vaadin/ui/LoadingIndicator.java) | 12 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 6 | ||||
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/UIState.java | 4 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/server/src/com/vaadin/ui/LoadingIndicator.java b/server/src/com/vaadin/ui/LoadingIndicatorConfiguration.java index 5740ee772d..ca6c158aa5 100644 --- a/server/src/com/vaadin/ui/LoadingIndicator.java +++ b/server/src/com/vaadin/ui/LoadingIndicatorConfiguration.java @@ -17,7 +17,7 @@ package com.vaadin.ui; import java.io.Serializable; -import com.vaadin.shared.ui.ui.UIState.LoadingIndicatorConfiguration; +import com.vaadin.shared.ui.ui.UIState.LoadingIndicatorConfigurationState; /** * Provides method for configuring the loading indicator. @@ -25,7 +25,7 @@ import com.vaadin.shared.ui.ui.UIState.LoadingIndicatorConfiguration; * @author Vaadin Ltd * @since 7.1 */ -public interface LoadingIndicator extends Serializable { +public interface LoadingIndicatorConfiguration extends Serializable { /** * Sets the delay before the loading indicator is shown. The default is * 300ms. @@ -81,10 +81,10 @@ public interface LoadingIndicator extends Serializable { public int getWaitStateDelay(); } -class LoadingIndicatorImpl implements LoadingIndicator { +class LoadingIndicatorConfigurationImpl implements LoadingIndicatorConfiguration { private UI ui; - public LoadingIndicatorImpl(UI ui) { + public LoadingIndicatorConfigurationImpl(UI ui) { this.ui = ui; } @@ -148,11 +148,11 @@ class LoadingIndicatorImpl implements LoadingIndicator { return getState(false).waitStateDelay; } - private LoadingIndicatorConfiguration getState() { + private LoadingIndicatorConfigurationState getState() { return ui.getState().loadingIndicatorConfiguration; } - private LoadingIndicatorConfiguration getState(boolean markAsDirty) { + private LoadingIndicatorConfigurationState getState(boolean markAsDirty) { return ui.getState(markAsDirty).loadingIndicatorConfiguration; } diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index b6574fe1b2..837d793b19 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -118,7 +118,7 @@ public abstract class UI extends AbstractSingleComponentContainer implements private Page page = new Page(this); - private LoadingIndicator loadingIndicator = new LoadingIndicatorImpl(this); + private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl(this); /** * Scroll Y position. @@ -1132,8 +1132,8 @@ public abstract class UI extends AbstractSingleComponentContainer implements * * @return The instance used for configuring the loading indicator */ - public LoadingIndicator getLoadingIndicator() { - return loadingIndicator; + public LoadingIndicatorConfiguration getLoadingIndicatorConfiguration() { + return loadingIndicatorConfiguration; } /** diff --git a/shared/src/com/vaadin/shared/ui/ui/UIState.java b/shared/src/com/vaadin/shared/ui/ui/UIState.java index 9e9f179f0b..ee3478f0a0 100644 --- a/shared/src/com/vaadin/shared/ui/ui/UIState.java +++ b/shared/src/com/vaadin/shared/ui/ui/UIState.java @@ -22,12 +22,12 @@ import com.vaadin.shared.ui.TabIndexState; public class UIState extends TabIndexState { public TooltipConfigurationState tooltipConfiguration = new TooltipConfigurationState(); - public LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfiguration(); + public LoadingIndicatorConfigurationState loadingIndicatorConfiguration = new LoadingIndicatorConfigurationState(); public int pollInterval = -1; public PushMode pushMode = PushMode.DISABLED; - public static class LoadingIndicatorConfiguration implements Serializable { + public static class LoadingIndicatorConfigurationState implements Serializable { public int initialDelay = 300; public int delayStateDelay = 1500; public int waitStateDelay = 5000; diff --git a/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java b/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java index 0f15ff2fe0..8917a1aa6d 100644 --- a/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java +++ b/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java @@ -41,7 +41,7 @@ public class LoadingIndicatorConfigurationTest extends AbstractTestUIWithLog { initialDelay.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(ValueChangeEvent event) { - getLoadingIndicator().setInitialDelay( + getLoadingIndicatorConfiguration().setInitialDelay( (Integer) initialDelay.getConvertedValue()); } }); @@ -51,7 +51,7 @@ public class LoadingIndicatorConfigurationTest extends AbstractTestUIWithLog { .addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(ValueChangeEvent event) { - getLoadingIndicator().setDelayStateDelay( + getLoadingIndicatorConfiguration().setDelayStateDelay( (Integer) delayStateDelay.getConvertedValue()); } }); @@ -61,7 +61,7 @@ public class LoadingIndicatorConfigurationTest extends AbstractTestUIWithLog { .addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(ValueChangeEvent event) { - getLoadingIndicator().setWaitStateDelay( + getLoadingIndicatorConfiguration().setWaitStateDelay( (Integer) waitStateDelay.getConvertedValue()); } }); |