Package com.almis.awe.service.screen
Class ScreenComponentGenerator
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.screen.ScreenComponentGenerator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Generate the component controllers of the screen
-
Constructor Summary
ConstructorDescriptionScreenComponentGenerator
(AweRequest request, ScreenModelGenerator screenModelGenerator, InitialLoadDao initialLoadDao, AweElementsDao aweElementsDao, BaseConfigProperties baseConfigProperties, ScreenConfigurationGenerator screenConfigurationGenerator) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyOptionActions
(Menu menu) Apply option actions to menugenerateComponentMap
(Screen screen, ScreenData data, Menu menu, com.fasterxml.jackson.databind.node.ObjectNode storedCriteria) Generate component mapgenerateTagListComponentMap
(String tagListId, List<Element> templateElements) Generate taglist component mapgenerateTagListElements
(List<String> templateList) Generate taglist component mapMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
ScreenComponentGenerator
public ScreenComponentGenerator(AweRequest request, ScreenModelGenerator screenModelGenerator, InitialLoadDao initialLoadDao, AweElementsDao aweElementsDao, BaseConfigProperties baseConfigProperties, ScreenConfigurationGenerator screenConfigurationGenerator) Autowired constructor- Parameters:
request
- RequestscreenModelGenerator
- Screen model generatorinitialLoadDao
- Initial load serviceaweElementsDao
- AWE Elements DAObaseConfigProperties
- Base configuration properties
-
-
Method Details
-
generateTagListElements
Generate taglist component map- Parameters:
templateList
- Taglist replaced templates- Returns:
- Taglist component map
-
generateTagListComponentMap
public Map<String,ScreenComponent> generateTagListComponentMap(String tagListId, List<Element> templateElements) throws AWException Generate taglist component map- Parameters:
templateElements
- Taglist replaced elements- Returns:
- Taglist component map
- Throws:
AWException