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 Details

  • Method Details

    • 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
    • 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