protected void buildPanes() { doBuildLeftPane(); doBuildRightPane(); doBuildCenterPane(); }
/** * @{inheritedDoc} */ @Override public VLViewComponentXML getConfiguration() { return getRootComponent(); } }
/** * Default Constructor */ public FlowWithTableContentViewController() { super(); registerListener(CoreEvent.ElementRemovedFromTableEvent); registerListener(CoreEvent.LinkCreatedEvent); registerListener(CoreEvent.LinkDeletedEvent); }
/** * @{inheritedDoc} */ @Override protected void process() { super.process(); if (getRootStructure().relativeToProperty().get() != null) { if (getStructureContentController().getFormModelData() == null) { getStructureContentController().setFormModelData(getRootStructure().relativeToProperty().get()); } } buildPanes(); }
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 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(); } }
/** * {@inheritDoc} */ @Override public void doBuildRightPane() { super.doBuildRightPane(); }
/** * {@inheritDoc} */ @Override public void doBuildLeftPane() { super.doBuildLeftPane(); }
/** * {@inheritDoc} */ @Override public void doBuildCenterPane() { super.doBuildCenterPane(); AbstractTableStructure ts = (AbstractTableStructure) leftPaneController.processedElement(); AbstractTableStructure ts2 = (AbstractTableStructure) getTableController().processedElement(); leftPaneController.selectedElementProperty().addListener(new ChangeListener<OperationData>() { @Override public void changed(ObservableValue<? extends OperationData> observable, OperationData oldValue, OperationData newValue) { if(newValue != null) { ts2.childTree().setAll(ts.childTree()); SingleResult sr = new SingleResult(); sr.setData(newValue); getTableController().setModel(sr); getTableController().refreshDatas(); } else { getTableController().getTableStructure().setNoContent(); } }}); getStructureContent().setCurrentEditingTableStructure(getTableController()); }
@Override public synchronized <T extends GenericEvent> void handle(T e) { super.handle(e); if(e.isA(CoreEvent.DeleteObjectFromStructureEvent)) { OperationData data = (OperationData) e.getModel();
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(); } }