diff options
author | John Ahlroos <john@vaadin.com> | 2012-08-31 16:13:40 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-08-31 16:13:40 +0300 |
commit | 5abe444f28b89cc6c06cc178912a8fa3e03107c9 (patch) | |
tree | 15c67af25779901648e8440302dd75b1f76a2ebd /server/src/com/vaadin/ui/AbstractComponent.java | |
parent | 4e7104a68bafa96455518f006ad1ee310e185cd8 (diff) | |
download | vaadin-framework-5abe444f28b89cc6c06cc178912a8fa3e03107c9.tar.gz vaadin-framework-5abe444f28b89cc6c06cc178912a8fa3e03107c9.zip |
Add helper methods for checking state
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractComponent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java index e367d39b07..97883b780f 100644 --- a/server/src/com/vaadin/ui/AbstractComponent.java +++ b/server/src/com/vaadin/ui/AbstractComponent.java @@ -155,7 +155,7 @@ public abstract class AbstractComponent extends AbstractClientConnector @Override public String getStyleName() { String s = ""; - if (getState().styles != null) { + if (ComponentStateUtil.hasStyles(getState())) { for (final Iterator<String> it = getState().styles.iterator(); it .hasNext();) { s += it.next(); @@ -214,7 +214,7 @@ public abstract class AbstractComponent extends AbstractClientConnector @Override public void removeStyleName(String style) { - if (getState().styles != null) { + if (ComponentStateUtil.hasStyles(getState())) { String[] styleParts = style.split(" +"); for (String part : styleParts) { if (part.length() > 0) { |