Examples of selectedProperty()


Examples of javafx.scene.control.CheckBox.selectedProperty()

    HBox box = new HBox();
    Control ctrl;
    if (controlType == CheckBox.class) {
      CheckBox cb = new CheckBox();
      // POJO binding magic...
      personPA.bindBidirectional(path, cb.selectedProperty());
      ctrl = cb;
    } else if (controlType == ComboBox.class) {
      ComboBox<T> cb = new ComboBox<>(
          FXCollections.observableArrayList(choices));
      cb.setPromptText("Select");
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

        if (newValue!=null && newValue.length()>1){
          searchInTable(tableView, newValue,regExp.isSelected());
        }
      }
    });
    regExp.selectedProperty().addListener(new ChangeListener<Boolean>() {
      @Override
      public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
        if (newValue!=null){
          searchInTable(tableView,textField.getText(),newValue);
        }
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

        assert pane != null : "fx:id=\"pane\" was not injected: check your FXML file 'EngineLoadFilter.fxml'.";

        for (Entry<WorkflowInstanceState,SimpleBooleanProperty> entry: model.stateFilters.entrySet()){
          CheckBox checkBox  = new CheckBox();
          checkBox.setText(entry.getKey().toString());
          checkBox.selectedProperty().bindBidirectional(entry.getValue());
          pane.getChildren().add(checkBox);
        }
  }

  @Override
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

    // wholeday
    if ((abstractAppointmentPane.appointment.isWholeDay() != null && abstractAppointmentPane.appointment.isWholeDay() == true) || abstractAppointmentPane.appointment.getEndTime() != null)
    {
      final CheckBox lWholedayCheckBox = new CheckBox("Wholeday");
      lWholedayCheckBox.setId("wholeday-checkbox");
      lWholedayCheckBox.selectedProperty().set(abstractAppointmentPane.appointment.isWholeDay());
      lMenuVBox.getChildren().add(lWholedayCheckBox);
      lWholedayCheckBox.selectedProperty().addListener(new ChangeListener<Boolean>()
      {
        @Override
        public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldValue, Boolean newValue)
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

    {
      final CheckBox lWholedayCheckBox = new CheckBox("Wholeday");
      lWholedayCheckBox.setId("wholeday-checkbox");
      lWholedayCheckBox.selectedProperty().set(abstractAppointmentPane.appointment.isWholeDay());
      lMenuVBox.getChildren().add(lWholedayCheckBox);
      lWholedayCheckBox.selectedProperty().addListener(new ChangeListener<Boolean>()
      {
        @Override
        public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldValue, Boolean newValue)
        {
          abstractAppointmentPane.appointment.setWholeDay(newValue);
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

        return vBox;
    }

    private Node createCSSNode() {
        CheckBox checkBox = new CheckBox("Use css");
        checkBox.selectedProperty().addListener(new ChangeListener<Boolean>() {
            public void changed(ObservableValue<? extends Boolean> observableValue, Boolean aBoolean, Boolean aBoolean1) {
                if (aBoolean1) {
                    root.getScene().getStylesheets().add(css);
                } else {
                    root.getScene().getStylesheets().remove(css);
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

    gp.setVgap(18);
    gp.setHgap(10);
    gp.setPadding(new Insets(0, 15, 0, 15));
    final CheckBox activateCB = new CheckBox();
    activateCB.setSelected(true);
    active.bind(activateCB.selectedProperty());

    final Slider rSlider = new Slider(50, 150, 86);
    rSlider.disableProperty().bind(activateCB.selectedProperty().not());
    radius.bind(rSlider.valueProperty());
    Label rL = new Label();
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

    final CheckBox activateCB = new CheckBox();
    activateCB.setSelected(true);
    active.bind(activateCB.selectedProperty());

    final Slider rSlider = new Slider(50, 150, 86);
    rSlider.disableProperty().bind(activateCB.selectedProperty().not());
    radius.bind(rSlider.valueProperty());
    Label rL = new Label();
    rL.textProperty().bind(new StringBinding() {
      {
        bind(rSlider.valueProperty());
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

        return df.format(rSlider.getValue()) + "px";
      }
    });

    final Slider fmSlider = new Slider(3, 10, 5.5);
    fmSlider.disableProperty().bind(activateCB.selectedProperty().not());
    frameWidth.bind(fmSlider.valueProperty());
    Label fmL = new Label();
    fmL.textProperty().bind(new StringBinding() {
      {
        bind(fmSlider.valueProperty());
View Full Code Here

Examples of javafx.scene.control.CheckBox.selectedProperty()

        return df.format(fmSlider.getValue()) + "px";
      }
    });

    final Slider sfSlider = new Slider(1, 8, 3);
    sfSlider.disableProperty().bind(activateCB.selectedProperty().not());
    scaleFactor.bind(sfSlider.valueProperty());
    Label sfL = new Label();
    sfL.textProperty().bind(new StringBinding() {
      {
        bind(sfSlider.valueProperty());
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.