Class HtmlMenuRenderer

    • Field Detail

      • userLoginIdAtPermGrant

        protected java.lang.String userLoginIdAtPermGrant
      • permissionErrorMessage

        protected java.lang.String permissionErrorMessage
      • module

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

      • HtmlMenuRenderer

        protected HtmlMenuRenderer()
      • HtmlMenuRenderer

        public HtmlMenuRenderer​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
    • Method Detail

      • appendOfbizUrl

        public void appendOfbizUrl​(java.lang.Appendable writer,
                                   java.lang.String location)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • appendContentUrl

        public void appendContentUrl​(java.lang.Appendable writer,
                                     java.lang.String location)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • appendTooltip

        public void appendTooltip​(java.lang.Appendable writer,
                                  java.util.Map<java.lang.String,​java.lang.Object> context,
                                  ModelMenuItem modelMenuItem)
                           throws java.io.IOException
        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 menuObj)
                                           throws java.io.IOException
        Specified by:
        renderFormatSimpleWrapperRows 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
      • isDisableIfEmpty

        public boolean isDisableIfEmpty​(ModelMenuItem menuItem,
                                        java.util.Map<java.lang.String,​java.lang.Object> context)
      • renderMenuOpen

        public void renderMenuOpen​(java.lang.Appendable writer,
                                   java.util.Map<java.lang.String,​java.lang.Object> context,
                                   ModelMenu modelMenu)
                            throws java.io.IOException
        Specified by:
        renderMenuOpen 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 modelMenu)
                             throws java.io.IOException
        Specified by:
        renderMenuClose 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 modelMenu)
                                           throws java.io.IOException
        Specified by:
        renderFormatSimpleWrapperOpen in interface MenuStringRenderer
        Throws:
        java.io.IOException
      • renderFormatSimpleWrapperClose

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

        public void setRequest​(javax.servlet.http.HttpServletRequest request)
      • setResponse

        public void setResponse​(javax.servlet.http.HttpServletResponse response)
      • setUserLoginIdAtPermGrant

        public void setUserLoginIdAtPermGrant​(java.lang.String string)
        Parameters:
        string -
      • getUserLoginIdAtPermGrant

        public java.lang.String getUserLoginIdAtPermGrant()
      • isHideIfSelected

        public boolean isHideIfSelected​(ModelMenuItem menuItem,
                                        java.util.Map<java.lang.String,​java.lang.Object> context)
      • userLoginIdHasChanged

        public boolean userLoginIdHasChanged()
      • getTitle

        public java.lang.String getTitle​(ModelMenuItem menuItem,
                                         java.util.Map<java.lang.String,​java.lang.Object> context)
      • 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
      • 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