/** * @{inheritedDoc} */ @Override public VLViewComponentXML getConfiguration() { return getRootComponent(); }
public void loadDetailsView() { try { final StandardViewController righSection = StandardViewUtils.forId(getRootStructure(), structureContentController, detailsView); final String location = righSection.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { final String loc = righSection.getLocalised(location); // contentLocation.set(loc); } Platform.runLater(() -> { rightPane.setCache(true); rightPane.setCacheHint(CacheHint.SPEED); rightPane.getChildren().clear(); rightPane.getChildren().add(righSection.processedView()); }); } catch (final Exception ex) { // TODO: handle exception ex.printStackTrace(); } }
public void loadDetailsView() { try { final StandardViewController righSection = StandardViewUtils.forId(getRootStructure(), structureContentController, detailsView); final String location = righSection.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { final String loc = righSection.getLocalised(location); // contentLocation.set(loc); } Platform.runLater(() -> { rightPane.setCache(true); rightPane.setCacheHint(CacheHint.SPEED); rightPane.getChildren().clear(); rightPane.getChildren().add(righSection.processedView()); topPane.getChildren().clear(); }); } catch (final Exception ex) { ex.printStackTrace(); } }
public void doBuildRightPane() { final String rightSectionView = getRootComponent().getPropertyValue("rightSectionView"); if (StringUtils.isNotBlank(rightSectionView)) { rightPaneController = StandardViewUtils.forId(getRootStructure(), structureContentController, rightSectionView); rightPaneController.setParent(this); NodeHelper.styleClassSetAll(rightPane, getRootComponent(), "rightSectionAreaStyleClass", ""); final String location = rightPaneController.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { } Platform.runLater(() -> { rightPane.getChildren().add(rightPaneController.processedView()); }); } }
public void doBuildLeftPane() { final String leftSectionView = getRootComponent().getPropertyValue("leftSectionView"); if (StringUtils.isNotBlank(leftSectionView)) { try { leftPaneController = StandardViewUtils.forId(getRootStructure(), structureContentController, leftSectionView); leftPaneController.setParent(this); //NodeHelper.styleClassSetAll(leftPane, getRootComponent(), "leftSectionAreaStyleClass", ""); final String location = leftPaneController.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { } if(leftPaneController instanceof FullTableStructureController) { leftPaneController.getStructureContent().setCurrentEditingTableStructure(leftPaneController); } final ChangeListener<OperationData> cl = (ChangeListener<OperationData>) (observable, oldValue, newValue) -> { final OperationData selectedModel = newValue; leftPaneSelectedElementChange(selectedModel); }; // update model of right pane when left pane // selection is modified. // do not change the structure content model reference!! leftPaneController.selectedElementProperty().addListener(cl); Platform.runLater(() -> { leftPane.getChildren().add(leftPaneController.processedView()); }); } catch (Exception e) { e.printStackTrace(); } } }
public void doBuildLeftPane() { final String leftSectionView = getRootComponent().getPropertyValue("leftSectionView"); if (StringUtils.isNotBlank(leftSectionView)) { leftPaneController = StandardViewUtils.forId(getRootStructure(), structureContentController, leftSectionView); leftPaneController.setParent(this); NodeHelper.styleClassSetAll(leftPane, getRootComponent(), "leftSectionAreaStyleClass", ""); final String location = leftPaneController.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { } final ChangeListener<OperationData> cl = (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); tableViewController.setModel(result); } }; leftPaneController.selectedElementProperty().addListener(cl); Platform.runLater(() -> { leftPane.getChildren().add(leftPaneController.processedView()); }); } }
leftSection = StandardViewUtils.forId(getRootStructure(), structureContentController, leftSectionView); final String location = leftSection.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { final String loc = leftSection.getLocalised(location);
if (view.getRootComponent() != null) { final String rootStructureContentStyleClass = view.getRootComponent().getPropertyValue("rootStructureContentStyleClass"); if (StringUtils.isNotBlank(rootStructureContentStyleClass)) { rootStructure.getContentRootPane().getStyleClass().setAll(rootStructureContentStyleClass.split(","));