From: Henri Sara Date: Mon, 20 Feb 2012 13:38:25 +0000 (+0200) Subject: Comment out shared state attributes that are not used yet. X-Git-Tag: 7.0.0.alpha2~440^2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e87a17b003cba3bd8cb11e60f1d2f57e1a653654;p=vaadin-framework.git Comment out shared state attributes that are not used yet. --- diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java index 122a6bd470..5b877825c6 100644 --- a/src/com/vaadin/ui/AbstractComponent.java +++ b/src/com/vaadin/ui/AbstractComponent.java @@ -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);