public AbstractViewController getContent(String rootViewId) { final AbstractViewController controller = StandardViewUtils.forId(getController().getRootStructure(), getController().getStructureContent(), rootViewId); controller.setParent(getController()); if (tabPaneController instanceof StandardTabPaneController) { ((StandardTabPaneController) tabPaneController).addBuildedTabsController(controller); } return controller; }
public void loadContent(Pane centerViewContent, String rootViewId) { final AbstractViewController controller = StandardViewUtils.forId(getController().getRootStructure(), getController().getStructureContent(), rootViewId); if (tabPaneController instanceof StandardTabPaneController) { ((StandardTabPaneController) tabPaneController).addBuildedTabsController(controller); } content = controller.processedView(); Platform.runLater(() -> { centerViewContent.getChildren().clear(); NodeHelper.setHVGrow(centerViewContent); centerViewContent.getChildren().add(content); }); }