javafx.scene.layout.VBox.getStyleClass()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(9.9k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中javafx.scene.layout.VBox.getStyleClass()方法的一些代码示例,展示了VBox.getStyleClass()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VBox.getStyleClass()方法的具体详情如下:
包路径:javafx.scene.layout.VBox
类名称:VBox
方法名:getStyleClass

VBox.getStyleClass介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

headerPanel.getStyleClass().add("month-year-pane");
headerPanel.setBackground(new Background(new BackgroundFill(this.datePicker.getDefaultColor(),
  CornerRadii.EMPTY,

代码示例来源:origin: jfoenixadmin/JFoenix

paletteBox.getStyleClass().add("color-palette");
paletteBox.setBackground(new Background(new BackgroundFill(Color.WHITE, CornerRadii.EMPTY, Insets.EMPTY)));
paletteBox.setBorder(new Border(new BorderStroke(Color.valueOf("#9E9E9E"),

代码示例来源:origin: torakiki/pdfsam

public QuickbarPane(BaseQuickbarButtonsPane items) {
    ExpandButton expandButton = new ExpandButton();
    getStyleClass().add("quickbar");
    items.displayTextProperty().bind(expandButton.selectedProperty());
    VBox buttonContainer = new VBox(expandButton, items);
    buttonContainer.getStyleClass().add("quickbar-buttons");
    setVgrow(buttonContainer, Priority.ALWAYS);
    getChildren().addAll(buttonContainer);
  }
}

代码示例来源:origin: torakiki/pdfsam

ConfirmationDialogContent(MaterialDesignIcon icon) {
  getStyleClass().addAll(Style.CONTAINER.css());
  messageTitle.getStyleClass().add("-pdfsam-dialog-title");
  messageContent.getStyleClass().add("-pdfsam-dialog-message");
  VBox messages = new VBox(messageTitle, messageContent);
  messages.getStyleClass().add("-pdfsam-dialog-messages");
  getChildren().addAll(MaterialDesignIconFactory.get().createIcon(icon, "42.0"), messages);
  getStyleClass().addAll("-pdfsam-dialog-content");
}

代码示例来源:origin: jfoenixadmin/JFoenix

contentHolder.getStyleClass().add("sublist-container");
VBox.setVgrow(groupNode, Priority.ALWAYS);
cellContent = contentHolder;

代码示例来源:origin: torakiki/pdfsam

KeywordsTab() {
  VBox content = new VBox();
  content.getStyleClass().add("info-props");
  setText(DefaultI18nContext.getInstance().i18n("Keywords"));
  setClosable(false);
  keywords.setWrapText(true);
  keywords.getStyleClass().add("info-property-value");
  content.getChildren().add(keywords);
  ScrollPane scroll = new ScrollPane(content);
  scroll.setFitToHeight(true);
  scroll.setFitToWidth(true);
  setContent(scroll);
  eventStudio().addAnnotatedListeners(this);
}

代码示例来源:origin: torakiki/pdfsam

public ConfirmationDialog(StylesConfig styles, DialogStyle style, String positiveButtonText,
    String negativeButtonText) {
  initModality(Modality.WINDOW_MODAL);
  initStyle(StageStyle.UTILITY);
  setResizable(false);
  this.dialogContent = new ConfirmationDialogContent(style.icon);
  VBox containerPane = new VBox();
  containerPane.getStyleClass().addAll(Style.CONTAINER.css());
  containerPane.getStyleClass().addAll("-pdfsam-dialog", style.style);
  HBox buttons = new HBox(buildPositiveButton(positiveButtonText, true),
      buildCancelButton(negativeButtonText, false));
  buttons.getStyleClass().add("-pdfsam-dialog-buttons");
  containerPane.getChildren().addAll(dialogContent, buttons);
  Scene scene = new Scene(containerPane);
  scene.getStylesheets().addAll(styles.styles());
  setScene(scene);
}

代码示例来源:origin: torakiki/pdfsam

protected final void initModuleSettingsPanel(VBox panel) {
  panel.getStyleClass().addAll(Style.DEAULT_CONTAINER.css());
  panel.getStyleClass().addAll(Style.MODULE_CONTAINER.css());
  panel.getChildren().add(footer);
  footer.runButton().setOnAction(event -> {
    ErrorTracker errorTracker = new ErrorTracker();
    Builder<? extends AbstractParameters> builder = getBuilder(errorTracker
        .andThen(s -> eventStudio().broadcast(new AddNotificationRequestEvent(NotificationType.ERROR, s,
            DefaultI18nContext.getInstance().i18n("Invalid parameters")))));
    if (!errorTracker.errorOnBuild) {
      eventStudio().broadcast(new TaskExecutionRequestEvent(id(), builder.build()));
    }
  });
  modulePanel.setCenter(panel);
  eventStudio().addAnnotatedListeners(this);
}

代码示例来源:origin: torakiki/pdfsam

ModulesDashboardTile(Module module) {
  super(module.descriptor().getName(), module.descriptor().getDescription(), module.graphic());
  this.id = module.id();
  setOnAction(e -> eventStudio().broadcast(activeteModule(id)));
  module.descriptor().getSupportURL().ifPresent(url -> {
    UrlButton helpButton = UrlButton.urlButton(null, url, null, "pdfsam-toolbar-button");
    helpButton.setGraphic(MaterialDesignIconFactory.get().createIcon(MaterialDesignIcon.HELP_CIRCLE, "1.4em"));
    toolButtons.getChildren().add(helpButton);
    toolButtons.getStyleClass().add("dashboard-modules-toolbar");
    addBottomPanel(toolButtons);
  });
  setOnDragOver(e -> dragConsume(e, this.onDragOverConsumer()));
  setOnDragDropped(e -> dragConsume(e, this.onDragDropped()));
}

代码示例来源:origin: torakiki/pdfsam

public Footer(RunButton runButton, OpenButton openButton, String ownerModule) {
  this.ownerModule = defaultString(ownerModule);
  this.openButton = openButton;
  this.runButton = runButton;
  this.getStyleClass().addAll("pdfsam-container", "footer-pane");
  this.statusLabel.getStyleClass().add("status-label");
  this.statusLabel.setVisible(false);
  this.bar.setMaxWidth(Double.MAX_VALUE);
  this.bar.getStyleClass().add("pdfsam-footer-bar");
  this.statusLabel.setMaxHeight(Double.MAX_VALUE);
  VBox progressPane = new VBox(statusLabel, bar);
  progressPane.getStyleClass().add("progress-pane");
  VBox.setVgrow(statusLabel, Priority.ALWAYS);
  HBox.setHgrow(bar, Priority.ALWAYS);
  HBox.setHgrow(progressPane, Priority.ALWAYS);
  this.failed.setVisible(false);
  StackPane buttons = new StackPane(failed, openButton);
  buttons.setAlignment(Pos.CENTER_LEFT);
  this.getChildren().addAll(runButton, buttons, progressPane);
  eventStudio().add(TaskExecutionRequestEvent.class, e -> {
    if (e.getModuleId().equals(ownerModule)) {
      failed.setVisible(false);
      openButton.setVisible(false);
      statusLabel.setVisible(true);
      statusLabel.setText(DefaultI18nContext.getInstance().i18n("Requested"));
      bar.setProgress(0);
    }
  });
  eventStudio().addAnnotatedListeners(this);
}

代码示例来源:origin: torakiki/pdfsam

@Inject
public ContentPane(WorkArea modules, Dashboard dashboard, NewsPanel news,
    @Named("defaultDashboardItemId") String defaultDasboardItem) {
  this.modules = modules;
  this.dashboard = dashboard;
  this.newsContainer = new VBox(news);
  this.newsContainer.getStyleClass().add("news-container");
  StackPane stack = new StackPane(modules, dashboard);
  setHgrow(stack, Priority.ALWAYS);
  newsContainer.managedProperty().bind(newsContainer.visibleProperty());
  newsContainer.setVisible(false);
  fadeIn = new FadeTransition(new Duration(300), newsContainer);
  fadeIn.setFromValue(0);
  fadeIn.setToValue(1);
  fadeOut = new FadeTransition(new Duration(300), newsContainer);
  fadeOut.setFromValue(1);
  fadeOut.setToValue(0);
  fadeOut.setOnFinished(e -> {
    newsContainer.setVisible(false);
  });
  getChildren().addAll(stack, newsContainer);
  eventStudio().addAnnotatedListeners(this);
  eventStudio().broadcast(new SetActiveDashboardItemRequest(defaultDasboardItem));
}

代码示例来源:origin: torakiki/pdfsam

this.ownerModule = defaultString(ownerModule);
VBox advancedPanel = new VBox();
advancedPanel.getStyleClass().addAll(Style.CONTAINER.css());
version = new PdfVersionCombo(ownerModule);
compress = new PdfVersionConstrainedCheckBox(PdfVersion.VERSION_1_5, ownerModule);

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public WizardContentLayoutSelector() {
 getStyleClass().add("wizard-content-layout-selector");
 stepContentWrapper.getStyleClass().add("wizard-content-layout-content-wrapper");
 stepTopWrapper.getStyleClass().add("wizard-content-layout-top-menu-wrapper");
 stepLeftWrapper.getStyleClass().add("wizard-content-layout-left-menu-wrapper");
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public TernaryMenuTabPane() {
 super();
 layout.getStyleClass().add("ternary-menu");
 getStyleClass().add("ternary-menu-external");
 tabHeaderContainer = new TernaryMenuTabHeader();
 getChildren().add(layout);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public ConfigurableListViewLayout() {
 rootLayout.getStyleClass().add("ep-advanced-list-view-pane");
 NodeHelper.setHVGrow(rootLayout);
 contentWrapper.getStyleClass().add("ep-advanced-list-view-pane-content-container");
 NodeHelper.setVgrow(contentWrapper);
}

代码示例来源:origin: stackoverflow.com

Button button1 = new Button(...);
Button button2 = new Button(...);
Button button3 = new Button(...);

VBox buttons = new VBox(button1, button2, button3);
buttons.getStyleClass().add("button-container");

代码示例来源:origin: PhoenicisOrg/phoenicis

/**
 * {@inheritDoc}
 */
@Override
public void initialise() {
  final Text title = new Text(tr("About"));
  title.getStyleClass().add("title");
  final GridPane aboutGrid = createAboutGrid();
  final VBox container = new VBox(title, aboutGrid);
  container.getStyleClass().add("containerConfigurationPane");
  getChildren().addAll(container);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@Override
public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
 tabContentContainer.getStyleClass().addAll("ternary-menu-content");
 NodeHelper.setVgrow(tabContentContainer);
 layout.getChildren().addAll(tabHeaderContainer, tabContentContainer);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public FiedsetSelectorMenuRow() {
 getStyleClass().add("fieldset-selector-menu-row-wrapper");
 subMenu.managedProperty().bind(subMenu.visibleProperty());
 subMenu.getStyleClass().add("fieldset-selector-submenu-row-wrapper");
 subMenu.setVisible(false);
 getChildren().add(rowslayout);
 expandCollapseIcon.visibleProperty().bind(Bindings.size(submenus).greaterThan(0));
}

代码示例来源:origin: stackoverflow.com

VBox container = new VBox();
 container.getStyleClass().add("vbox");
 HBox root = new HBox();
 root.getStyleClass().add("hbox");
 HBox rootA = new HBox();
 rootA.getStyleClass().add("hbox");
 HBox rootB = new HBox();
 rootB.getStyleClass().add("hbox");

相关文章