Package jfxtras.scene.layout

Examples of jfxtras.scene.layout.VBox$C


    }

  @Override
  public void start(Stage stage)
  {
    VBox lVBox = new VBox(5.0);
    lVBox.add(new Button("short"), new VBox.C().vgrow(Priority.ALWAYS));
    lVBox.add(new Button("medium length"), new VBox.C().vgrow(Priority.ALWAYS));
    lVBox.add(new Button("a longer description in order to test things"), new VBox.C().vgrow(Priority.ALWAYS));
    lVBox.add(new Button("margin 5 grow"), new VBox.C().margin(new Insets(5.0)).vgrow(Priority.ALWAYS));
    lVBox.getChildren().add(new Button("old style"));
    lVBox.add(new Button("margin 20 nogrow"), new VBox.C().margin(new Insets(20.0)));
    lVBox.add(new Button("grow maxwidth 150"), new VBox.C().vgrow(Priority.ALWAYS).maxWidth(150.0));
       
        // setup scene
    Scene scene = new Scene(lVBox, 300, 400);
   
        // create stage
View Full Code Here


    }
    if (lArrowDirection == ArrowDirection.VERTICAL)
    {
      if (lArrowPosition == ArrowPosition.LEADING)
      {
        VBox lVBox = new VBox(0);
        lVBox.add(incrementArrow, new VBox.C().vgrow(Priority.ALWAYS));
        lVBox.add(decrementArrow, new VBox.C().vgrow(Priority.ALWAYS));
        skinNode.setLeft(lVBox);
        BorderPane.setAlignment(lVBox, Pos.CENTER_LEFT);
        //lVBox.setStyle("-fx-border-color: blue;");
      }
      if (lArrowPosition == ArrowPosition.TRAILING)
      {
        VBox lVBox = new VBox(0);
        lVBox.add(incrementArrow, new VBox.C().vgrow(Priority.ALWAYS));
        lVBox.add(decrementArrow, new VBox.C().vgrow(Priority.ALWAYS));
        skinNode.setRight(lVBox);
        BorderPane.setAlignment(lVBox, Pos.CENTER_RIGHT);
        //lVBox.setStyle("-fx-border-color: blue;");
      }
      if (lArrowPosition == ArrowPosition.SPLIT)
View Full Code Here

  /**
   *
   */
  public Parent getRootNode()
  {
    vbox = new VBox(5.0);
    vbox.add(new Button("short"), new VBox.C().vgrow(Priority.ALWAYS));
    vbox.add(new Button("medium length"), new VBox.C().vgrow(Priority.ALWAYS));
    vbox.add(new Button("a longer description in order to test things"), new VBox.C().vgrow(Priority.ALWAYS));
    vbox.add(new Button("margin 5 grow"), new VBox.C().margin(new Insets(5.0)).vgrow(Priority.ALWAYS));
    vbox.getChildren().add(new Button("old style"));
View Full Code Here

    }
   
    // add a close and accept button if we're showing time
    if ( getSkinnable().getShowTime())
    {
      VBox lVBox = new VBox();
      lBorderPane.rightProperty().set(lVBox);
     
      ImageView lAcceptIconImageView = new ImageViewButton();
      lAcceptIconImageView.getStyleClass().addAll("accept-icon");
      lAcceptIconImageView.setPickOnBounds(true);
      lAcceptIconImageView.setOnMouseClicked( (mouseEvent) ->  {
        getSkinnable().calendarProperty().set(calendarPicker.calendarProperty().get());
        lPopup.hide();
      });
      lVBox.add(lAcceptIconImageView);
     
      ImageView lCloseIconImageView = new ImageViewButton();
      lCloseIconImageView.getStyleClass().addAll("close-icon");
      lCloseIconImageView.setPickOnBounds(true);
      lCloseIconImageView.setOnMouseClicked( (mouseEvent) ->  {
        lPopup.hide();
      });
      lVBox.add(lCloseIconImageView);
    }
   
    // if a value is selected in date mode, immediately close the popup
    calendarPicker.calendarProperty().addListener( (observable) -> {
      if (lPopup != null &&  getSkinnable().getShowTime() == false && lPopup.isShowing()) {
View Full Code Here

            @Override
            public void uncaughtException(Thread t, Throwable e) {
                pass = false;
            }
        });
        root = new VBox();
        return root;
    }
View Full Code Here

            @Override
            public void uncaughtException(Thread t, Throwable e) {
                pass = false;
            }
        });
        root = new VBox();
        return root;
    }
View Full Code Here

            @Override
            public void uncaughtException(Thread t, Throwable e) {
                pass = false;
            }
        });
        root = new VBox();
        return root;
    }
View Full Code Here

            @Override
            public void uncaughtException(Thread t, Throwable e) {
                pass = false;
            }
        });
        root = new VBox();
        return root;
    }
View Full Code Here

public class ListSpinnerEditableTest extends GuiTest {
  public Parent getRootNode()
  {
    Locale.setDefault(Locale.ENGLISH);
   
    VBox box = new VBox();

    lSpinner = new ListSpinner<String>("a", "b", "c")
        .withEditable(true).withStringConverter(StringConverterFactory.forString())
        ;
    box.getChildren().add(lSpinner);
    box.getChildren().add(new Button("focus helper"));

    return box;
  }
View Full Code Here

TOP

Related Classes of jfxtras.scene.layout.VBox$C

Copyright © 2018 www.massapicom. 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.