/** * @{inheritedDoc} */ @Override public void postProcess() { super.postProcess(); AbstractTableStructure table = (AbstractTableStructure) processedElement(); if (table == null) { // processedElement(getTableStructure()); } if (table instanceof FlowContent) { } }
@Bean @Named("DemoMobileListExample5View") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/flow/DemoMobileListExample5View.xml"}) public FullFlowViewController DemoMobileListExample5View() { FullFlowViewController controller = new FullFlowViewController(); controller.setLayoutManager((IViewLayoutManager) Services.getBean("DemoScrolLessCenteredFullFlowLayoutManager")); controller.setMessageSource((MessageSource) Services.getBean("FlowMessageSource")); controller.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); controller.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/flow/DemoMobileListExample5View.json"); return controller; } }
private void onModelChange(ObservableValue<?> observable, Object oldValue, Object newValue) { if (rootModel == null) { rootModel = (IOperationResult) oldValue; } forceLoadFirstPage(); modelChanged(); }
public void navigate(OperationData operationData) { SingleResult newmodel = new SingleResult(); newmodel.setData(operationData); setModel(newmodel); }
/** * @{inheritedDoc} */ @Override protected void process() { super.process(); // listen on model change ChangeListener<Object> cl2 = this::onModelChange; modelProperty().addListener(cl2); }
@Bean @Named("DemoMobileListExample3View") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/flow/DemoMobileListExample3View.xml"}) public FullFlowViewController DemoMobileListExample3View() { FullFlowViewController controller = new FullFlowViewController(); controller.setLayoutManager((IViewLayoutManager) Services.getBean("DemoScrolLessCenteredFullFlowLayoutManager")); controller.setMessageSource((MessageSource) Services.getBean("FlowMessageSource")); controller.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); controller.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/flow/DemoMobileListExample3View.json"); return controller; }
/** * Needed when displayed along side with table to display datas related to this table. */ public OperationData getFirstElement() { SingleTableStructure table = (SingleTableStructure) processedElement(); if (table.elementsCountProperty().get() > 0) { return table.getFirstItem(); } return null; }
@Bean @Named("DemoMobileListExample4View") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/flow/DemoMobileListExample4View.xml"}) public FullFlowViewController DemoMobileListExample4View() { FullFlowViewController controller = new FullFlowViewController(); controller.setLayoutManager((IViewLayoutManager) Services.getBean("DemoScrolLessCenteredFullFlowLayoutManager")); controller.setMessageSource((MessageSource) Services.getBean("FlowMessageSource")); controller.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); controller.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/flow/DemoMobileListExample4View.json"); return controller; }
/** * @{inheritedDoc} */ @Override public Node getNodeOnPosition(ViewLayoutPosition position) { AbstractTableStructure table = (AbstractTableStructure) processedElement(); if (position == ViewLayoutPosition.TOP) { if (table != null && table.getHeader() != null) { return table.getHeader().getDisplay(); } } if (position == ViewLayoutPosition.BOTTOM) { if (table != null && table.getPagination().isPresent()) { return table.getPagination().get(); } } if (position == ViewLayoutPosition.CENTER) { return table.getTableStructure(); } return super.getNodeOnPosition(position); }
@Bean @Named("DemoMobileContentFlowView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/list/DemoMobileListView.xml"}) public FullFlowViewController mobileLayoutRSView() { FullFlowViewController controller = new FullFlowViewController(); controller.setLayoutManager((IViewLayoutManager) BeanFactory.instance().getBean("DemoMobileContentFlowViewLayoutManager")); controller.setModelProvider((IModelProvider) BeanFactory.instance().getBean("RootStructureModelLoader")); controller.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/list/DemoMobileListView.json"); return controller; }
AbstractTableStructure ts =(AbstractTableStructure) ((FullFlowViewController)leftPaneController).processedElement(); ts.getItems().remove(data); AbstractTableStructure ts =(AbstractTableStructure) ((FullFlowViewController)leftPaneController).processedElement(); ts.getItems().add(roleB);