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()); } }
@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 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()); }); } }
controller.setParent(parent); loadModel(controller);
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(); } } }
ViewForwardLayoutManager lm = (ViewForwardLayoutManager) ((StandardController)controller.getParent()).getLayoutManager(); final StandardViewController view = StandardViewUtils.forId(controller.getRootStructure(), "SelfSelectPreferenceValueView", model); view.setParent(controller); Platform.runLater(()->{ lm.pushContent(view.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()); }); } }
@Override public synchronized <T extends GenericEvent> void handle(T e) { super.handle(e); VLTabpane tabpane = (VLTabpane) buildable; if (e.isA(CoreEvent.PopTabContentEvent)) { tabpane.popCurrentContent(false); } else if (e.isA(CoreEvent.PushTabContentEvent)) { PushTabContentEvent ev = (PushTabContentEvent) e; if (ev.getParentController() == this) { String viewId = ev.getProperty("viewId"); if (StringUtils.isNotBlank(viewId)) { final StandardViewController view = StandardViewUtils.forId(rootStructure, viewId, (OperationData) ev.getModel()); view.setParent(this); tabpane.pushCurrentContent(view); UpdateCurrentLocationEvent ucl = new UpdateCurrentLocationEvent(); ucl.setHasPrevious(true); ucl.setSourceController(view); ucl.setTabContentNavigation(true); ((AbstractViewController) getController()).dispatchEvent(ucl); } } } }