/** * {@inheritDoc} */ @Override protected void process() { super.process(); if (processedView() == null) { processedView(new StackPane()); } }
/** * @{inheritedDoc} */ @Override public void postProcess() { super.postProcess(); if (layoutManager != null) { layoutManager.layout(this); processedView(layoutManager.getDisplay()); } }
public void doBuildLeftPane() { final String leftSectionView = getRootComponent().getPropertyValue("leftSectionView"); if (StringUtils.isNotBlank(leftSectionView)) { leftController = StandardViewUtils.forId(getRootStructure(), structureContentController, leftSectionView); leftController.setParent(this); NodeHelper.styleClassSetAll(leftPane, getRootComponent(), "leftSectionAreaStyleClass", "ep-two-hpanes-with-left-menu-wrapper"); leftPane.getChildren().add(leftController.processedView()); } }
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(); } }
@Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { super.buildFrom(controller, configuration); String view = "FolderPickerFlowView"; StandardViewController c = StandardViewUtils.forId((RootStructureController) controller.getRootStructure(), view); display = c.processedView(); c.setParent((AbstractViewController) controller); c.selectedElementProperty().addListener(new ChangeListener<OperationData>() { @Override public void changed(ObservableValue<? extends OperationData> observable, OperationData oldValue, OperationData newValue) { if(newValue == null) { } else { String folderOid = (String) newValue.getAttributes().get("fullId"); String folderPath = (String) newValue.getAttributes().get("path"); owner.initialInternalValueProperty().set(folderPath); owner.currentInternalValueProperty().set(folderPath); } } }); }
public void doBuildCenterPane() { try { centerSectionView = getRootComponent().getPropertyValue("centerSectionView"); if (StringUtils.isNotBlank(centerSectionView)) { centerViewController = StandardViewUtils.forId(getRootStructure(), structureContentController, centerSectionView); NodeHelper.styleClassSetAll(rightPane, getRootComponent(), "centerSectionAreaStyleClass", ""); centerViewController.setParent(this); Platform.runLater(() -> { final Node centerSectionNode = centerViewController.processedView(); centerSectionNode.setCache(true); centerSectionNode.setCacheHint(CacheHint.SPEED); centerPane.getChildren().clear(); centerPane.getChildren().add(centerSectionNode); }); } } catch (final Exception ex) { 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() { try { final String rightSectionView = getRootComponent().getPropertyValue("rightSectionView"); if (StringUtils.isNotBlank(rightSectionView)) { rightController = StandardViewUtils.forId(getRootStructure(), structureContentController, rightSectionView); NodeHelper.styleClassSetAll(rightPane, getRootComponent(), "rightSectionAreaStyleClass", ""); rightController.setParent(this); Platform.runLater(() -> { final Node rightSectionNode = rightController.processedView(); rightSectionNode.setCache(true); rightSectionNode.setCacheHint(CacheHint.SPEED); rightPane.getChildren().clear(); rightPane.getChildren().add(rightSectionNode); }); } } 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()); }); } }
Node toDisplay = c.processedView(); toDisplay.setOpacity(1); toDisplay.setCache(true); Node dox = c.processedView(); NodeHelper.setVgrow(dox); layout.getChildren().addAll(head, dox);
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(); } }
if (StringUtils.isNotBlank(headerTopSection)) { StandardViewController top = StandardViewUtils.forId(getRootStructure(), null, headerTopSection); headerTopSectionHbox.getChildren().add(top.processedView()); if (StringUtils.isNotBlank(headerTopSection)) { StandardViewController bottom = StandardViewUtils.forId(getRootStructure(), null, headerBottomSection); headerBottomSectionHbox.getChildren().add(bottom.processedView());
public void doBuildRightPane() { try { rightSectionView = getRootComponent().getPropertyValue("rightSectionView"); if (StringUtils.isNotBlank(rightSectionView)) { tableViewController = StandardViewUtils.forId(getRootStructure(), structureContentController, rightSectionView); NodeHelper.styleClassSetAll(rightPane, getRootComponent(), "rightSectionAreaStyleClass", ""); if(tableViewController instanceof FullTableStructureController) { tableViewController.getStructureContent().setCurrentEditingTableStructure(tableViewController); } tableViewController.setParent(this); // tableViewController.forceLoadFirstPage(); Platform.runLater(() -> { final Node rightSectionNode = tableViewController.processedView(); rightSectionNode.setCache(true); rightSectionNode.setCacheHint(CacheHint.SPEED); rightPane.getChildren().clear(); rightPane.getChildren().add(rightSectionNode); }); } } catch (final Exception ex) { ex.printStackTrace(); } }
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(); } } }
view.setParent(controller); Platform.runLater(()->{ lm.pushContent(view.processedView()); });
/** * @{inheritedDoc} */ @Override protected void process() { super.process(); final String leftSectionView = getRootComponent().getPropertyValue("leftSectionView"); final String emptyView = getRootComponent().getPropertyValue("emptyView"); if (StringUtils.isNotBlank(leftSectionView)) { leftSection = (StandardTabPaneController) StandardViewUtils.forId(getRootStructure(), structureContentController, leftSectionView); final String location = leftSection.getRootComponent().getPropertyValue("location"); if (StringUtils.isNotBlank(location)) { final String loc = leftSection.getLocalised(location); } leftSection.selectedElementProperty().addListener((ChangeListener<OperationData>) (observable, oldValue, newValue) -> { selectedModel = newValue; if (selectedModel != null) { getStructureContent().setFormModelData(selectedModel); getStructureContent().setForModelId((String) selectedModel.getAttributes().get("fullId")); loadDetailsTask(); } }); leftPane.getChildren().add(leftSection.processedView()); } if (StringUtils.isNotBlank(emptyView)) { emptyDetails = StandardViewUtils.forId(getRootStructure(), structureContentController, emptyView); rightPane.getChildren().add(emptyDetails.processedView()); } }
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()); }); } }
leftPane.getChildren().add(leftSection.processedView());
if (StringUtils.isNotBlank(leftMenuView)) { final StandardViewController view = StandardViewUtils.forId(rootStructure, leftMenuView); rootStructure.setLeftMenuContent(view.processedView());
structureContent.processedView(view.processedView()); event.setProcessedContent(structureContent);