本文整理了Java中javafx.scene.layout.VBox.setVgrow()
方法的一些代码示例,展示了VBox.setVgrow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VBox.setVgrow()
方法的具体详情如下:
包路径:javafx.scene.layout.VBox
类名称:VBox
方法名:setVgrow
暂无
代码示例来源: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: jfoenixadmin/JFoenix
public void setContent(Node content) {
if (contentContainer.getChildren().size() == 2) {
contentContainer.getChildren().set(1, content);
} else if (contentContainer.getChildren().size() == 1) {
contentContainer.getChildren().add(content);
} else {
contentContainer.getChildren().setAll(headerSpace, content);
}
VBox.setVgrow(content, Priority.ALWAYS);
}
代码示例来源:origin: jfoenixadmin/JFoenix
private void updateContent() {
paddingPane.setPrefSize(0, 0);
paddingPane.setMinSize(0, 0);
Node contentNode = content;
switch (getDirection()) {
case TOP:
contentNode = new VBox(paddingPane, content);
VBox.setVgrow(content, Priority.ALWAYS);
break;
case BOTTOM:
contentNode = new VBox(content, paddingPane);
VBox.setVgrow(content, Priority.ALWAYS);
break;
case LEFT:
contentNode = new HBox(paddingPane, content);
HBox.setHgrow(content, Priority.ALWAYS);
break;
case RIGHT:
contentNode = new HBox(content, paddingPane);
HBox.setHgrow(content, Priority.ALWAYS);
break;
}
contentNode.setPickOnBounds(false);
if (isOpened()) {
paddingSizeProperty.set(computePaddingSize());
}
contentHolder.getChildren().setAll(contentNode);
}
代码示例来源:origin: jfoenixadmin/JFoenix
VBox.setVgrow(treeView, Priority.ALWAYS);
代码示例来源:origin: jfoenixadmin/JFoenix
contentPlaceHolder.getChildren().add(node);
((Region) node).setMinSize(0, 0);
VBox.setVgrow(contentPlaceHolder, Priority.ALWAYS);
contentPlaceHolder.getStyleClass().add("resize-border");
contentPlaceHolder.setBorder(new Border(new BorderStroke(Color.BLACK,
代码示例来源:origin: jfoenixadmin/JFoenix
String headerColor = getDefaultColor(i % 12);
header.setStyle("-fx-background-radius: 5 5 0 0; -fx-background-color: " + headerColor);
VBox.setVgrow(header, Priority.ALWAYS);
StackPane body = new StackPane();
body.setMinHeight(Math.random() * 20 + 50);
代码示例来源:origin: torakiki/pdfsam
@Inject
public MainPane(ContentPane mainPane, BannerPane banner) {
VBox.setVgrow(mainPane, Priority.ALWAYS);
this.setId("pdfsam-main-pane");
getChildren().addAll(banner, mainPane);
}
}
代码示例来源:origin: speedment/speedment
message.setMaxWidth(Double.MAX_VALUE);
cancel.setMaxWidth(128);
VBox.setVgrow(message, Priority.ALWAYS);
代码示例来源:origin: jfoenixadmin/JFoenix
VBox.setVgrow(centeredGlyph, Priority.ALWAYS);
StackPane.setMargin(centeredGlyph, new Insets(10));
代码示例来源:origin: jfoenixadmin/JFoenix
contentHolder.getChildren().setAll(groupNode, sublistContainer);
contentHolder.getStyleClass().add("sublist-container");
VBox.setVgrow(groupNode, Priority.ALWAYS);
cellContent = contentHolder;
cellRippler.ripplerPane.addEventHandler(MouseEvent.ANY, e -> e.consume());
代码示例来源:origin: torakiki/pdfsam
private VBox settingPanel() {
VBox pane = new VBox();
pane.setAlignment(Pos.TOP_CENTER);
VBox.setVgrow(selectionPane, Priority.ALWAYS);
pane.getChildren().addAll(selectionPane,
Views.titledPane(DefaultI18nContext.getInstance().i18n("Destination file"), destinationPane));
return pane;
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public static void setVgrow(Node... nodes) {
if (nodes != null) {
for (final Node node : nodes) {
VBox.setVgrow(node, Priority.ALWAYS);
}
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* Constructor
*/
public EmptyNoContentPane() {
VBox.setVgrow(this, Priority.NEVER);
}
代码示例来源:origin: torakiki/pdfsam
private VBox settingPanel() {
VBox pane = new VBox();
pane.setAlignment(Pos.TOP_CENTER);
VBox.setVgrow(selectionPane, Priority.ALWAYS);
pane.getChildren().addAll(selectionPane,
titledPane(DefaultI18nContext.getInstance().i18n("Merge settings"), mergeOptions),
titledPane(DefaultI18nContext.getInstance().i18n("Destination file"), destinationPane));
return pane;
}
代码示例来源: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
private VBox settingPanel() {
VBox pane = new VBox();
pane.setAlignment(Pos.TOP_CENTER);
VBox.setVgrow(selectionPane, Priority.ALWAYS);
TitledPane prefixTitled = Views.titledPane(DefaultI18nContext.getInstance().i18n("File names settings"),
prefix);
prefix.addMenuItemFor(Prefix.FILENUMBER);
pane.getChildren().addAll(selectionPane,
titledPane(DefaultI18nContext.getInstance().i18n("Extract settings"), extractOptions),
titledPane(DefaultI18nContext.getInstance().i18n("Output settings"), destinationPane), prefixTitled);
return pane;
}
代码示例来源:origin: torakiki/pdfsam
private VBox settingPanel() {
VBox pane = new VBox();
pane.setAlignment(Pos.TOP_CENTER);
VBox.setVgrow(selectionPane, Priority.ALWAYS);
TitledPane prefixTitled = Views.titledPane(DefaultI18nContext.getInstance().i18n("File names settings"),
prefix);
prefix.addMenuItemFor(Prefix.FILENUMBER);
TitledPane options = Views.titledPane(DefaultI18nContext.getInstance().i18n("Rotate settings"), rotateOptions);
pane.getChildren().addAll(selectionPane, options,
Views.titledPane(DefaultI18nContext.getInstance().i18n("Output settings"), destinationPane),
prefixTitled);
return pane;
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public Node getContent() {
final VBox box = new VBox();
VBox.setVgrow(box, Priority.ALWAYS);
box.setSpacing(25);
if (content == null) {
box.getChildren().addAll(toolbar, new HBox());
} else {
box.getChildren().addAll(toolbar, content);
VBox.setVgrow(content, Priority.ALWAYS);
}
return box;
}
代码示例来源:origin: com.jfoenix/jfoenix
public void setContent(Node content) {
if (contentContainer.getChildren().size() == 2) {
contentContainer.getChildren().set(1, content);
} else if (contentContainer.getChildren().size() == 1) {
contentContainer.getChildren().add(content);
} else {
contentContainer.getChildren().setAll(headerSpace, content);
}
VBox.setVgrow(content, Priority.ALWAYS);
}
代码示例来源:origin: PhoenicisOrg/phoenicis
@Override
protected void drawStepContent() {
Text textWidget = new Text(textToShow);
textWidget.setId("stepText");
ScrollPane scrollPane = new ScrollPane();
scrollPane.setId("stepScrollPane");
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
scrollPane.setFitToWidth(true);
scrollPane.setContent(new TextFlow(textWidget));
this.addToContentPane(scrollPane);
VBox.setVgrow(scrollPane, Priority.ALWAYS);
}
内容来源于网络,如有侵权,请联系作者删除!