Class MacroMenuRenderer
- java.lang.Object
-
- org.apache.ofbiz.widget.renderer.macro.MacroMenuRenderer
-
- All Implemented Interfaces:
MenuStringRenderer
public class MacroMenuRenderer extends java.lang.Object implements MenuStringRenderer
-
-
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)
-
-
-
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 interfaceMenuStringRenderer
- 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 interfaceMenuStringRenderer
- 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 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
-
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
-
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 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
-
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 interfaceMenuStringRenderer
- Throws:
java.io.IOException
-
-