本文整理了Java中javafx.scene.layout.VBox.setVisible()
方法的一些代码示例,展示了VBox.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VBox.setVisible()
方法的具体详情如下:
包路径:javafx.scene.layout.VBox
类名称:VBox
方法名:setVisible
暂无
代码示例来源:origin: torakiki/pdfsam
@EventListener(priority = Integer.MIN_VALUE)
@SuppressWarnings("unused")
public void onShowNewsPanel(ShowNewsPanelRequest request) {
if (!newsContainer.isVisible()) {
newsContainer.setVisible(true);
fadeIn.play();
}
}
代码示例来源: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: 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: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* When row on tableviw is selected this pane is shown on the right side. Make it smarter!! If on
* mobile view, i should be show over the table view.
*/
private void buildRightPane() {
rightPane.setStyle("-fx-background-color: white;" + "-fx-border-color: -divider-color; " + "-fx-border-width:0.5;" + "-fx-min-width: 500;");
rightPane.managedProperty().bind(rightPane.visibleProperty());
rightPane.setVisible(false);
// setRight(rightPane);
tableView.setRowFactory(param -> {
final TableRow tableRow = new TableRow<>();
tableRow.addEventFilter(MouseEvent.MOUSE_CLICKED, mouseClicked -> {
if (mouseClicked.getClickCount() == 2) {
rightPane.setVisible(true);
final SimpleDetailsPane condensedDetailsPane = new SimpleDetailsPane();
rightPane.getChildren().clear();
rightPane.getChildren().add(condensedDetailsPane);
}
});
return tableRow;
});
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* When row on tableviw is selected this pane is shown on the right side. Make it smarter!! If on
* mobile view, i should be show over the table view.
*/
private void buildRightPane() {
rightPane.setStyle("-fx-background-color: white;" + "-fx-border-color: -divider-color; " + "-fx-border-width:0.5;" + "-fx-min-width: 500;");
rightPane.managedProperty().bind(rightPane.visibleProperty());
rightPane.setVisible(false);
// setRight(rightPane);
tableView.setRowFactory(param -> {
final TableRow tableRow = new TableRow<>();
tableRow.addEventFilter(MouseEvent.MOUSE_CLICKED, mouseClicked -> {
if (mouseClicked.getClickCount() == 2) {
rightPane.setVisible(true);
final SimpleDetailsPane condensedDetailsPane = new SimpleDetailsPane();
rightPane.getChildren().clear();
rightPane.getChildren().add(condensedDetailsPane);
}
});
return tableRow;
});
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
super(control);
this.box = new VBox();
this.box.setVisible(false);
this.box.setPadding(new Insets(10));
this.preview = new StackPane();
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
super(control);
this.box = new VBox();
this.box.setVisible(false);
this.box.setPadding(new Insets(10));
this.preview = new StackPane();
代码示例来源:origin: stackoverflow.com
private Popup addExitPopup(){
Popup exitPopup = new Popup();
//Exit Panel
VBox exitBox = new VBox();
exitBox.setPadding(new Insets(10));
Button exitPaneExit = new Button();
exitPaneExit.setText("Return");
exitPaneExit.setMinSize(75.0, 30.0);
exitPaneExit.setOnAction(e -> {
exitPopup.hide();
});
Button exitButton = new Button();
exitButton.setText("Exit");
exitButton.setMinSize(75.0, 30.0);
exitButton.setOnAction(e -> {
System.exit(0);
});
exitBox.getChildren().addAll(exitPaneExit,exitButton);
exitBox.setVisible(true);
exitPopup.setAutoHide(true);
exitPopup.getContent().add(exitBox);
return exitPopup;
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
this.imageSizeValue);
if (item != null) {
this.box.setVisible(true);
this.nameProperty.setText(item.getName());
this.box.setVisible(false);
this.preview.getChildren().clear();
this.nameProperty.setText(null);
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
this.imageSizeValue);
if (item != null) {
this.box.setVisible(true);
this.nameProperty.setText(item.getName());
this.box.setVisible(false);
this.preview.getChildren().clear();
this.nameProperty.setText(null);
内容来源于网络,如有侵权,请联系作者删除!