Class TreeMenuInclude

  • All Implemented Interfaces:
    PageInclude

    public class TreeMenuInclude
    extends Object
    implements PageInclude
    This class provides the list of the page associated by the main menu of the site
    • Constructor Detail

      • TreeMenuInclude

        public TreeMenuInclude()
    • Method Detail

      • fillTemplate

        public void fillTemplate​(Map<String,​Object> rootModel,
                                 PageData data,
                                 int nMode,
                                 javax.servlet.http.HttpServletRequest request)
        Substitue specific Freemarker markers in the page template.
        Specified by:
        fillTemplate in interface PageInclude
        Parameters:
        rootModel - the HashMap containing markers to substitute
        data - A PageData object containing applications data
        nMode - The current mode
        request - The HTTP request
      • buildTreeMenuContent

        public String buildTreeMenuContent​(int nIdPage,
                                           int nMode,
                                           javax.servlet.http.HttpServletRequest request)
        Builds the tree menu bar
        Parameters:
        nIdPage - The page id
        nMode - the mode id
        request - The HttpServletRequest
        Returns:
        The list of the tree menus layed out with the stylesheet of the mode