Examples of valueProperty()


Examples of com.fxexperience.javafx.scene.control.IntegerField.valueProperty()

        Slider brightnessSlider = SliderBuilder.create().min(0).max(100).id("BrightnessSlider").build();
        brightnessSlider.valueProperty().bindBidirectional(bright);
        GridPane.setConstraints(brightnessSlider, 1, 0);
       
        IntegerField brightnessField = new IntegerField();
        brightnessField.valueProperty().bindBidirectional(bright);
        brightnessField.setPrefColumnCount(7);
        GridPane.setConstraints(brightnessField, 2, 0);
       
        Label saturationLabel = new Label("Saturation:");
        saturationLabel.setMinWidth(Control.USE_PREF_SIZE);
View Full Code Here

Examples of com.fxexperience.javafx.scene.control.IntegerField.valueProperty()

                return "picker-color: hsb("+hue.get()+",100%,100%);";
            }
        });
       
        IntegerField saturationField = new IntegerField();
        saturationField.valueProperty().bindBidirectional(sat);
        saturationField.setPrefColumnCount(7);
        GridPane.setConstraints(saturationField, 2, 1);
       
        Label webLabel = new Label("Web:");
        webLabel.setMinWidth(Control.USE_PREF_SIZE);
View Full Code Here

Examples of com.fxexperience.javafx.scene.control.IntegerField.valueProperty()

        field.setMaxWidth(field.USE_PREF_SIZE);
        field.setPrefColumnCount(3);
        parent.getChildren().add(field);
        GridPane.setColumnIndex(field, GridPane.getColumnIndex(slider)+1);
        GridPane.setRowIndex(field, GridPane.getRowIndex(slider));
        field.valueProperty().bindBidirectional(slider.valueProperty());
    }
   
    private void updateCss() {
        css = createCSS(false);
        contentPanel.getStylesheets().setAll("internal:stylesheet.css");
View Full Code Here

Examples of com.fxexperience.javafx.scene.control.WebColorField.valueProperty()

        Label webLabel = new Label("Web:");
        webLabel.setMinWidth(Control.USE_PREF_SIZE);
        GridPane.setConstraints(webLabel, 0, 2);
       
        WebColorField webField = new WebColorField();
        webField.valueProperty().bindBidirectional(color);
        GridPane.setConstraints(webField, 1, 2, 2, 1);
       
        GridPane controls = new GridPane();
        controls.setVgap(5);
        controls.setHgap(5);
View Full Code Here

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

      cb.setPromptText("Select");
      cb.setPrefWidth(100d);
      // POJO binding magic (due to erasure of T in
      // ObjectProperty<T> of cb.valueProperty() we need
      // to also pass in the choice class)
      personPA.bindBidirectional(path, cb.valueProperty(),
          (Class<T>) choices[0].getClass());
      ctrl = cb;
    } else if (controlType == ListView.class) {
      ListView<T> lv = new ListView<>(
          FXCollections.observableArrayList(choices));
View Full Code Here

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

      cb.setPromptText("Select");
      cb.setPrefWidth(100d);
      // POJO binding magic (due to erasure of T in
      // ObjectProperty<T> of cb.valueProperty() we need
      // to also pass in the choice class)
      personPA.bindBidirectional(path, cb.valueProperty(),
          (Class<T>) choices[0].getClass());
      ctrl = cb;
    } else if (controlType == ListView.class) {
      ListView<T> lv = new ListView<>(
          FXCollections.observableArrayList(choices));
View Full Code Here

Examples of javafx.scene.control.ColorPicker.valueProperty()

        familyCombo.getSelectionModel().select("Serif");
        ColorPicker textColorPicker = new ColorPicker(Color.BLACK);

        sizeCombo.setOnAction(evt -> updateFontSize(sizeCombo.getValue()));
        familyCombo.setOnAction(evt -> updateFontFamily(familyCombo.getValue()));
        textColorPicker.valueProperty().addListener((o, old, color) -> updateTextColor(color));

        undoBtn.disableProperty().bind(Bindings.not(area.undoAvailableProperty()));
        redoBtn.disableProperty().bind(Bindings.not(area.redoAvailableProperty()));

        BooleanBinding selectionEmpty = new BooleanBinding() {
View Full Code Here

Examples of javafx.scene.control.ColorPicker.valueProperty()

public class ColorPickerFactory implements Callback<Void, FXFormNode> {

    @Override
    public FXFormNode call(Void aVoid) {
        ColorPicker colorPicker = new ColorPicker();
        return new FXFormNodeWrapper(colorPicker, colorPicker.valueProperty());
    }

}
View Full Code Here

Examples of javafx.scene.control.DatePicker.valueProperty()

public class DatePickerFactory implements Callback<Void, FXFormNode> {

    @Override
    public FXFormNode call(Void aVoid) {
        DatePicker datePicker = new DatePicker();
        return new FXFormNodeWrapper(datePicker, datePicker.valueProperty());
    }

}
View Full Code Here

Examples of javafx.scene.control.Slider.valueProperty()

      sl.setMinorTickCount(7);
      sl.setBlockIncrement(1);
      sl.setMax(maxChars + 1);
      sl.setSnapToTicks(true);
      // POJO binding magic...
      personPA.bindBidirectional(path, sl.valueProperty());
      ctrl = sl;
    } else if (controlType == PasswordField.class) {
      final PasswordField tf = new PasswordField() {
        @Override
        public void replaceText(int start, int end, String text) {
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.