aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/AbstractField.java
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2008-05-21 12:20:56 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2008-05-21 12:20:56 +0000
commit1f9377e67e3119cb57d9349a427e987d88e392d9 (patch)
tree6ee4232c27e633d061156b7e3de7793095b061ca /src/com/itmill/toolkit/ui/AbstractField.java
parent9191d6b62d637fd1f9e92f18ec0fefe44cec3b65 (diff)
downloadvaadin-framework-1f9377e67e3119cb57d9349a427e987d88e392d9.tar.gz
vaadin-framework-1f9377e67e3119cb57d9349a427e987d88e392d9.zip
Fixes #1699 (i hope)
svn changeset:4595/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/AbstractField.java')
-rw-r--r--src/com/itmill/toolkit/ui/AbstractField.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/ui/AbstractField.java b/src/com/itmill/toolkit/ui/AbstractField.java
index fb251d70b6..c2e7cef57b 100644
--- a/src/com/itmill/toolkit/ui/AbstractField.java
+++ b/src/com/itmill/toolkit/ui/AbstractField.java
@@ -56,7 +56,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
private boolean delayedFocus;
/**
- * Value of the datafield.
+ * Value of the abstract field.
*/
private Object value;
@@ -863,9 +863,7 @@ public abstract class AbstractField extends AbstractComponent implements Field,
public void changeVariables(Object source, Map variables) {
super.changeVariables(source, variables);
- if (validators != null && !validators.isEmpty()) {
- requestRepaint();
- }
+
}
/**
@@ -938,14 +936,18 @@ public abstract class AbstractField extends AbstractComponent implements Field,
/**
* Sets the internal field value. This is purely used by AbstractField to
- * change the internal Field value. It does not trigger any events. It can
- * be overriden by the inheriting classes to update all dependent variables.
+ * change the internal Field value. It does not trigger valuechange events.
+ * It can be overriden by the inheriting classes to update all dependent
+ * variables.
*
* @param newValue
* the new value to be set.
*/
protected void setInternalValue(Object newValue) {
value = newValue;
+ if (validators != null && !validators.isEmpty()) {
+ requestRepaint();
+ }
}
/**