Class MacroScreenRenderer
- java.lang.Object
-
- org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer
-
- All Implemented Interfaces:
ScreenStringRenderer
public class MacroScreenRenderer extends java.lang.Object implements ScreenStringRenderer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
protected boolean
widgetCommentsEnabled
-
Constructor Summary
Constructors Constructor Description MacroScreenRenderer(java.lang.String name, java.lang.String macroLibraryPath)
MacroScreenRenderer(java.lang.String name, java.lang.String macroLibraryPath, java.lang.Appendable writer)
Deprecated.MacroScreenRenderer(ModelTheme theme, java.lang.String modelTemplateName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getFoStyle(java.lang.String styleName)
java.lang.String
getRendererName()
void
renderColumnContainer(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.ColumnContainer columnContainer)
void
renderContainerBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Container container)
void
renderContainerEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Container container)
void
renderContentBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content)
void
renderContentBody(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content)
void
renderContentEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content)
void
renderContentFrame(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content)
void
renderHorizontalSeparator(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.HorizontalSeparator separator)
void
renderImage(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.ScreenImage image)
void
renderLabel(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Label label)
void
renderLink(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.ScreenLink link)
void
renderPortalPageBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage)
void
renderPortalPageColumnBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPageColumn)
void
renderPortalPageColumnEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPageColumn)
void
renderPortalPageEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage)
void
renderPortalPagePortletBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPortlet)
void
renderPortalPagePortletBody(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPortlet)
void
renderPortalPagePortletEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPortlet)
void
renderScreenBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context)
void
renderScreenEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context)
void
renderScreenletBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, boolean collapsed, ModelScreenWidget.Screenlet screenlet)
void
renderScreenletEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Screenlet screenlet)
protected void
renderScreenletPaginateMenu(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Form form)
void
renderScreenletSubWidget(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget subWidget, ModelScreenWidget.Screenlet screenlet)
void
renderSectionBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Section section)
void
renderSectionEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Section section)
void
renderSubContentBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.SubContent content)
void
renderSubContentBody(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.SubContent content)
void
renderSubContentEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.SubContent content)
-
-
-
Constructor Detail
-
MacroScreenRenderer
public MacroScreenRenderer(ModelTheme theme, java.lang.String modelTemplateName) throws freemarker.template.TemplateException, java.io.IOException
- Throws:
freemarker.template.TemplateException
java.io.IOException
-
MacroScreenRenderer
public MacroScreenRenderer(java.lang.String name, java.lang.String macroLibraryPath) throws freemarker.template.TemplateException, java.io.IOException
- Throws:
freemarker.template.TemplateException
java.io.IOException
-
MacroScreenRenderer
@Deprecated public MacroScreenRenderer(java.lang.String name, java.lang.String macroLibraryPath, java.lang.Appendable writer) throws freemarker.template.TemplateException, java.io.IOException
Deprecated.- Throws:
freemarker.template.TemplateException
java.io.IOException
-
-
Method Detail
-
getRendererName
public java.lang.String getRendererName()
- Specified by:
getRendererName
in interfaceScreenStringRenderer
-
renderScreenBegin
public void renderScreenBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
- Specified by:
renderScreenBegin
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderScreenEnd
public void renderScreenEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
- Specified by:
renderScreenEnd
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderSectionBegin
public void renderSectionBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Section section) throws java.io.IOException
- Specified by:
renderSectionBegin
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderSectionEnd
public void renderSectionEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Section section) throws java.io.IOException
- Specified by:
renderSectionEnd
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderContainerBegin
public void renderContainerBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Container container) throws java.io.IOException
- Specified by:
renderContainerBegin
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderContainerEnd
public void renderContainerEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Container container) throws java.io.IOException
- Specified by:
renderContainerEnd
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderLabel
public void renderLabel(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Label label) throws java.io.IOException
- Specified by:
renderLabel
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderHorizontalSeparator
public void renderHorizontalSeparator(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.HorizontalSeparator separator) throws java.io.IOException
- Specified by:
renderHorizontalSeparator
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderLink
public void renderLink(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.ScreenLink link) throws java.io.IOException
- Specified by:
renderLink
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderImage
public void renderImage(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.ScreenImage image) throws java.io.IOException
- Specified by:
renderImage
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderContentBegin
public void renderContentBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content) throws java.io.IOException
- Specified by:
renderContentBegin
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderContentBody
public void renderContentBody(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content) throws java.io.IOException
- Specified by:
renderContentBody
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderContentEnd
public void renderContentEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content) throws java.io.IOException
- Specified by:
renderContentEnd
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderContentFrame
public void renderContentFrame(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Content content) throws java.io.IOException
- Specified by:
renderContentFrame
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderSubContentBegin
public void renderSubContentBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.SubContent content) throws java.io.IOException
- Specified by:
renderSubContentBegin
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderSubContentBody
public void renderSubContentBody(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.SubContent content) throws java.io.IOException
- Specified by:
renderSubContentBody
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderSubContentEnd
public void renderSubContentEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.SubContent content) throws java.io.IOException
- Specified by:
renderSubContentEnd
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderScreenletBegin
public void renderScreenletBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, boolean collapsed, ModelScreenWidget.Screenlet screenlet) throws java.io.IOException
- Specified by:
renderScreenletBegin
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderScreenletSubWidget
public void renderScreenletSubWidget(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget subWidget, ModelScreenWidget.Screenlet screenlet) throws GeneralException, java.io.IOException
- Specified by:
renderScreenletSubWidget
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderScreenletEnd
public void renderScreenletEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Screenlet screenlet) throws java.io.IOException
- Specified by:
renderScreenletEnd
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
renderScreenletPaginateMenu
protected void renderScreenletPaginateMenu(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.Form form) throws java.io.IOException
- Throws:
java.io.IOException
-
renderPortalPageBegin
public void renderPortalPageBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPageBegin
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderPortalPageEnd
public void renderPortalPageEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPageEnd
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderPortalPageColumnBegin
public void renderPortalPageColumnBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPageColumn) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPageColumnBegin
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderPortalPageColumnEnd
public void renderPortalPageColumnEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPageColumn) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPageColumnEnd
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderPortalPagePortletBegin
public void renderPortalPagePortletBegin(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPortlet) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPagePortletBegin
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderPortalPagePortletEnd
public void renderPortalPagePortletEnd(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPortlet) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPagePortletEnd
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderPortalPagePortletBody
public void renderPortalPagePortletBody(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.PortalPage portalPage, GenericValue portalPortlet) throws GeneralException, java.io.IOException
- Specified by:
renderPortalPagePortletBody
in interfaceScreenStringRenderer
- Throws:
GeneralException
java.io.IOException
-
renderColumnContainer
public void renderColumnContainer(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ModelScreenWidget.ColumnContainer columnContainer) throws java.io.IOException
- Specified by:
renderColumnContainer
in interfaceScreenStringRenderer
- Throws:
java.io.IOException
-
getFoStyle
public static java.lang.String getFoStyle(java.lang.String styleName)
-
-