@Bean @Named("DemoPreferencesUserThemingTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesUserThemingTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesUserThemingTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesUserThemingTabPaneView.json"); return p; }
@Bean @Named("DemoMobileMenuView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/menu/DemoMobileMenuView.xml"}) public StandardController DemoMobileMenuView() { StandardController controller = new StandardController(); controller.setMessageSource((MessageSource) Services.getBean("MobileMessageSource")); controller.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); controller.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/menu/DemoMobileMenuView.json"); return controller; }
@Override public Node getNodeOnPosition(ViewLayoutPosition position) { if (position == ViewLayoutPosition.CENTER) { return layout; } return super.getNodeOnPosition(position); }
@Override protected void process() { super.process(); mapInitialized(); processedView(layout); }
/** * @{inheritedDoc} */ @Override public void postProcess() { super.postProcess(); if (processedView() == null) { processedView(new StackPane()); } } }
if(((StandardController)controller).getLayoutManager() instanceof ViewForwardLayoutManager) { ViewForwardLayoutManager lm = (ViewForwardLayoutManager) ((StandardController)controller.getParent()).getLayoutManager(); final StandardViewController view = StandardViewUtils.forId(controller.getRootStructure(), "SelfSelectPreferenceValueView", model); view.setParent(controller);
@Override protected void process() { super.process();
/** * @{inheritedDoc} */ @Override public Node getNodeOnPosition(ViewLayoutPosition position) { if (position == ViewLayoutPosition.CENTER) { return processedView(); } return super.getNodeOnPosition(position); }
@Bean @Named("DemoPreferencesRegionalGroupTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesRegionalGroupTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesRegionalGroupTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesRegionalGroupTabPaneView.json"); return p; }
@Bean @Named("DemoSelfMaquette2DTabView") @View(locations = {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/maximized/DemoMaquette2DContentView.xml"}, outputFilePath = "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details") public StandardViewController DemoMaquette2DContentView() { StandardController pmc = new StandardController(); pmc.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); pmc.setMessageSource((MessageSource) Services.getBean("DetailsViewMessageSource")); pmc.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details/DemoMaquette2DContentView.json"); return pmc; }
@Bean @Named("DemoPreferencesUserNotificationsTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesUserNotificationsTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesUserNotificationsTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesUserNotificationsTabPaneView.json"); return p; }
@Bean @Named("DemoSelfIllustrationTabView") @View(locations = {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/maximized/DemoMaximizedIllustrationView.xml", "/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/self/DemoSelfIllustrationTabView.xml"}, outputFilePath = "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details") public StandardController DemoSelfIllustrationTabView() { StandardController pmc = new StandardController(); pmc.setLayoutManager((IViewLayoutManager) Services.getBean("FullTabPaneLayoutManager")); pmc.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); pmc.setMessageSource((MessageSource) Services.getBean("DetailsViewMessageSource")); pmc.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details/DemoMaximizedIllustrationView.json"); return pmc; }
@Bean @Named("DemoEmptyPrefenceView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoEmptyPrefenceView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoEmptyPrefenceView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoEmptyPrefenceView.json"); return p; }
@Bean @Named("DemoSelfMaquette3DTabView") @View(locations = {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/maximized/DemoMaquette3DContentView.xml", "/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/self/DemoSelfMaquette3DTabView.xml"}, outputFilePath = "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details") public StandardViewController DemoSelfMaquette3DTabView() { StandardController pmc = new StandardController(); pmc.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); pmc.setMessageSource((MessageSource) Services.getBean("DetailsViewMessageSource")); pmc.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details/DemoMaquette3DContentView.json"); return pmc; }
@Bean @Named("LicenceView") @View(locations= {"/com/emagin/jfx/core/components/cachedatas/LicenceView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController LicenceView() { StandardController p = new StandardController(); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/LicenceView.json"); return p; }
@Bean @Named("ThanksToView") @View(locations= {"/com/emagin/jfx/core/components/cachedatas/ThanksToView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController ThanksToView() { StandardController p = new StandardController(); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/ThanksToView.json"); return p; }
@Bean @Named("DemoPreferencesGeneralGroupTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesGeneralGroupTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesGeneralGroupTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesGeneralGroupTabPaneView.json"); return p; }
@Bean @Named("DemoPreferencesThemingPrimaryTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesThemingPrimaryTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesThemingPrimaryTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesThemingPrimaryTabPaneView.json"); return p; }
@Bean @Named("DemoPreferencesThemingAccentTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesThemingAccentTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesThemingAccentTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesThemingAccentTabPaneView.json"); return p; }
@Bean @Named("DemoPreferencesInformationGroupTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/DemoPreferencesInformationGroupTabPaneView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public StandardController DemoPreferencesInformationGroupTabPaneView() { StandardController p = new StandardController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("StructureContentModelReference")); p.setLayoutManager((IViewLayoutManager) Services.getBean("CenteredStretchedForwardViewLayoutManager")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoPreferencesInformationGroupTabPaneView.json"); return p; }