Browse Source

svn changeset:1121/svn branch:trunk

tags/6.7.0.beta1
Jani Laakso 17 years ago
parent
commit
85113b6bfd
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/com/itmill/toolkit/demo/ObjectPropertyDemo.java

+ 4
- 1
src/com/itmill/toolkit/demo/ObjectPropertyDemo.java View 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);

Loading…
Cancel
Save