/** * @author Ramilafananana VONJISOA * */ @BeansProvider @ConvertViewToJson public class CoreDetailsBeansProvider { }
/** * @author Ramilafananana VONJISOA * */ @BeansProvider public class CloudOperationsLocator { }
@GlobalComponents(source= {"classpath:/comp/CoreActions.xml","classpath:/comp/CoreActionsModel.xml", "classpath:/comp/CoreAttributes.xml", "classpath:/comp/CoreComponents.xml"}, destination="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/globalcomps") public void process() { //<value>/comp/CoreActions.xml</value> ///<value>/comp/CoreActionsModel.xml</value> //<value>/comp/CoreAttributes.xml</value> //<value>/comp/CoreColumns.xml</value> //<value>/comp/CoreTreeColumns.xml</value> //<value>/comp/CoreComponents.xml</value> } }
@Bean @Named("MobileLayoutRSView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/MobileLayoutRSView.xml"}) @I18n(locations = {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/globalcomps") public RootStructureController mobileLayoutRSView() { DoubleHeaderRootStructureController mobileLayoutRSView = new DoubleHeaderRootStructureController(); mobileLayoutRSView.setModelProvider((IModelProvider) BeanFactory.instance().getBean("RootStructureModelLoader")); mobileLayoutRSView.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/MobileLayoutRSView.json"); return mobileLayoutRSView; }
@Bean @Named("MobilePrimaryMenuProvider") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/rootstructure/MobilePrimaryMenuDefinition.xml"}) public PrimaryMenuProvider primaryMenuProvider() { PrimaryMenuProvider pmc = new PrimaryMenuProvider(); pmc.setPrimaryMenu("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/rootstructure/MobilePrimaryMenuDefinition.json"); return pmc; }
@CopyResource(source="/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/searchViews.properties", destination = "/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/mobile") public void copySearchConfig() { } }
/** * @author Ramilafananana VONJISOA * */ @CopyResources public class MandatoryResourcesProvider { @CopyResource(source="/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/searchViews.properties", destination = "/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/mobile") public void copySearchConfig() { } }
/** * @author Ramilafananana VONJISOA * */ @GlobalComponentsToJson public class GlobalComponentsProvider { @GlobalComponents(source= {"classpath:/comp/CoreActions.xml","classpath:/comp/CoreActionsModel.xml", "classpath:/comp/CoreAttributes.xml", "classpath:/comp/CoreComponents.xml"}, destination="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/globalcomps") public void process() { //<value>/comp/CoreActions.xml</value> ///<value>/comp/CoreActionsModel.xml</value> //<value>/comp/CoreAttributes.xml</value> //<value>/comp/CoreColumns.xml</value> //<value>/comp/CoreTreeColumns.xml</value> //<value>/comp/CoreComponents.xml</value> } }
@Bean @Named("MobileDashboardView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/dashboard/DemoDashboardView.xml", "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dashboard/MobileDashboardView.xml"}, outputFileName="MobileDashboardView.json", outputFilePath = "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dashboard") @I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/dashboard/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dashboard/") public AbstractViewController MobileDashboardView() { DashboardController controller = new DashboardController(); controller.setMessageSource((MessageSource) Services.getBean("DashboardMessageSource")); controller.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); controller.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dashboard/MobileDashboardView.json"); return controller; }
@Bean @Named("SearchFiltersInSecondaryRSContentView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/search/SearchFiltersInSecondaryRSContentView.xml"},outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/search") public RootStructureContentController searchFiltersInSecondaryRSContentView() { RootStructureContentController p = new RootStructureContentController(); p.setMessageSource((MessageSource) Services.getBean("SearchMessageSource")); p.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/search/SearchFiltersInSecondaryRSContentView.json"); return p; }
/** * @author Ramilafananana VONJISOA * */ @BeansProvider public class CoreI18NBeansProvider { @Bean @Singleton @Named("CoreMessageSource") public MessageSource rooStructureMessageSource() { MessageSource messageSource = new MessageSource(); messageSource.setUseCodeAsDefaultMessage(true); messageSource.setDefaultEncoding("UTF-8"); messageSource.getBasenames().add("com.nexitia.emaginplatform.jfx.core.engine.controller.localization"); messageSource.getBasenames().add("i18n.generalBundle"); return messageSource; } }
@Bean @Named("DemoMobilePreferencesRSView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoMobilePreferencesRSView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") @I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/preferences/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences") public RootStructureController DemoPreferencesRSView() { RootStructureController p = new RootStructureController(); p.setMessageSource((MessageSource) Services.getBean("PreferencesMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); p.getViewDefinitions().add("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/preferences/DemoMobilePreferencesRSView.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("DialogContentView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/dialog/DialogContentView.xml"}, outputFilePath="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dialog") @I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/dialog/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dialog/") public DemoDialogController DialogContentView() { DemoDialogController p = new DemoDialogController(); p.setMessageSource((MessageSource) Services.getBean("DialogMessageSource")); p.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); p.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/dialog/DialogContentView.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("MobilePrimaryMenuView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/rootstructure/MobilePrimaryMenuView.xml"}) @I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/rootstructure/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/rootstructure") public PrimaryMenuController mobilePrimaryMenuView() { PrimaryMenuController pmc = new PrimaryMenuController(); pmc.setMessageSource((MessageSource) Services.getBean("MobileMessageSource")); pmc.setMenuProvider((MenuConfigurationProvider) Services.getBean("MobilePrimaryMenuProvider")); pmc.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/rootstructure/MobilePrimaryMenuView.json"); return pmc; }
@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; } }
@Bean @Named("ShowDetailsInSecondaryRSView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/ShowDetailsInSecondaryRSView.xml"}, outputFilePath = "/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details") @I18n(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/desktop/details/message.properties"}, dest="/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details") public RootStructureController showDetailsInSecondaryRSView() { RootStructureController pmc = new RootStructureController(); pmc.setMessageSource((MessageSource) Services.getBean("DetailsViewMessageSource")); pmc.setModelProvider((IModelProvider) Services.getBean("RootStructureModelLoader")); pmc.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/details/ShowDetailsInSecondaryRSView.json"); return pmc; }
@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; }
@Bean @Named("MobileRootTabPaneView") @View(locations= {"/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/MobileRootTabPaneView.xml"}) public StandardTabPaneController mobileRootTabPaneView() { StandardTabPaneController tpv = new StandardTabPaneController(); tpv.setModelProvider((IModelProvider) BeanFactory.instance().getBean("RootStructureModelLoader")); tpv.setLayoutManager((IViewLayoutManager) BeanFactory.instance().getBean("FullTabPaneLayoutManager")); tpv.addViewDefinition("/com/nexitia/emaginplatform/jfx/core/demoapp/mobile/MobileRootTabPaneView.json"); return tpv; }