作者:敖军士 | 来源:互联网 | 2023-09-02 09:32
本文整理了Java中javafx.scene.layout.FlowPane.getStyleClass()
方法的一些代码示例,展示了FlowPane.getStyleClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FlowPane.getStyleClass()
方法的具体详情如下:
包路径:javafx.scene.layout.FlowPane
类名称:FlowPane
方法名:getStyleClass
FlowPane.getStyleClass介绍
暂无
代码示例
代码示例来源:origin: jfoenixadmin/JFoenix
/**
* creates empty dialog layout
*/
public JFXDialogLayout() {
initialize();
heading.getStyleClass().addAll("jfx-layout-heading", "title");
body.getStyleClass().add("jfx-layout-body");
VBox.setVgrow(body, Priority.ALWAYS);
actions.getStyleClass().add("jfx-layout-actions");
getChildren().setAll(heading, body, actions);
}
代码示例来源:origin: torakiki/pdfsam
@Inject
public ModulesDashboardPane(List modules) {
FlowPane modulesPane = new FlowPane();
getStyleClass().addAll("dashboard-container");
modulesPane.getStyleClass().add("dashboard-modules");
modules.stream().sorted((a, b) -> a.descriptor().getPriority() - b.descriptor().getPriority())
.map(ModulesDashboardTile::new).forEach(modulesPane.getChildren()::add);
this.getChildren().add(modulesPane);
eventStudio().addAnnotatedListeners(this);
}
代码示例来源:origin: torakiki/pdfsam
@EventListener
public void onPremiumModules(PremiumModulesEvent e) {
if (!e.premiumModules.isEmpty()) {
Label premiumTile = new Label(DefaultI18nContext.getInstance().i18n("Premium features"));
premiumTile.getStyleClass().add("modules-tile-title");
FlowPane modulesPane = new FlowPane();
modulesPane.getStyleClass().add("dashboard-modules");
e.premiumModules.stream().sorted((a, b) -> a.getId() - b.getId()).map(PremiumModuleTile::new)
.forEach(modulesPane.getChildren()::add);
Platform.runLater(() -> this.getChildren().addAll(premiumTile, modulesPane));
}
}
}
代码示例来源:origin: PhoenicisOrg/phoenicis
/**
* Creates a container for all the tool buttons
*
* @return A container containing all the tool buttons
*/
private FlowPane createToolButtonContainer() {
final FlowPane toolsCOntentPane= new FlowPane();
toolsContentPane.getStyleClass().add("grid");
Bindings.bindContent(toolsContentPane.getChildren(), toolButtons);
return toolsContentPane;
}
}
代码示例来源:origin: com.jfoenix/jfoenix
/**
* creates empty dialog layout
*/
public JFXDialogLayout() {
initialize();
heading.getStyleClass().addAll("jfx-layout-heading", "title");
body.getStyleClass().add("jfx-layout-body");
VBox.setVgrow(body, Priority.ALWAYS);
actions.getStyleClass().add("jfx-layout-actions");
getChildren().setAll(heading, body, actions);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-demoapp-components
/**
* @{inheritedDoc}
*/
@Override
protected void process() {
super.process();
VLViewComponentXML widgetList = getRootComponent().getComponentById("WidgetList").orElse(null);
if (widgetList != null) {
List buildables = ComponentUtils.resolveAndGenerate(this, widgetList.getSubcomponents());
FlowPane flowPane = new FlowPane();
flowPane.getStyleClass().add("ep-dashboard-items-wrapper");
for(IBuildable e: buildables) {
flowPane.getChildren().add(e.getDisplay());
}
processedView(flowPane);
} else {
processedView(new StackPane());
}
}