From 59103a959544016728f2967a3ce79a06f9bff7fa Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 13 Jun 2013 16:10:03 +0300 Subject: Always notify parent of enable state changes (#12062) Change-Id: I30ee9a968050301d79c5073a62d85390652f76a9 --- .../client/ui/AbstractComponentConnector.java | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'client') diff --git a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java index ebc80c4728..d384549ee3 100644 --- a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java +++ b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java @@ -185,19 +185,20 @@ public abstract class AbstractComponentConnector extends AbstractConnector if (getWidget() instanceof HasEnabled) { // set widget specific enabled state ((HasEnabled) getWidget()).setEnabled(widgetEnabled); + } - // make sure the caption has or has not v-disabled style - if (delegateCaptionHandling()) { - ServerConnector parent = getParent(); - if (parent instanceof HasComponentsConnector) { - ((HasComponentsConnector) parent).updateCaption(this); - } else if (parent == null && !(this instanceof UIConnector)) { - VConsole.error("Parent of connector " - + Util.getConnectorString(this) - + " is null. This is typically an indication of a broken component hierarchy"); - } + // make sure the caption has or has not v-disabled style + if (delegateCaptionHandling()) { + ServerConnector parent = getParent(); + if (parent instanceof HasComponentsConnector) { + ((HasComponentsConnector) parent).updateCaption(this); + } else if (parent == null && !(this instanceof UIConnector)) { + VConsole.error("Parent of connector " + + Util.getConnectorString(this) + + " is null. This is typically an indication of a broken component hierarchy"); } } + } protected void updateComponentSize() { -- cgit v1.2.3