Class MenuWrapTransform

java.lang.Object
org.apache.ofbiz.widget.renderer.MenuWrapTransform
All Implemented Interfaces:
freemarker.template.TemplateModel, freemarker.template.TemplateTransformModel

public class MenuWrapTransform extends Object implements freemarker.template.TemplateTransformModel
MenuWrapTransform - a FreeMarker transform that allow the ModelMenu stuff to be used at the FM level. It can be used to add "function bars" to pages. Accepts the following arguments (all of which can alternatively be present in the template context):
  • List<Map<String, ? extends Object>> globalNodeTrail
  • String contentAssocPredicateId
  • String nullThruDatesOnly
  • String subDataResourceTypeId
  • String renderOnStart
  • String renderOnClose
  • String menuDefFile
  • String menuName
  • String menuWrapperClassName
  • String associatedContentId
This is an interactive FreeMarker transform that allows the user to modify the contents that are placed within it.
  • Field Details

    • UP_SAVE_KEY_NAMES

      public static final String[] UP_SAVE_KEY_NAMES
    • SAVE_KEY_NAMES

      public static final String[] SAVE_KEY_NAMES
  • Constructor Details

    • MenuWrapTransform

      public MenuWrapTransform()
  • Method Details

    • getWriter

      public Writer getWriter(Writer out, Map args)
      Specified by:
      getWriter in interface freemarker.template.TemplateTransformModel