public void doBuildRightPane() { try { righSection = (FullTableViewController) StandardViewUtils.forId(getRootStructure(), structureContentController, rightSectionView); Platform.runLater(() -> { final Node rightSectionNode = righSection.processedView(); rightSectionNode.setCache(true); rightSectionNode.setCacheHint(CacheHint.SPEED); rightPane.getChildren().clear(); rightPane.getChildren().add(rightSectionNode); }); } catch (final Exception ex) { ex.printStackTrace(); } }
/** * @{inheritedDoc} */ @Override protected void process() { super.process(); final String leftSectionView = getRootComponent().getPropertyValue("leftSectionView"); if (StringUtils.isNotBlank(leftSectionView)) { leftSection = (FullTreeViewController) StandardViewUtils.forId(getRootStructure(), structureContentController, leftSectionView); final String location = leftSection.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { } leftSection.selectedElementProperty().addListener((ChangeListener<OperationData>) (observable, oldValue, newValue) -> { final OperationData selectedModel = newValue; if (selectedModel != null) { getStructureContent().setFormModelData(selectedModel); getStructureContent().setForModelId((String) selectedModel.getAttributes().get("fullId")); final SingleResult result = new SingleResult(); result.setData(selectedModel); righSection.setModel(result); righSection.forceLoadFirstPage(); } }); leftPane.getChildren().add(leftSection.processedView()); } rightSectionView = getRootComponent().getPropertyValue("rightSectionView"); doBuildRightPane(); NodeHelper.styleClassSetAll(leftPane, getRootComponent(), "leftSectionAreaStyleClass", ""); NodeHelper.styleClassSetAll(rightPane, getRootComponent(), "rightSectionAreaStyleClass", ""); }