< prev index next >
functional/ControlsTests/src/javafx/scene/control/test/utils/ptables/StringPropertyValueSetter.java
Print this page
*** 25,35 ****
package javafx.scene.control.test.utils.ptables;
import javafx.beans.property.Property;
import javafx.scene.Node;
import javafx.scene.control.TextField;
- import javafx.scene.control.TextFieldBuilder;
import static javafx.scene.control.test.utils.ptables.StaticLogger.*;
/**
* @author Alexander Kirov
*
--- 25,34 ----
*** 37,47 ****
*/
public class StringPropertyValueSetter extends AbstractPropertyValueSetter<String> {
public StringPropertyValueSetter(Property listeningProperty, BindingType btype, Object testedControl, String initialString) {
try {
! final TextField tf = TextFieldBuilder.create().text(initialString).id(createId(listeningProperty, btype)).build();
this.leadingControl = tf;
this.leadingProperty = (Property) tf.textProperty();
this.listeningProperty = listeningProperty;
tf.setId(createId(listeningProperty, btype));
--- 36,47 ----
*/
public class StringPropertyValueSetter extends AbstractPropertyValueSetter<String> {
public StringPropertyValueSetter(Property listeningProperty, BindingType btype, Object testedControl, String initialString) {
try {
! final TextField tf = new TextField(initialString);
! tf.setId(createId(listeningProperty, btype));
this.leadingControl = tf;
this.leadingProperty = (Property) tf.textProperty();
this.listeningProperty = listeningProperty;
tf.setId(createId(listeningProperty, btype));
< prev index next >