Examples of textProperty()


Examples of javafx.scene.control.TextField.textProperty()

                  || (text.matches(restictTo) && (getText() == null || getText()
                      .length() < maxChars));
            }
          };
      // POJO binding magic...
      personPA.bindBidirectional(path, tf.textProperty());
      ctrl = tf;
    }
    box.getChildren()
        .addAll(new Label(
            path
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

            public void handle(MouseEvent event) {
                rightButtonReleased();
            }
        });

        textField.textProperty().addListener(new ChangeListener<String>() {
            @Override
            public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                textChanged();
            }
        });
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

    });
    copyCellMenuItem.setOnAction(copyCell.getOnAction());
    pane.getChildren().add(copyCell);
    pane.getChildren().add(new Label("Search"));
    final TextField textField = new TextField();
    textField.textProperty().addListener(new ChangeListener<String>() {
      @Override
      public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
        if (newValue!=null && newValue.length()>1){
          searchInTable(tableView, newValue,regExp.isSelected());
        }
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

  @Override
  public HBox createContent() {
    HBox hbox = new HBox(3);
    final TextField textfield = new TextField();
    textfield.setPromptText(dateFormatText);
    textfield.textProperty().addListener(new ChangeListener<String>() {
      @Override
      public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
        boolean parsed=true;
        Date date=null;
        if (newValue!=null && !newValue.isEmpty()) {
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

  }
 
  private void createMaxCount(HBox parent,MaxCountFilterModel maxCountFilterModel){
    TextField maxCount = new NumberOnlyTextField();
    maxCount.setPrefWidth(100);
    Bindings.bindBidirectional(maxCount.textProperty(), maxCountFilterModel.maxCount, new IntegerStringConverter());
    parent.getChildren().add(new Label("limit"));
    parent.getChildren().add(maxCount);
  }
 
  private void createFromToUI(HBox parent,FromToFilterModel fromToFilterModel){
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

    HBox hbox = new HBox(3);
    hbox.setAlignment(Pos.CENTER_LEFT);
    hbox.getChildren().add(new Label("Refresh Interval"));
    TextField interval = new NumberOnlyTextField();
    interval.setPrefWidth(100);
    interval.textProperty().bindBidirectional(refreshRateInMs);
    hbox.getChildren().add(interval);
    hbox.getChildren().add(new Label("ms"));
    customMenuItem.setContent(hbox);
    buttonsPane.getChildren().add(settings);
   
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

                userInputResponse = new SimpleObjectProperty<T>();
                if (inputChoices == null || inputChoices.isEmpty()) {
                    // no input constraints, so use a TextField
                    final TextField textField = new TextField();
                    textField.setPrefWidth(66);
                    userInputResponse.bind((ObservableValue<T>) textField.textProperty());
                    textField.setOnAction(new EventHandler<ActionEvent>() {
                        @Override public void handle(ActionEvent t) {
                          userResponse = DialogResponse.OK;
                            hide();
                        }
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

    }

    public DisposableNode createNode(final PropertyElementController<T> controller) {
        final TextField textBox = new TextField();
        final InvalidationListener 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);
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

    public DisposableNode createNode(final PropertyElementController<T> controller) {
        final TextField textBox = new TextField();
        final InvalidationListener 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);
        textBox.promptTextProperty().bind(controller.getPromptText());
View Full Code Here

Examples of javafx.scene.control.TextField.textProperty()

        textBox.promptTextProperty().bind(controller.getPromptText());

        return new DisposableNodeWrapper(textBox, new Callback<Node, Void>() {
            public Void call(Node node) {
                controller.removeListener(controllerListener);
                textBox.textProperty().removeListener(textBoxListener);
                return null;
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.