List of usage examples for javafx.scene.layout VBox VBox
public VBox(double spacing, Node... children)
From source file:acmi.l2.clientmod.xdat.Controller.java
private Tab createTab(Field listField) { Tab tab = new Tab(listField.getName()); SplitPane pane = new SplitPane(); TextField filter = TextFields.createClearableTextField(); VBox.setMargin(filter, new Insets(2)); TreeView<Object> elements = createTreeView(listField, filter.textProperty()); VBox.setVgrow(elements, Priority.ALWAYS); PropertySheet properties = createPropertySheet(elements); pane.getItems().addAll(new VBox(filter, elements), properties); pane.setDividerPositions(0.3);/*from w ww . j a va 2s . c o m*/ tab.setContent(wrap(pane)); return tab; }
From source file:de.pixida.logtest.designer.logreader.LogReaderEditor.java
private void insertConfigItemsIntoGrid(final GridPane gp, final List<Triple<String, Node, String>> formItems) { for (int i = 0; i < formItems.size(); i++) { final String title = formItems.get(i).getLeft(); final Node inputElement = formItems.get(i).getMiddle(); final String description = formItems.get(i).getRight(); // Put text flow object into cell. If a Text instance is used only, it will grab the whole cell size and center the text // (horizontally and vertically). Therefore, the table cell alignment does not work. final TextFlow titleText = new TextFlow(new Text(title)); titleText.setStyle("-fx-font-weight: bold;"); final TextFlow fieldName = new TextFlow(titleText); fieldName.autosize();/*w w w . j a v a 2 s. co m*/ fieldName.setMinWidth(fieldName.getWidth()); gp.add(fieldName, 0, i); final Text descriptionText = new Text(description); final VBox vbox = new VBox(inputElement, new TextFlow(descriptionText)); gp.add(vbox, 1, i); } }
From source file:fr.amap.lidar.amapvox.gui.MainFrameController.java
private void initEchoFiltering() { anchorPaneEchoFilteringClassifications = new AnchorPane(); listviewClassifications = new ListView<>(); listviewClassifications.getItems()//w ww.j a v a 2 s. co m .addAll(createSelectedCheckbox(Classification.CREATED_NEVER_CLASSIFIED.getValue() + " - " + Classification.CREATED_NEVER_CLASSIFIED.getDescription()), createSelectedCheckbox(Classification.UNCLASSIFIED.getValue() + " - " + Classification.UNCLASSIFIED.getDescription()), new CheckBox(Classification.GROUND.getValue() + " - " + //by default unselected, ground point will be removed Classification.GROUND.getDescription()), createSelectedCheckbox(Classification.LOW_VEGETATION.getValue() + " - " + Classification.LOW_VEGETATION.getDescription()), createSelectedCheckbox(Classification.MEDIUM_VEGETATION.getValue() + " - " + Classification.MEDIUM_VEGETATION.getDescription()), createSelectedCheckbox(Classification.HIGH_VEGETATION.getValue() + " - " + Classification.HIGH_VEGETATION.getDescription()), createSelectedCheckbox(Classification.BUILDING.getValue() + " - " + Classification.BUILDING.getDescription()), createSelectedCheckbox(Classification.LOW_POINT.getValue() + " - " + Classification.LOW_POINT.getDescription()), createSelectedCheckbox(Classification.MODEL_KEY_POINT.getValue() + " - " + Classification.MODEL_KEY_POINT.getDescription()), createSelectedCheckbox( Classification.WATER.getValue() + " - " + Classification.WATER.getDescription()), createSelectedCheckbox(Classification.RESERVED_10.getValue() + " - " + Classification.RESERVED_10.getDescription()), createSelectedCheckbox(Classification.RESERVED_11.getValue() + " - " + Classification.RESERVED_11.getDescription()), createSelectedCheckbox(Classification.OVERLAP_POINTS.getValue() + " - " + Classification.OVERLAP_POINTS.getDescription())); listviewClassifications.setPrefSize(269, 134); anchorPaneEchoFilteringClassifications.getChildren() .add(new VBox(new Label("Classifications"), listviewClassifications)); anchorPaneEchoFilteringClassifications.setLayoutX(14); anchorPaneEchoFilteringClassifications.setLayoutY(14); anchorPaneEchoFiltering.getChildren().add(anchorPaneEchoFilteringClassifications); }