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
public class ScreenComponentGenerator extends ServiceConfig
Generate the component controllers of the screen
-
-
Constructor Summary
Constructors Constructor Description ScreenComponentGenerator(AweRequest request, ScreenModelGenerator screenModelGenerator, ScreenConfigurationGenerator screenConfigurationGenerator, InitialLoadDao initialLoadDao, AweElementsDao aweElementsDao, BaseConfigProperties baseConfigProperties)
Autowired constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyOptionActions(Menu menu)
Apply option actions to menuMap<String,ScreenComponent>
generateComponentMap(Screen screen, ScreenData data, Menu menu, com.fasterxml.jackson.databind.node.ObjectNode storedCriteria)
Generate component mapMap<String,ScreenComponent>
generateTagListComponentMap(String tagListId, List<Element> templateElements)
Generate taglist component mapList<Element>
generateTagListElements(List<String> templateList)
Generate taglist component map-
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
-
-
-
Constructor Detail
-
ScreenComponentGenerator
public ScreenComponentGenerator(AweRequest request, ScreenModelGenerator screenModelGenerator, ScreenConfigurationGenerator screenConfigurationGenerator, InitialLoadDao initialLoadDao, AweElementsDao aweElementsDao, BaseConfigProperties baseConfigProperties)
Autowired constructor- Parameters:
request
- RequestscreenModelGenerator
- Screen model generatorscreenConfigurationGenerator
- Screen configuration generatorinitialLoadDao
- Initial load serviceaweElementsDao
- AWE Elements DAObaseConfigProperties
- Base configuration properties
-
-
Method Detail
-
generateComponentMap
public Map<String,ScreenComponent> generateComponentMap(Screen screen, ScreenData data, Menu menu, com.fasterxml.jackson.databind.node.ObjectNode storedCriteria)
Generate component map- Parameters:
screen
- Screen objectdata
- Screen datamenu
- Current menustoredCriteria
- Stored criteria- Returns:
- Component map
-
applyOptionActions
public void applyOptionActions(Menu menu)
Apply option actions to menu- Parameters:
menu
- Menu
-
generateTagListElements
public List<Element> generateTagListElements(List<String> templateList)
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
-
-