From 91182e237f2f4f8784582887970c32b5be3ad7c5 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Tue, 28 May 2013 11:01:31 +0300 Subject: Extract ProgressBar and deprecate ProgressIndicator (#11925) Change-Id: Id9eaee65762b0dadd59f3e730d3ff11712ab87fe --- .../ui/progressindicator/ProgressBarState.java | 33 ++++++++++++++++++++++ .../progressindicator/ProgressIndicatorState.java | 7 ++--- 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java (limited to 'shared/src') diff --git a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java new file mode 100644 index 0000000000..fef1030c63 --- /dev/null +++ b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java @@ -0,0 +1,33 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.vaadin.shared.ui.progressindicator; + +import com.vaadin.shared.AbstractFieldState; +import com.vaadin.shared.communication.SharedState; + +/** + * {@link SharedState} for {@link com.vaadin.ui.ProgressBar} + * + * @since 7.1 + * @author Vaadin Ltd + */ +public class ProgressBarState extends AbstractFieldState { + + public boolean indeterminate = false; + public Float state = 0.0f; + +} \ No newline at end of file diff --git a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java index 4126b994d8..f555476be8 100644 --- a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java +++ b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java @@ -15,10 +15,7 @@ */ package com.vaadin.shared.ui.progressindicator; -import com.vaadin.shared.AbstractFieldState; - -public class ProgressIndicatorState extends AbstractFieldState { - public boolean indeterminate = false; +@Deprecated +public class ProgressIndicatorState extends ProgressBarState { public int pollingInterval = 1000; - public Float state = 0.0f; } -- cgit v1.2.3