Explorar el Código

svn changeset:1121/svn branch:trunk

tags/6.7.0.beta1
Jani Laakso hace 17 años
padre
commit
85113b6bfd
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      src/com/itmill/toolkit/demo/ObjectPropertyDemo.java

+ 4
- 1
src/com/itmill/toolkit/demo/ObjectPropertyDemo.java Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar