diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-24 14:44:19 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-24 14:44:19 +0300 |
commit | cc3013a1e6e94872fb6ec07e756201495ec03ab6 (patch) | |
tree | 081b8824f5a321a2a471f6696866d0ac3ce7a99b /server | |
parent | b7db84e161ab4098750a3cf85e6c481af5df185a (diff) | |
download | vaadin-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.java | 10 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/Component.java | 13 |
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 |