/** * Constructor */ public SimpleCountableHyperlinkButton() { super(); container.getStyleClass().add("countable-button-container"); }
/** * {@inheritDoc} */ @Override public void initialise() { AnchorPane container = new AnchorPane(); container.getStyleClass().add("searchBox"); this.searchField = createTextField(container); this.clearButton = createClearButton(); container.getChildren().addAll(searchField, clearButton); getChildren().addAll(container); }
public SimpleForm() { setSpacing(12); titlePane = new AnchorPane(); titlePane.getStyleClass().add("datafx-form-title"); titleLabel = new Label(); titleLabel.getStyleClass().add("datafx-form-title-label"); AnchorPane.setLeftAnchor(titleLabel, 12.0); AnchorPane.setTopAnchor(titleLabel, 6.0); AnchorPane.setBottomAnchor(titleLabel, 6.0); titlePane.getChildren().add(titleLabel); titlePane.setVisible(false); getChildren().add(titlePane); mainPane = new GridPane(); mainPane.setAlignment(Pos.CENTER_RIGHT); mainPane.setHgap(12.0); mainPane.setVgap(6.0); VBox.setMargin(mainPane, new Insets(0, 16, 0, 16)); getChildren().add(mainPane); actionPane = new FlowPane(); actionPane.setAlignment(Pos.CENTER_RIGHT); actionPane.setHgap(6.0); VBox.setMargin(actionPane, new Insets(0, 16, 12, 16)); getChildren().add(actionPane); }
public SimpleForm() { setSpacing(12); titlePane = new AnchorPane(); titlePane.getStyleClass().add("datafx-form-title"); titleLabel = new Label(); titleLabel.getStyleClass().add("datafx-form-title-label"); AnchorPane.setLeftAnchor(titleLabel, 12.0); AnchorPane.setTopAnchor(titleLabel, 6.0); AnchorPane.setBottomAnchor(titleLabel, 6.0); titlePane.getChildren().add(titleLabel); titlePane.setVisible(false); getChildren().add(titlePane); mainPane = new GridPane(); mainPane.setAlignment(Pos.CENTER_RIGHT); mainPane.setHgap(12.0); mainPane.setVgap(6.0); VBox.setMargin(mainPane, new Insets(0, 16, 0, 16)); getChildren().add(mainPane); actionPane = new FlowPane(); actionPane.setAlignment(Pos.CENTER_RIGHT); actionPane.setHgap(6.0); VBox.setMargin(actionPane, new Insets(0, 16, 12, 16)); getChildren().add(actionPane); }
buttonPane.toFront(); anchorPane.getStyleClass().add("button_panel"); getChildren().add(anchorPane); getChildren().add(chart);
listViewHeaderPane.getStyleClass().add("list-view-header"); listViewHeaderPane.setPrefHeight(20d); treeViewPane.setTop(listViewHeaderPane);
buttonRow.getStyleClass().add("buttonRow"); AnchorPane.setLeftAnchor(backLbl, 0.0); AnchorPane.setRightAnchor(nextLbl, control.getPaddingLocal().getRight());