summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/ComponentStateUtil.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java b/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java
index 556c46518f..dd2611f04b 100644
--- a/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java
+++ b/shared/src/com/vaadin/shared/ui/ComponentStateUtil.java
@@ -18,6 +18,14 @@ public final class ComponentStateUtil {
return state.height == null || "".equals(state.height);
}
+ public static final boolean hasDescription(ComponentState state) {
+ return state.description != null && !"".equals(state.description);
+ }
+
+ public static final boolean hasStyles(ComponentState state) {
+ return state.styles != null && !state.styles.isEmpty();
+ }
+
/**
* Removes an event listener id.
*