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
Widget Library - HTML Menu Renderer implementation
-
Field Summary
Fields inherited from class org.apache.ofbiz.widget.renderer.html.HtmlWidgetRenderer
NAMED_BORDER_TYPE, WHITE_SPACE
-
Constructor Summary
ModifierConstructorDescriptionprotected
HtmlMenuRenderer
(HttpServletRequest request, HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendContentUrl
(Appendable writer, String location) Append content url.void
appendOfbizUrl
(Appendable writer, String location) Append ofbiz url.void
appendTooltip
(Appendable writer, Map<String, Object> context, ModelMenuItem modelMenuItem) Append tooltip.Gets request.Gets response.getTitle
(ModelMenuItem menuItem, Map<String, Object> context) Gets title.Gets user login id at perm grant.boolean
isDisableIfEmpty
(ModelMenuItem menuItem, Map<String, Object> context) Is disable if empty boolean.boolean
isHideIfSelected
(ModelMenuItem menuItem, Map<String, Object> context) Is hide if selected boolean.void
renderFormatSimpleWrapperClose
(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) void
renderFormatSimpleWrapperOpen
(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) void
renderFormatSimpleWrapperRows
(Appendable writer, Map<String, Object> context, Object menuObj) void
renderImage
(Appendable writer, Map<String, Object> context, CommonWidgetModels.Image image) void
renderLink
(Appendable writer, Map<String, Object> context, ModelMenuItem.MenuLink link) void
renderMenuClose
(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) void
renderMenuItem
(Appendable writer, Map<String, Object> context, ModelMenuItem menuItem) void
renderMenuOpen
(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) void
setRequest
(HttpServletRequest request) Sets request.void
setResponse
(HttpServletResponse response) Sets response.void
setUserLoginIdAtPermGrant
(String string) boolean
User login id has changed boolean.Methods inherited from class org.apache.ofbiz.widget.renderer.html.HtmlWidgetRenderer
appendWhitespace, beginNamedBorder, buildBoundaryComment, endNamedBorder, formatBoundaryJsComment, getAjaxParamsFromTarget, isWidgetCommentsEnabled, renderBeginningBoundaryComment, renderEndingBoundaryComment, setWidgetCommentsEnabled
-
Field Details
-
MODULE
-
-
Constructor Details
-
HtmlMenuRenderer
protected HtmlMenuRenderer() -
HtmlMenuRenderer
-
-
Method Details
-
getRequest
Gets request.- Returns:
- the request
-
getResponse
Gets response.- Returns:
- the response
-
appendOfbizUrl
Append ofbiz url.- Parameters:
writer
- the writerlocation
- the location- Throws:
IOException
- the io exception
-
appendContentUrl
Append content url.- Parameters:
writer
- the writerlocation
- the location- Throws:
IOException
- the io exception
-
appendTooltip
public void appendTooltip(Appendable writer, Map<String, Object> context, ModelMenuItem modelMenuItem) throws IOExceptionAppend tooltip.- Parameters:
writer
- the writercontext
- the contextmodelMenuItem
- the model menu item- Throws:
IOException
- the io exception
-
renderFormatSimpleWrapperRows
public void renderFormatSimpleWrapperRows(Appendable writer, Map<String, Object> context, Object menuObj) throws IOException- Specified by:
renderFormatSimpleWrapperRows
in interfaceMenuStringRenderer
- Throws:
IOException
-
renderMenuItem
public void renderMenuItem(Appendable writer, Map<String, Object> context, ModelMenuItem menuItem) throws IOException- Specified by:
renderMenuItem
in interfaceMenuStringRenderer
- Throws:
IOException
-
isDisableIfEmpty
Is disable if empty boolean.- Parameters:
menuItem
- the menu itemcontext
- the context- Returns:
- the boolean
-
renderMenuOpen
public void renderMenuOpen(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) throws IOException- Specified by:
renderMenuOpen
in interfaceMenuStringRenderer
- Throws:
IOException
-
renderMenuClose
public void renderMenuClose(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) throws IOException- Specified by:
renderMenuClose
in interfaceMenuStringRenderer
- Throws:
IOException
-
renderFormatSimpleWrapperOpen
public void renderFormatSimpleWrapperOpen(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) throws IOException- Specified by:
renderFormatSimpleWrapperOpen
in interfaceMenuStringRenderer
- Throws:
IOException
-
renderFormatSimpleWrapperClose
public void renderFormatSimpleWrapperClose(Appendable writer, Map<String, Object> context, ModelMenu modelMenu) throws IOException- Specified by:
renderFormatSimpleWrapperClose
in interfaceMenuStringRenderer
- Throws:
IOException
-
setRequest
Sets request.- Parameters:
request
- the request
-
setResponse
Sets response.- Parameters:
response
- the response
-
setUserLoginIdAtPermGrant
- Parameters:
string
-
-
getUserLoginIdAtPermGrant
Gets user login id at perm grant.- Returns:
- the user login id at perm grant
-
isHideIfSelected
Is hide if selected boolean.- Parameters:
menuItem
- the menu itemcontext
- the context- Returns:
- the boolean
-
userLoginIdHasChanged
public boolean userLoginIdHasChanged()User login id has changed boolean.- Returns:
- the boolean
-
getTitle
Gets title.- Parameters:
menuItem
- the menu itemcontext
- the context- Returns:
- the title
-
renderLink
public void renderLink(Appendable writer, Map<String, Object> context, ModelMenuItem.MenuLink link) throws IOException- Specified by:
renderLink
in interfaceMenuStringRenderer
- Throws:
IOException
-
renderImage
public void renderImage(Appendable writer, Map<String, Object> context, CommonWidgetModels.Image image) throws IOException- Specified by:
renderImage
in interfaceMenuStringRenderer
- Throws:
IOException
-