public void doBuildCenterPane() { try { centerSectionView = getRootComponent().getPropertyValue("centerSectionView"); if (StringUtils.isNotBlank(centerSectionView)) { tableViewController = (FullTableViewController) StandardViewUtils.forId(getRootStructure(), structureContentController, centerSectionView); NodeHelper.styleClassSetAll(centerPane, getRootComponent(), "centerSectionAreaStyleClass", ""); tableViewController.getStructureContent().setCurrentEditingTableStructure(tableViewController); tableViewController.setParent(this); tableViewController.forceLoadFirstPage(); Platform.runLater(() -> { final Node centerSectionNode = tableViewController.processedView(); centerSectionNode.setCache(true); centerSectionNode.setCacheHint(CacheHint.SPEED); centerPane.getChildren().clear(); centerPane.getChildren().add(centerSectionNode); }); } } catch (final Exception ex) { ex.printStackTrace(); } }
/** * @{inheritedDoc} */ @Override public void execute(IActionRequest actionRequest, Optional<IActionResult> previousActionResult) { FullTableViewController controller = (FullTableViewController) actionRequest.getController(); OperationData model = controller.getSelectedModel(); String viewId = (String) actionRequest.getProperty("toViewId"); if (com.nexitia.emaginplatform.core.commons.utils.StringUtils.isNotBlank(viewId)) { AbstractViewController qq = StandardViewUtils.forId(controller.getRootStructure(), controller.getStructureContent(), viewId); controller.pushContent(null, qq.processedView()); } else { controller.pushContent(null, new StackPane()); } resultProperty.set(ActionResult.success()); }