Class HtmlMenuRenderer
- java.lang.Object
-
- org.apache.ofbiz.widget.renderer.html.HtmlWidgetRenderer
-
- org.apache.ofbiz.widget.renderer.html.HtmlMenuRenderer
-
- All Implemented Interfaces:
MenuStringRenderer
- Direct Known Subclasses:
HtmlMenuRendererImage
public class HtmlMenuRenderer extends HtmlWidgetRenderer implements MenuStringRenderer
Widget Library - HTML Menu Renderer implementation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
protected java.lang.String
permissionErrorMessage
protected java.lang.String
userLoginIdAtPermGrant
-
Fields inherited from class org.apache.ofbiz.widget.renderer.html.HtmlWidgetRenderer
whiteSpace, widgetCommentsEnabled
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HtmlMenuRenderer()
HtmlMenuRenderer(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendContentUrl(java.lang.Appendable writer, java.lang.String location)
void
appendOfbizUrl(java.lang.Appendable writer, java.lang.String location)
void
appendTooltip(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelMenuItem modelMenuItem)
java.lang.String
getTitle(ModelMenuItem menuItem, java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getUserLoginIdAtPermGrant()
boolean
isDisableIfEmpty(ModelMenuItem menuItem, java.util.Map<java.lang.String,java.lang.Object> context)
boolean
isHideIfSelected(ModelMenuItem menuItem, java.util.Map<java.lang.String,java.lang.Object> context)
void
renderFormatSimpleWrapperClose(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelMenu modelMenu)
void
renderFormatSimpleWrapperOpen(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelMenu modelMenu)
void
renderFormatSimpleWrapperRows(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Object menuObj)
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 modelMenu)
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 modelMenu)
void
setRequest(javax.servlet.http.HttpServletRequest request)
void
setResponse(javax.servlet.http.HttpServletResponse response)
void
setUserLoginIdAtPermGrant(java.lang.String string)
boolean
userLoginIdHasChanged()
-
Methods inherited from class org.apache.ofbiz.widget.renderer.html.HtmlWidgetRenderer
appendWhitespace, buildBoundaryComment, formatBoundaryComment, getAjaxParamsFromTarget, renderBeginningBoundaryComment, renderEndingBoundaryComment
-
-
-
-
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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- Throws:
java.io.IOException
-
-