@Override protected void process() { super.process(); doBuildLeftPane(); doBuildRightPane(); }
/** * @{inheritedDoc} */ @Override public Node getNodeOnPosition(ViewLayoutPosition position) { if (position == ViewLayoutPosition.LEFT) { return layout; } if (position == ViewLayoutPosition.RIGHT) { return rightPane; } return super.getNodeOnPosition(position); }
/** * @{inheritedDoc} */ @Override public VLViewComponentXML getConfiguration() { return getRootComponent(); } }
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()); } }
/** * {@inheritDoc} */ @Override public void doBuildRightPane() { super.doBuildRightPane(); }
/** * {@inheritDoc} */ @Override public synchronized <T extends GenericEvent> void handle(T e) { super.handle(e); if (e.isA(CoreEvent.BuildRSContentEvent)) { BuildRSContentEvent ev = (BuildRSContentEvent) e; if (ev.isReinit()) { reinit(); } if (Platform.isFxApplicationThread()) { hideCurrentView(); } else { Platform.runLater(() -> hideCurrentView()); } String id = ev.getViewId(); BuildStandardViewControllerTask task = new BuildStandardViewControllerTask(id); new Thread(task).start(); } }
@Override protected void process() { super.process(); doBuildCopyRight(); doBuildTop(); if (topSection != null) { layout.getChildren().addAll(topSection.getDisplay(),leftPane, NodeHelper.verticalSpacer()); } else { layout.getChildren().addAll(leftPane, NodeHelper.verticalSpacer()); } layout.getChildren().add(copyright); layout.setStyle("-fx-background-color:-primary-color;-fx-border-width:0 1 0 0;" + "-fx-border-color:derive(-primary-color,10%);-fx-padding:32 0 0 0"); NodeHelper.setVgrow(layout); holder.addListener((a, b, c) -> { if (c != null) { rightHistory.add(c); display(c); } else { hideCurrentView(); } }); }
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(); } }