Class MacroTreeRenderer
- java.lang.Object
-
- org.apache.ofbiz.widget.renderer.macro.MacroTreeRenderer
-
- All Implemented Interfaces:
TreeStringRenderer
public class MacroTreeRenderer extends java.lang.Object implements TreeStringRenderer
Widget Library - Tree Renderer implementation based on Freemarker macros
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description MacroTreeRenderer(java.lang.String macroLibraryPath, java.lang.Appendable writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScreenStringRenderer
getScreenStringRenderer(java.util.Map<java.lang.String,java.lang.Object> context)
void
renderBeginningBoundaryComment(java.lang.Appendable writer, java.lang.String widgetType, ModelWidget modelWidget)
Renders the beginning boundary comment string.void
renderEndingBoundaryComment(java.lang.Appendable writer, java.lang.String widgetType, ModelWidget modelWidget)
Renders the ending boundary comment string.void
renderImage(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode.Image image)
void
renderLabel(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode.Label label)
void
renderLastElement(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode node)
void
renderLink(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode.Link link)
void
renderNodeBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode node, int depth)
void
renderNodeEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode node)
-
-
-
Method Detail
-
renderBeginningBoundaryComment
public void renderBeginningBoundaryComment(java.lang.Appendable writer, java.lang.String widgetType, ModelWidget modelWidget)
Renders the beginning boundary comment string.- Parameters:
writer
- The writer to write towidgetType
- The widget type: "Screen Widget", "Tree Widget", etc.modelWidget
- The widget
-
renderEndingBoundaryComment
public void renderEndingBoundaryComment(java.lang.Appendable writer, java.lang.String widgetType, ModelWidget modelWidget)
Renders the ending boundary comment string.- Parameters:
writer
- The writer to write towidgetType
- The widget type: "Screen Widget", "Tree Widget", etc.modelWidget
- The widget
-
renderNodeBegin
public void renderNodeBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode node, int depth) throws java.io.IOException
- Specified by:
renderNodeBegin
in interfaceTreeStringRenderer
- Throws:
java.io.IOException
-
renderNodeEnd
public void renderNodeEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode node) throws java.io.IOException
- Specified by:
renderNodeEnd
in interfaceTreeStringRenderer
- Throws:
java.io.IOException
-
renderLastElement
public void renderLastElement(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode node) throws java.io.IOException
- Specified by:
renderLastElement
in interfaceTreeStringRenderer
- Throws:
java.io.IOException
-
renderLabel
public void renderLabel(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode.Label label) throws java.io.IOException
- Specified by:
renderLabel
in interfaceTreeStringRenderer
- Throws:
java.io.IOException
-
renderLink
public void renderLink(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode.Link link) throws java.io.IOException
- Specified by:
renderLink
in interfaceTreeStringRenderer
- Throws:
java.io.IOException
-
renderImage
public void renderImage(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelTree.ModelNode.Image image) throws java.io.IOException
- Specified by:
renderImage
in interfaceTreeStringRenderer
- Throws:
java.io.IOException
-
getScreenStringRenderer
public ScreenStringRenderer getScreenStringRenderer(java.util.Map<java.lang.String,java.lang.Object> context)
- Specified by:
getScreenStringRenderer
in interfaceTreeStringRenderer
-
-