Package javafx.scene.control

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


        Label brightnessLabel = new Label("Brightness:");
        brightnessLabel.setMinWidth(Control.USE_PREF_SIZE);
        GridPane.setConstraints(brightnessLabel, 0, 0);
       
        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);
View Full Code Here

        Label saturationLabel = new Label("Saturation:");
        saturationLabel.setMinWidth(Control.USE_PREF_SIZE);
        GridPane.setConstraints(saturationLabel, 0, 1);
       
        Slider saturationSlider = SliderBuilder.create().min(0).max(100).id("SaturationSlider").build();
        saturationSlider.valueProperty().bindBidirectional(sat);
        GridPane.setConstraints(saturationSlider, 1, 1);
       
        saturationSlider.styleProperty().bind(new StringBinding() {
            { bind(color); }
            @Override protected String computeValue() {
View Full Code Here

    BorderPane root = new BorderPane();
    root.setCenter(myGrid);
   
    VBox box = new VBox();
    Slider columnWidthSlider = SliderBuilder.create().min(10).max(512).build();
    columnWidthSlider.valueProperty().bindBidirectional(myGrid.cellWidthProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("ColumnWidth"), columnWidthSlider).build());
   
    Slider columnHeightSlider = SliderBuilder.create().min(10).max(512).build();
    columnHeightSlider.valueProperty().bindBidirectional(myGrid.cellHeightProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("columnHeight"), columnHeightSlider).build());
View Full Code Here

    Slider columnWidthSlider = SliderBuilder.create().min(10).max(512).build();
    columnWidthSlider.valueProperty().bindBidirectional(myGrid.cellWidthProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("ColumnWidth"), columnWidthSlider).build());
   
    Slider columnHeightSlider = SliderBuilder.create().min(10).max(512).build();
    columnHeightSlider.valueProperty().bindBidirectional(myGrid.cellHeightProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("columnHeight"), columnHeightSlider).build());
   
    Slider horizontalCellSpacingSlider = SliderBuilder.create().min(0).max(64).build();
    horizontalCellSpacingSlider.valueProperty().bindBidirectional(myGrid.horizontalCellSpacingProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("horizontalCellSpacing"), horizontalCellSpacingSlider).build());
View Full Code Here

    Slider columnHeightSlider = SliderBuilder.create().min(10).max(512).build();
    columnHeightSlider.valueProperty().bindBidirectional(myGrid.cellHeightProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("columnHeight"), columnHeightSlider).build());
   
    Slider horizontalCellSpacingSlider = SliderBuilder.create().min(0).max(64).build();
    horizontalCellSpacingSlider.valueProperty().bindBidirectional(myGrid.horizontalCellSpacingProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("horizontalCellSpacing"), horizontalCellSpacingSlider).build());
   
    Slider verticalCellSpacingSlider = SliderBuilder.create().min(0).max(64).build();
    verticalCellSpacingSlider.valueProperty().bindBidirectional(myGrid.verticalCellSpacingProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("verticalCellSpacing"), verticalCellSpacingSlider).build());
View Full Code Here

    Slider horizontalCellSpacingSlider = SliderBuilder.create().min(0).max(64).build();
    horizontalCellSpacingSlider.valueProperty().bindBidirectional(myGrid.horizontalCellSpacingProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("horizontalCellSpacing"), horizontalCellSpacingSlider).build());
   
    Slider verticalCellSpacingSlider = SliderBuilder.create().min(0).max(64).build();
    verticalCellSpacingSlider.valueProperty().bindBidirectional(myGrid.verticalCellSpacingProperty());
    box.getChildren().add(HBoxBuilder.create().children(new Label("verticalCellSpacing"), verticalCellSpacingSlider).build());
   
    root.setTop(box);
   
    Scene scene = new Scene(root, 540, 210);
View Full Code Here

      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

    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

    rSlider.disableProperty().bind(activateCB.selectedProperty().not());
    radius.bind(rSlider.valueProperty());
    Label rL = new Label();
    rL.textProperty().bind(new StringBinding() {
      {
        bind(rSlider.valueProperty());
      }

      @Override
      protected String computeValue() {
        return df.format(rSlider.getValue()) + "px";
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.