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);
textField.discard();
printValues();
}
-
+
private void printValues() {
System.out.println("textField.getValue()=" + textField.getValue());
System.out.println("floatValue=" + floatValue);