Class MacroMenuRenderer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
    • Constructor Summary

      Constructors 
      Constructor Description
      MacroMenuRenderer​(java.lang.String macroLibraryPath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void renderFormatSimpleWrapperClose​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, ModelMenu menu)  
      void renderFormatSimpleWrapperOpen​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, ModelMenu menu)  
      void renderFormatSimpleWrapperRows​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, java.lang.Object menu)  
      void renderImage​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, CommonWidgetModels.Image image)  
      void renderLink​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, ModelMenuItem.MenuLink link)  
      void renderMenuClose​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, ModelMenu menu)  
      void renderMenuItem​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, ModelMenuItem menuItem)  
      void renderMenuOpen​(java.lang.Appendable writer, java.util.Map<java.lang.String,​java.lang.Object> context, ModelMenu menu)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • MacroMenuRenderer

        public MacroMenuRenderer​(java.lang.String macroLibraryPath,
                                 javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
                          throws freemarker.template.TemplateException,
                                 java.io.IOException
        Throws:
        freemarker.template.TemplateException
        java.io.IOException
    • Method Detail

      • renderFormatSimpleWrapperClose

        public void renderFormatSimpleWrapperClose​(java.lang.Appendable writer,
                                                   java.util.Map<java.lang.String,​java.lang.Object> context,
                                                   ModelMenu menu)
                                            throws java.io.IOException
        Specified by:
        renderFormatSimpleWrapperClose in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderFormatSimpleWrapperOpen

        public void renderFormatSimpleWrapperOpen​(java.lang.Appendable writer,
                                                  java.util.Map<java.lang.String,​java.lang.Object> context,
                                                  ModelMenu menu)
                                           throws java.io.IOException
        Specified by:
        renderFormatSimpleWrapperOpen in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderFormatSimpleWrapperRows

        public void renderFormatSimpleWrapperRows​(java.lang.Appendable writer,
                                                  java.util.Map<java.lang.String,​java.lang.Object> context,
                                                  java.lang.Object menu)
                                           throws java.io.IOException
        Specified by:
        renderFormatSimpleWrapperRows in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderImage

        public void renderImage​(java.lang.Appendable writer,
                                java.util.Map<java.lang.String,​java.lang.Object> context,
                                CommonWidgetModels.Image image)
                         throws java.io.IOException
        Specified by:
        renderImage in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderLink

        public void renderLink​(java.lang.Appendable writer,
                               java.util.Map<java.lang.String,​java.lang.Object> context,
                               ModelMenuItem.MenuLink link)
                        throws java.io.IOException
        Specified by:
        renderLink in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderMenuClose

        public void renderMenuClose​(java.lang.Appendable writer,
                                    java.util.Map<java.lang.String,​java.lang.Object> context,
                                    ModelMenu menu)
                             throws java.io.IOException
        Specified by:
        renderMenuClose in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderMenuItem

        public void renderMenuItem​(java.lang.Appendable writer,
                                   java.util.Map<java.lang.String,​java.lang.Object> context,
                                   ModelMenuItem menuItem)
                            throws java.io.IOException
        Specified by:
        renderMenuItem in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderMenuOpen

        public void renderMenuOpen​(java.lang.Appendable writer,
                                   java.util.Map<java.lang.String,​java.lang.Object> context,
                                   ModelMenu menu)
                            throws java.io.IOException
        Specified by:
        renderMenuOpen in interface MenuStringRenderer
        Throws:
        java.io.IOException