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

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

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

VBox.managedProperty介绍

暂无

代码示例

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

  1. @Inject
  2. public ContentPane(WorkArea modules, Dashboard dashboard, NewsPanel news,
  3. @Named("defaultDashboardItemId") String defaultDasboardItem) {
  4. this.modules = modules;
  5. this.dashboard = dashboard;
  6. this.newsContainer = new VBox(news);
  7. this.newsContainer.getStyleClass().add("news-container");
  8. StackPane stack = new StackPane(modules, dashboard);
  9. setHgrow(stack, Priority.ALWAYS);
  10. newsContainer.managedProperty().bind(newsContainer.visibleProperty());
  11. newsContainer.setVisible(false);
  12. fadeIn = new FadeTransition(new Duration(300), newsContainer);
  13. fadeIn.setFromValue(0);
  14. fadeIn.setToValue(1);
  15. fadeOut = new FadeTransition(new Duration(300), newsContainer);
  16. fadeOut.setFromValue(1);
  17. fadeOut.setToValue(0);
  18. fadeOut.setOnFinished(e -> {
  19. newsContainer.setVisible(false);
  20. });
  21. getChildren().addAll(stack, newsContainer);
  22. eventStudio().addAnnotatedListeners(this);
  23. eventStudio().broadcast(new SetActiveDashboardItemRequest(defaultDasboardItem));
  24. }

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

  1. /**
  2. * Constructor
  3. */
  4. public FiedsetSelectorMenuRow() {
  5. getStyleClass().add("fieldset-selector-menu-row-wrapper");
  6. subMenu.managedProperty().bind(subMenu.visibleProperty());
  7. subMenu.getStyleClass().add("fieldset-selector-submenu-row-wrapper");
  8. subMenu.setVisible(false);
  9. getChildren().add(rowslayout);
  10. expandCollapseIcon.visibleProperty().bind(Bindings.size(submenus).greaterThan(0));
  11. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void build(VLViewComponentXML blocConfig, IEmaginController controller) {
  6. final String rootView = blocConfig.getPropertyValue("viewId");
  7. if (StringUtils.isNotBlank(rootView)) {
  8. processedController = StandardViewUtils.forId((RootStructureController)controller.getRootStructure(), ((AbstractViewController) controller).getStructureContent(), rootView);
  9. final Pane processed = (Pane) processedController.processedView();
  10. Platform.runLater(() -> {
  11. wrapper.getChildren().add(processed);
  12. wrapper.managedProperty().bindBidirectional(wrapper.visibleProperty());
  13. NodeHelper.setHVGrow(wrapper, processed);
  14. });
  15. }
  16. }

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

  1. /**
  2. * When row on tableviw is selected this pane is shown on the right side. Make it smarter!! If on
  3. * mobile view, i should be show over the table view.
  4. */
  5. private void buildRightPane() {
  6. rightPane.setStyle("-fx-background-color: white;" + "-fx-border-color: -divider-color; " + "-fx-border-width:0.5;" + "-fx-min-width: 500;");
  7. rightPane.managedProperty().bind(rightPane.visibleProperty());
  8. rightPane.setVisible(false);
  9. // setRight(rightPane);
  10. tableView.setRowFactory(param -> {
  11. final TableRow tableRow = new TableRow<>();
  12. tableRow.addEventFilter(MouseEvent.MOUSE_CLICKED, mouseClicked -> {
  13. if (mouseClicked.getClickCount() == 2) {
  14. rightPane.setVisible(true);
  15. final SimpleDetailsPane condensedDetailsPane = new SimpleDetailsPane();
  16. rightPane.getChildren().clear();
  17. rightPane.getChildren().add(condensedDetailsPane);
  18. }
  19. });
  20. return tableRow;
  21. });
  22. }

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

  1. /**
  2. * When row on tableviw is selected this pane is shown on the right side. Make it smarter!! If on
  3. * mobile view, i should be show over the table view.
  4. */
  5. private void buildRightPane() {
  6. rightPane.setStyle("-fx-background-color: white;" + "-fx-border-color: -divider-color; " + "-fx-border-width:0.5;" + "-fx-min-width: 500;");
  7. rightPane.managedProperty().bind(rightPane.visibleProperty());
  8. rightPane.setVisible(false);
  9. // setRight(rightPane);
  10. tableView.setRowFactory(param -> {
  11. final TableRow tableRow = new TableRow<>();
  12. tableRow.addEventFilter(MouseEvent.MOUSE_CLICKED, mouseClicked -> {
  13. if (mouseClicked.getClickCount() == 2) {
  14. rightPane.setVisible(true);
  15. final SimpleDetailsPane condensedDetailsPane = new SimpleDetailsPane();
  16. rightPane.getChildren().clear();
  17. rightPane.getChildren().add(condensedDetailsPane);
  18. }
  19. });
  20. return tableRow;
  21. });
  22. }

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

  1. subMenu.managedProperty().bind(subMenu.visibleProperty());

相关文章