Class EditorRenderer

Direct Known Subclasses:
DleseEditorRenderer

public class EditorRenderer extends RendererImpl
Renders JSP for metadata editing with controls for adding new elements or deleting optional elements as well as for collapsible elements.
Author:
ostwald

  • Constructor Details

    • EditorRenderer

      public EditorRenderer()
  • Method Details

    • getSimpleTypeLabel

      public SimpleTypeLabel getSimpleTypeLabel(String xpath, String siblingPath, String indexId)
      Gets the simpleTypeLabel attribute of the EditorRenderer object
      Overrides:
      getSimpleTypeLabel in class RendererImpl
      Parameters:
      xpath - NOT YET DOCUMENTED
      siblingPath - NOT YET DOCUMENTED
      indexId - NOT YET DOCUMENTED
      Returns:
      The simpleTypeLabel value
    • getMultiBoxLabel

      public Label getMultiBoxLabel(String xpath)
      Create label for a mulitBoxLabel element that will collapse the mulitBox input.

      Based on getComplexTypeLabel, but will always display collapse widget, rather than first testing for nodeIsExpandable as getComplexTypeLabel does.

      Depends on the multibox input having an id and display style initialized to value of collapseBean.displayState.

      Overrides:
      getMultiBoxLabel in class RendererImpl
      Parameters:
      xpath - NOT YET DOCUMENTED
      Returns:
      The multiBoxLabel value
    • getComplexTypeLabel

      public ComplexTypeLabel getComplexTypeLabel(String xpath, String siblingPath, String indexId)
      Create a label with collapse widget (if this nodeIsExpandable is true for this node.
      Overrides:
      getComplexTypeLabel in class RendererImpl
      Parameters:
      xpath - NOT YET DOCUMENTED
      siblingPath - NOT YET DOCUMENTED
      indexId - NOT YET DOCUMENTED
      Returns:
      The complexTypeLabel value
    • getCollapseWidget

      protected org.dom4j.Element getCollapseWidget()
      Render open/close widget for this element.
      Returns:
      The collapseWidget value
    • setDebug

      public static void setDebug(boolean bool)
      Sets the debug attribute of the EditorRenderer class
      Parameters:
      bool - The new debug value