customColorGrid.getStyleClass().add("color-picker-grid"); customColorGrid.setVisible(false);
contentGrid.getStyleClass().add("calendar-grid"); contentGrid.setBackground(new Background(new BackgroundFill(Color.TRANSPARENT, CornerRadii.EMPTY,
BaseInfoTab() { setClosable(false); grid.getStyleClass().add("info-props"); grid.setAlignment(Pos.TOP_CENTER); ColumnConstraints column1 = new ColumnConstraints(); column1.setPercentWidth(25); ColumnConstraints column2 = new ColumnConstraints(); column2.setPercentWidth(75); grid.getColumnConstraints().addAll(column1, column2); ScrollPane scroll = new ScrollPane(grid); scroll.setFitToHeight(true); scroll.setFitToWidth(true); setContent(scroll); }
.i18n("Usage statistics are used to populate the modules quick bar on the left with the most used and most recently used modules.")), 1, 0); statsPane.getStyleClass().addAll(Style.GRID.css()); add(statsPane, 0, 3, 3, 1); getStyleClass().addAll(Style.CONTAINER.css());
private GridPane createGridPane() { GridPane gridPane = new GridPane(); gridPane.getStyleClass().add("grid-pane"); return gridPane; }
private GridPane createGridPane() { GridPane grid = new GridPane(); grid.getStyleClass().add("grid-pane"); return grid ; }
options.add(helpIcon(i18n.i18n("Set if a table of contents should be added to the generated PDF document")), 2, 2); options.getStyleClass().addAll(Style.GRID.css());
protected void setModel(Table model) { if (grid != null) { getContent().remove(grid); } grid = fxUtils.createGridPaneFromModel(model); grid.getStyleClass().add("tableFont"); grid.setLayoutX(2 * FRAME_BORDER); grid.setLayoutY(100); getContent().add(grid); }
/** * {@inheritDoc} */ @Override protected Node createContent() { final GridPane informationContentPane = new GridPane(); informationContentPane.getStyleClass().add("grid"); engineUserData.addListener((Observable invalidation) -> updateUserData(informationContentPane)); updateUserData(informationContentPane); final HBox buttonBox = createEngineButtons(); final Region informationContentSpacer = new Region(); informationContentSpacer.getStyleClass().add("engineSpacer"); final Region buttonBoxSpacer = new Region(); buttonBoxSpacer.getStyleClass().add("engineSpacer"); return new VBox(informationContentPane, informationContentSpacer, buttonBox, buttonBoxSpacer); }
public CommandLinksDialog(List<CommandLinksButtonType> links) { this.grid.setHgap(gapSize); this.grid.setVgap(gapSize); this.grid.getStyleClass().add("container"); //$NON-NLS-1$
/** * {@inheritDoc} */ @Override public void initialise() { final GridPane container = new GridPane(); container.getStyleClass().add("detailsListElement"); final List<ColumnConstraints> constraints = new ArrayList<>(); // add the title label container.add(createTitle(), 0, 0); constraints.add(new ColumnConstraintsWithPercentage(30)); // TODO: the skin should react to changes done to the additional information list // TODO: the skin should react to changes done to the detailed information list Stream.concat(getControl().getAdditionalInformation().stream(), getControl().getDetailedInformation().stream()) .forEach(information -> { final Label informationLabel = new Label(information.getContent()); informationLabel.setWrapText(true); informationLabel.getStyleClass().add("information"); container.add(informationLabel, constraints.size(), 0); constraints.add(new ColumnConstraintsWithPercentage(information.getWidth())); }); // set the last constraint to fill the remaining space constraints.set(constraints.size() - 1, new ColumnConstraints()); container.getColumnConstraints().setAll(constraints); getChildren().addAll(container); }
/** * {@inheritDoc} */ @Override public void initialise() { final GridPane container = new GridPane(); container.getStyleClass().add("compactListElement"); List<ColumnConstraints> constraints = new ArrayList<>(); // add the miniature icon container.add(createMiniature(), 0, 0); constraints.add(new ColumnConstraints()); // add the title label container.add(createTitle(), 1, 0); constraints.add(new ColumnConstraintsWithPercentage(40)); // add the additional information getControl().getAdditionalInformation().forEach(information -> { final Label informationLabel = new Label(information.getContent()); informationLabel.getStyleClass().add("information"); container.add(informationLabel, constraints.size(), 0); constraints.add(new ColumnConstraintsWithPercentage(information.getWidth())); }); // set the last constraint to fill the remaining space constraints.set(constraints.size() - 1, new ColumnConstraints()); container.getColumnConstraints().setAll(constraints); getChildren().addAll(container); }
/** * Creates a new {@link GridPane} containing the properties of the selected shortcut * * @return a new {@link GridPane} containing the properties of the selected shortcut */ private GridPane createPropertiesGrid() { final GridPane propertiesGrid = new GridPane(); propertiesGrid.getStyleClass().add("grid"); ColumnConstraints titleColumn = new ColumnConstraintsWithPercentage(30); ColumnConstraints valueColumn = new ColumnConstraintsWithPercentage(70); propertiesGrid.getColumnConstraints().addAll(titleColumn, valueColumn); // ensure that changes to the shortcutProperties map result in updates to the GridPane shortcutProperties.addListener((Observable invalidation) -> updateProperties(propertiesGrid)); // initialize the properties grid correctly updateProperties(propertiesGrid); return propertiesGrid; }
/** * Creates a new {@link GridPane} containing the properties of the selected shortcut * * @return a new {@link GridPane} containing the properties of the selected shortcut */ private GridPane createPropertiesGrid() { final GridPane propertiesGrid = new GridPane(); propertiesGrid.getStyleClass().add("grid"); ColumnConstraints titleColumn = new ColumnConstraintsWithPercentage(30); ColumnConstraints valueColumn = new ColumnConstraintsWithPercentage(70); propertiesGrid.getColumnConstraints().addAll(titleColumn, valueColumn); // ensure that changes to the shortcutProperties map result in updates to the GridPane shortcutProperties.addListener((Observable invalidation) -> updateProperties(propertiesGrid)); // initialize the properties grid correctly updateProperties(propertiesGrid); return propertiesGrid; }
grid.getStyleClass().add("grid"); grid.setAlignment(Pos.CENTER); grid.getColumnConstraints().add(new ColumnConstraints(200)); // column 1
grid.getStyleClass().add("grid");
controlButtons.getStyleClass().add("shortcut-control-button-group");
/** * Populates the repository details step for the git repository */ private void populate() { this.urlField = new TextField(); this.branchField = new TextField("master"); Label urlLabel = new Label(tr("Git-URL:")); urlLabel.setLabelFor(urlField); Label branchLabel = new Label(tr("Git-Branch:")); branchLabel.setLabelFor(branchField); GridPane grid = new GridPane(); grid.getStyleClass().add("grid"); grid.add(urlLabel, 0, 0); grid.add(urlField, 1, 0); grid.add(branchLabel, 0, 1); grid.add(branchField, 1, 1); this.setCenter(grid); }
view.getStyleClass().add("ultimate-board");
private void populate(List<EngineSetting> engineSettings) { final VBox displayPane = new VBox(); displayPane.getStyleClass().add(CONFIGURATION_PANE_CSS_CLASS); final GridPane displayContentPane = new GridPane(); displayContentPane.getStyleClass().add("grid"); int row = 0; for (EngineSetting setting : engineSettings) { final ComboBox<String> comboBox = new ComboBox<>(); comboBox.setMaxWidth(Double.MAX_VALUE); ObservableList<String> items = FXCollections.observableArrayList(setting.getOptions()); comboBox.setItems(items); comboBox.setValue(setting.getCurrentOption(this.container.getName())); comboBox.valueProperty().addListener((observable, oldValue, newValue) -> Platform.runLater(() -> { this.lockAll(); setting.setOption(this.container.getName(), items.indexOf(newValue)); this.unlockAll(); })); displayContentPane.add(new TextWithStyle(setting.getText(), CAPTION_TITLE_CSS_CLASS), 0, row); displayContentPane.add(comboBox, 1, row); lockableElements.add(comboBox); ++row; } Region spacer = new Region(); GridPane.setHgrow(spacer, Priority.ALWAYS); displayContentPane.add(spacer, 2, 0); displayPane.getChildren().addAll(displayContentPane); this.setContent(displayPane); }