@Inject public PreferencePane(PreferenceAppearencePane appearence, PreferenceBehaviorPane behavior, PreferenceWorkspacePane workspace, PreferenceOutputPane output) { getStyleClass().add("dashboard-container"); VBox left = new VBox(Style.DEFAULT_SPACING); left.setMinWidth(USE_PREF_SIZE); addSectionTitle(DefaultI18nContext.getInstance().i18n("Appearance"), left); left.getChildren().add(appearence); addSectionTitle(DefaultI18nContext.getInstance().i18n("Behavior"), left); left.getChildren().add(behavior); VBox right = new VBox(Style.DEFAULT_SPACING); HBox.setHgrow(right, Priority.ALWAYS); addSectionTitle(DefaultI18nContext.getInstance().i18n("Workspace"), right); right.getChildren().add(workspace); addSectionTitle(DefaultI18nContext.getInstance().i18n("Output"), right); right.getChildren().add(output); getChildren().addAll(left, right); }
/** * @param width */ public void setContainerWidth(double width) { allOverContainer.setMinWidth(width); }
/** * @param width */ public void setContainerWidth(double width) { allOverContainer.setMinWidth(width); }
/** * @param width */ public void setContainerWidth(double width) { allOverContainer.setMinWidth(width); }
double minWidth = 5 * item.length(); double maxWidth = 10 * item.length(); leftBox.setMinWidth(Math.max(minWidth, leftBox.getMinWidth())); leftBox.setMaxWidth(maxWidth);
layout.setMinWidth(400); layout.setAlignment(Pos.CENTER); layout.setPadding(new Insets(10));
root.setMinWidth(240); root.setAlignment(Pos.CENTER); primaryStage.setScene(new Scene(root));
nav.setMinWidth(100); nav.getStyleClass().add("navbar");
confirmationResults.setMinWidth(150); HBox layout = new HBox(); layout.getChildren().addAll(confirmationResults, webView);
root.setMinWidth(Pane.USE_PREF_SIZE);