aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-09-23 09:21:55 +0000
committerMarc Englund <marc.englund@itmill.com>2008-09-23 09:21:55 +0000
commit2ac0cafb3441d505c868e7d5b187f46e05431d4f (patch)
tree308197257761d75246ef6a52066e1b4cbca51bc4
parentb3c182025a3c154e22c3acab0fdae7e801903529 (diff)
downloadvaadin-framework-2ac0cafb3441d505c868e7d5b187f46e05431d4f.tar.gz
vaadin-framework-2ac0cafb3441d505c868e7d5b187f46e05431d4f.zip
Added requestRepaint() to two setters. Fixes #2105
svn changeset:5484/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/ui/AbstractSelect.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/ui/AbstractSelect.java b/src/com/itmill/toolkit/ui/AbstractSelect.java
index 68460748dd..bad8f863da 100644
--- a/src/com/itmill/toolkit/ui/AbstractSelect.java
+++ b/src/com/itmill/toolkit/ui/AbstractSelect.java
@@ -1243,10 +1243,10 @@ public abstract class AbstractSelect extends AbstractField implements
if ((propertyId != null)
&& Resource.class.isAssignableFrom(getType(propertyId))) {
itemIconPropertyId = propertyId;
- requestRepaint();
} else {
itemIconPropertyId = null;
}
+ requestRepaint();
}
/**
@@ -1500,7 +1500,10 @@ public abstract class AbstractSelect extends AbstractField implements
* @see #isNullSelectionAllowed()
*/
public void setNullSelectionAllowed(boolean nullSelectionAllowed) {
- this.nullSelectionAllowed = nullSelectionAllowed;
+ if (nullSelectionAllowed != this.nullSelectionAllowed) {
+ this.nullSelectionAllowed = nullSelectionAllowed;
+ requestRepaint();
+ }
}
/**