List of usage examples for javafx.scene.layout BorderPane getStyleClass
@Override public final ObservableList<String> getStyleClass()
From source file:org.pdfsam.ui.info.InfoStage.java
@Inject public InfoStage(InfoPane infoPane, Collection<Image> logos, StylesConfig styles) { BorderPane containerPane = new BorderPane(); containerPane.getStyleClass().addAll(Style.CONTAINER.css()); containerPane.setCenter(infoPane);//from w ww. j a v a 2 s . co m containerPane.setBottom(new ClosePane()); Scene scene = new Scene(containerPane); scene.getStylesheets().addAll(styles.styles()); scene.setOnKeyReleased(new HideOnEscapeHandler(this)); setScene(scene); setTitle(DefaultI18nContext.getInstance().i18n("Document details")); getIcons().addAll(logos); setMaximized(true); }
From source file:org.pdfsam.ui.dialog.OverwriteConfirmationDialog.java
@Inject public OverwriteConfirmationDialog(StylesConfig styles) { initModality(Modality.WINDOW_MODAL); initStyle(StageStyle.UTILITY);//w ww. ja va 2s.c o m setResizable(false); BorderPane containerPane = new BorderPane(); containerPane.getStyleClass().addAll(Style.CONTAINER.css()); containerPane.getStyleClass().addAll("-pdfsam-dialog", "-pdfsam-warning-dialog"); containerPane.setCenter(dialogContent); HBox buttons = new HBox(buildButton(DefaultI18nContext.getInstance().i18n("Overwrite"), true), buildButton(DefaultI18nContext.getInstance().i18n("Cancel"), false)); buttons.getStyleClass().add("-pdfsam-dialog-buttons"); containerPane.setBottom(buttons); Scene scene = new Scene(containerPane); scene.getStylesheets().addAll(styles.styles()); scene.setOnKeyReleased(new HideOnEscapeHandler(this)); setScene(scene); }
From source file:org.pdfsam.ui.news.NewsStage.java
@Inject public NewsStage(Collection<Image> logos, StylesConfig styles, @Named("newsDisplayPolicy") PreferenceComboBox<KeyStringValueItem<String>> newsDisplayPolicy) { BorderPane containerPane = new BorderPane(); browser.setId("newsBrowser"); containerPane.getStyleClass().addAll(Style.CONTAINER.css()); containerPane.getStyleClass().add("-pdfsam-news-pane"); containerPane.setCenter(browser);/*www . java 2s.c o m*/ HBox bottom = new HBox(); ClosePane closePane = new ClosePane(); HBox.setHgrow(closePane, Priority.ALWAYS); HBox comboPanel = new HBox(new Label(DefaultI18nContext.getInstance().i18n("Show this:")), newsDisplayPolicy); comboPanel.getStyleClass().addAll(Style.CONTAINER.css()); comboPanel.getStyleClass().add("-pdfsam-news-pane-bottom"); bottom.getChildren().addAll(comboPanel, closePane); containerPane.setBottom(bottom); Scene scene = new Scene(containerPane); scene.getStylesheets().addAll(styles.styles()); scene.setOnKeyReleased(new HideOnEscapeHandler(this)); setScene(scene); setTitle(DefaultI18nContext.getInstance().i18n("What's new")); getIcons().addAll(logos); setMaximized(false); }