本文整理了Java中javafx.scene.layout.VBox.setDisable()
方法的一些代码示例,展示了VBox.setDisable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VBox.setDisable()
方法的具体详情如下:
包路径:javafx.scene.layout.VBox
类名称:VBox
方法名:setDisable
暂无
代码示例来源:origin: stackoverflow.com
VBox buttonHolder = new VBox();
Button button = new Button(...);
buttonHolder.getChildren().add(button);
// repeat as necessary...
buttonHolder.setDisable(true); // all buttons in the VBox will now be disbaled
代码示例来源:origin: PhoenicisOrg/phoenicis
private void initializeRefreshCallback() {
repositoryManager.addCallbacks(categories -> {
Platform.runLater(() -> {
this.overlay.toBack();
this.vBox.setDisable(false);
});
}, error -> {
});
}
代码示例来源:origin: PhoenicisOrg/phoenicis
private void populateRepositoryRefresh() {
// Refresh Repositories
this.refreshLayout = new GridPane();
this.refreshLayout.setHgap(20);
this.refreshLayout.setVgap(10);
this.refreshRepositoriesLabel = new Label(
tr("Fetch updates from the repositories to retrieve latest script versions"));
this.refreshRepositoriesLabel.setWrapText(true);
this.refreshRepositoriesButton = new Button(tr("Refresh Repositories"));
this.refreshRepositoriesButton.setOnAction(event -> {
this.vBox.setDisable(true);
this.overlay.toFront();
repositoryManager.triggerRepositoryChange();
});
this.refreshLayout.add(refreshRepositoriesLabel, 0, 0);
this.refreshLayout.add(refreshRepositoriesButton, 1, 0);
GridPane.setHgrow(refreshRepositoriesLabel, Priority.ALWAYS);
}
代码示例来源:origin: stackoverflow.com
box.setAlignment(Pos.CENTER);
bx.setDisable(true);
root.getChildren().add(box);
内容来源于网络,如有侵权,请联系作者删除!