Class 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 Detail

      • ScreenComponentGenerator

        public ScreenComponentGenerator​(AweRequest request,
                                        ScreenModelGenerator screenModelGenerator,
                                        ScreenConfigurationGenerator screenConfigurationGenerator,
                                        InitialLoadDao initialLoadDao,
                                        AweElementsDao aweElementsDao,
                                        BaseConfigProperties baseConfigProperties)
        Autowired constructor
        Parameters:
        request - Request
        screenModelGenerator - Screen model generator
        screenConfigurationGenerator - Screen configuration generator
        initialLoadDao - Initial load service
        aweElementsDao - AWE Elements DAO
        baseConfigProperties - 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 object
        data - Screen data
        menu - Current menu
        storedCriteria - 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