]> source.dussan.org Git - vaadin-framework.git/commitdiff
Comment out shared state attributes that are not used yet.
authorHenri Sara <hesara@vaadin.com>
Mon, 20 Feb 2012 13:38:25 +0000 (15:38 +0200)
committerHenri Sara <hesara@vaadin.com>
Mon, 20 Feb 2012 13:38:25 +0000 (15:38 +0200)
src/com/vaadin/ui/AbstractComponent.java

index 122a6bd4707508676bba87aa14d9ee13fb95b1d8..5b877825c64ae8d6894e9a7de06a7d9b99935c53 100644 (file)
@@ -895,27 +895,27 @@ public abstract class AbstractComponent implements Component, MethodEventSource
 
         // TODO use the rest on the client side
 
-        if (styles != null && styles.size() > 0) {
-            state.put(ComponentState.STATE_STYLE, getStyle());
-        }
-        if (isReadOnly()) {
-            state.put(ComponentState.STATE_READONLY, true);
-        }
-
-        if (isImmediate()) {
-            state.put(ComponentState.STATE_IMMEDIATE, true);
-        }
-        if (!isEnabled()) {
-            state.put(ComponentState.STATE_DISABLED, true);
-        }
-        if (getCaption() != null) {
-            state.put(ComponentState.STATE_CAPTION, getCaption());
-        }
-        // TODO add icon (Resource)
-
-        if (getDescription() != null && getDescription().length() > 0) {
-            state.put(ComponentState.STATE_DESCRIPTION, getDescription());
-        }
+        // if (styles != null && styles.size() > 0) {
+        // state.put(ComponentState.STATE_STYLE, getStyle());
+        // }
+        // if (isReadOnly()) {
+        // state.put(ComponentState.STATE_READONLY, true);
+        // }
+        //
+        // if (isImmediate()) {
+        // state.put(ComponentState.STATE_IMMEDIATE, true);
+        // }
+        // if (!isEnabled()) {
+        // state.put(ComponentState.STATE_DISABLED, true);
+        // }
+        // if (getCaption() != null) {
+        // state.put(ComponentState.STATE_CAPTION, getCaption());
+        // }
+        // // TODO add icon (Resource)
+        //
+        // if (getDescription() != null && getDescription().length() > 0) {
+        // state.put(ComponentState.STATE_DESCRIPTION, getDescription());
+        // }
 
         sharedState.setState(state);