]> source.dussan.org Git - vaadin-framework.git/commitdiff
svn changeset:1121/svn branch:trunk
authorJani Laakso <jani.laakso@itmill.com>
Tue, 3 Apr 2007 14:58:19 +0000 (14:58 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Tue, 3 Apr 2007 14:58:19 +0000 (14:58 +0000)
src/com/itmill/toolkit/demo/ObjectPropertyDemo.java

index 4582f78175391722075de40cbf3c3059e480e68a..fc6836ab0d8ab96f0aea82083899f0de9a4941af 100644 (file)
@@ -31,6 +31,9 @@ public class ObjectPropertyDemo extends com.itmill.toolkit.Application {
                ob = new ObjectProperty(floatValue);
                textField = new TextField("Textfield that uses ObjectProperty", ob);
                ob.setReadOnly(false);
+               // needed because of bug in variable change handling?
+               // change textfield value and unfocus it to change textfields value
+               // succesfully
                textField.setImmediate(true);
                textField.setInvalidCommitted(true);
 
@@ -53,7 +56,7 @@ public class ObjectPropertyDemo extends com.itmill.toolkit.Application {
                textField.discard();
                printValues();
        }
-       
+
        private void printValues() {
                System.out.println("textField.getValue()=" + textField.getValue());
                System.out.println("floatValue=" + floatValue);