diff options
author | Artur Signell <artur.signell@itmill.com> | 2012-09-19 13:45:09 +0000 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-28 21:51:06 +0300 |
commit | 79a6f890e794df686fc28d2dea831515b23953d8 (patch) | |
tree | 3227a71359d520764edeb55f3ca7c9c4b4107cd8 /server/src/com/vaadin | |
parent | ca59c93fb4dbc112e5deb5f5a4b10c0c730a4be4 (diff) | |
download | vaadin-framework-79a6f890e794df686fc28d2dea831515b23953d8.tar.gz vaadin-framework-79a6f890e794df686fc28d2dea831515b23953d8.zip |
Merged AbstractSelect now listens to changes in icon property (#9663)
svn changeset:24490/svn branch:6.8
Change-Id: Id5fdf46295fba758fc4be7d1b3b47e29651e0535
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractSelect.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractSelect.java b/server/src/com/vaadin/ui/AbstractSelect.java index 45df42a9be..78fab068dd 100644 --- a/server/src/com/vaadin/ui/AbstractSelect.java +++ b/server/src/com/vaadin/ui/AbstractSelect.java @@ -1858,6 +1858,15 @@ public abstract class AbstractSelect extends AbstractField<Object> implements break; } + if (getItemIconPropertyId() != null) { + final Property p = getContainerProperty(itemId, + getItemIconPropertyId()); + if (p != null && p instanceof Property.ValueChangeNotifier) { + ((Property.ValueChangeNotifier) p) + .addListener(getCaptionChangeListener()); + captionChangeNotifiers.add(p); + } + } } public void clear() { |