summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-05-28 19:52:21 +0300
committerVaadin Code Review <review@vaadin.com>2013-05-29 13:42:04 +0000
commita5b8209d928815aab9eee2151bdd00686a2b0ff7 (patch)
tree8a0cd2d8bbe50dbdeb156b64af0c3883df5622a7 /shared
parent91182e237f2f4f8784582887970c32b5be3ad7c5 (diff)
downloadvaadin-framework-a5b8209d928815aab9eee2151bdd00686a2b0ff7.tar.gz
vaadin-framework-a5b8209d928815aab9eee2151bdd00686a2b0ff7.zip
Add primary style name support for ProgressBar/Indicator (#9913)
Change-Id: I3d773640d2f1c8cd1b71c673685afd7059811d16
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java4
-rw-r--r--shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java6
2 files changed, 10 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java
index fef1030c63..1cc8d7d9ae 100644
--- a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java
+++ b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressBarState.java
@@ -26,7 +26,11 @@ import com.vaadin.shared.communication.SharedState;
* @author Vaadin Ltd
*/
public class ProgressBarState extends AbstractFieldState {
+ public static final String PRIMARY_STYLE_NAME = "v-progressbar";
+ {
+ primaryStyleName = PRIMARY_STYLE_NAME;
+ }
public boolean indeterminate = false;
public Float state = 0.0f;
diff --git a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java
index f555476be8..2ca7627f4f 100644
--- a/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java
+++ b/shared/src/com/vaadin/shared/ui/progressindicator/ProgressIndicatorState.java
@@ -17,5 +17,11 @@ package com.vaadin.shared.ui.progressindicator;
@Deprecated
public class ProgressIndicatorState extends ProgressBarState {
+ public static final String PRIMARY_STYLE_NAME = "v-progressindicator";
+
+ {
+ primaryStyleName = PRIMARY_STYLE_NAME;
+ }
+
public int pollingInterval = 1000;
}