diff options
author | Artur Signell <artur@vaadin.com> | 2013-06-13 16:10:03 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-06-13 16:19:08 +0000 |
commit | 59103a959544016728f2967a3ce79a06f9bff7fa (patch) | |
tree | 1b428cae4d93168816c30a2a304d9ead60dcdb9e /client | |
parent | a08974321a2a98a3031f3211f33e22f0b89f95a3 (diff) | |
download | vaadin-framework-59103a959544016728f2967a3ce79a06f9bff7fa.tar.gz vaadin-framework-59103a959544016728f2967a3ce79a06f9bff7fa.zip |
Always notify parent of enable state changes (#12062)
Change-Id: I30ee9a968050301d79c5073a62d85390652f76a9
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/AbstractComponentConnector.java | 21 |
1 files changed, 11 insertions, 10 deletions
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() { |