this.formatProvider = formatProvider;
}
public DisposableNode createNode(final PropertyElementController<T> controller) {
final TextField textBox = new TextField();
final ChangeListener textBoxListener = createTextBoxListener(controller, textBox);
textBox.textProperty().addListener(textBoxListener);
if (controller.getValue() != null) {
textBox.textProperty().setValue(formatProvider.getFormat(controller.getElement()).format(controller.getValue()));
}
final ChangeListener controllerListener = createControllerListener(textBox, controller);
controller.addListener(controllerListener);
// TODO Try/Catch will be removed once 2.0.2 is released (http://javafx-jira.kenai.com/browse/RT-17280)
try {
textBox.promptTextProperty().bind(controller.getPromptText());