private void buildContent() { try { final VLViewComponentXML rootComp = getRootComponent(); if (rootComp != null) { final String contentRootStructure = rootComp.getPropertyValue("contentRootStructure"); if (StringUtils.isNotBlank(contentRootStructure)) { rootStructureContentController = RootStructureContentUtils.forId(contentRootStructure, this); contentStack.getChildren().add(rootStructureContentController.processedView()); } } } catch (final Exception e) { e.printStackTrace(); } }
String pushedContentWrapperAnchors = null; final Optional<VLViewComponentXML> anchorsConfig = getRootComponent().getComponentById("RootStructureComponentAnchors"); if (anchorsConfig != null && anchorsConfig.isPresent()) { final VLViewComponentXML anchorsConf = anchorsConfig.get();
private void buildHeader() { try { final VLViewComponentXML rootComp = getRootComponent(); if (rootComp != null) { final String headerId = rootComp.getPropertyValue(HEADER_VIEW); if (StringUtils.isNotBlank(headerId)) { final StandardViewController header = StandardViewUtils.forId(this, headerId); Platform.runLater(() -> { headerStack.getChildren().add(header.processedView()); headerStack.managedProperty().bind(headerStack.visibleProperty()); headerStack.setVisible(headerStack.getChildren().size() > 0); }); } else { headerLess = true; headerStack.setVisible(false); headerStack.setManaged(false); AnchorPane.setTopAnchor(rootStructureWrapper, 0.); } NodeHelper.styleClassAddAll(headerStack, rootComp, "headerStyleClass"); } } catch (final Exception e) { e.printStackTrace(); } }
public void buildPrimaryMenu() { final VLViewComponentXML rootComp = getRootComponent(); if (rootComp != null) { final String primaryMenuId = rootComp.getPropertyValue(PRIMARY_MENU_VIEW);