summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Label.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-23 11:23:10 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-23 11:23:10 +0300
commitaf8afede9f0d196a28792dea9e587a1eac829902 (patch)
treeb95ec915d266e8a95f781b27b5b204503d4eb0fd /server/src/com/vaadin/ui/Label.java
parent8606feb8596ed8f6cd3ed41160706b692f6f4679 (diff)
downloadvaadin-framework-af8afede9f0d196a28792dea9e587a1eac829902.tar.gz
vaadin-framework-af8afede9f0d196a28792dea9e587a1eac829902.zip
Handle requestRepaint automatically (#9325)
Diffstat (limited to 'server/src/com/vaadin/ui/Label.java')
-rw-r--r--server/src/com/vaadin/ui/Label.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Label.java b/server/src/com/vaadin/ui/Label.java
index d0a6059865..5055c7e573 100644
--- a/server/src/com/vaadin/ui/Label.java
+++ b/server/src/com/vaadin/ui/Label.java
@@ -190,7 +190,6 @@ public class Label extends AbstractComponent implements Property<String>,
}
if (getPropertyDataSource() == null) {
getState().text = (String) newStringValue;
- requestRepaint();
} else {
throw new IllegalStateException(
"Label is only a Property.Viewer and cannot update its data source");
@@ -294,7 +293,6 @@ public class Label extends AbstractComponent implements Property<String>,
}
getState().contentMode = contentMode;
- requestRepaint();
}
/* Value change events */
@@ -385,7 +383,6 @@ public class Label extends AbstractComponent implements Property<String>,
public void valueChange(Property.ValueChangeEvent event) {
// Update the internal value from the data source
getState().text = getValue();
- requestRepaint();
fireValueChange();
}