summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-24 14:44:19 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-24 14:44:19 +0300
commitcc3013a1e6e94872fb6ec07e756201495ec03ab6 (patch)
tree081b8824f5a321a2a471f6696866d0ac3ce7a99b /server
parentb7db84e161ab4098750a3cf85e6c481af5df185a (diff)
downloadvaadin-framework-cc3013a1e6e94872fb6ec07e756201495ec03ab6.tar.gz
vaadin-framework-cc3013a1e6e94872fb6ec07e756201495ec03ab6.zip
Added primary stylename handling on server side #9724
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java10
-rw-r--r--server/src/com/vaadin/ui/Component.java13
2 files changed, 23 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index c49d6237b8..51510ce00a 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -197,6 +197,16 @@ public abstract class AbstractComponent extends AbstractClientConnector
}
@Override
+ public void setPrimaryStylename(String style) {
+ getState().primaryStyleName = style;
+ }
+
+ @Override
+ public String getPrimaryStyleName() {
+ return getState().primaryStyleName;
+ }
+
+ @Override
public void addStyleName(String style) {
if (style == null || "".equals(style)) {
return;
diff --git a/server/src/com/vaadin/ui/Component.java b/server/src/com/vaadin/ui/Component.java
index 320a9dc97c..dd7ea6278b 100644
--- a/server/src/com/vaadin/ui/Component.java
+++ b/server/src/com/vaadin/ui/Component.java
@@ -198,6 +198,19 @@ public interface Component extends ClientConnector, Sizeable, Serializable {
public void removeStyleName(String style);
/**
+ * FIXME Javadoc
+ */
+ public String getPrimaryStyleName();
+
+ /**
+ * FIXME Javadoc
+ *
+ * @param style
+ * The stylename to set
+ */
+ public void setPrimaryStylename(String style);
+
+ /**
* Tests whether the component is enabled or not. A user can not interact
* with disabled components. Disabled components are rendered in a style
* that indicates the status, usually in gray color. Children of a disabled