DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.autoform
Class EditorRenderer

java.lang.Object
  extended by org.dlese.dpc.schemedit.autoform.Renderer
      extended by org.dlese.dpc.schemedit.autoform.RendererImpl
          extended by org.dlese.dpc.schemedit.autoform.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


Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.autoform.RendererImpl
DISPLAY_MODE, EDIT_MODE
 
Fields inherited from class org.dlese.dpc.schemedit.autoform.Renderer
df, formBeanName, normalizedXPath, parent, repeatingComplexSingletonChildPath, rhelper, root, schemaNode, sh, typeDef, typeName, xpath
 
Constructor Summary
EditorRenderer()
           
 
Method Summary
protected  Element getCollapseWidget()
          Render open/close widget for this element.
 ComplexTypeLabel getComplexTypeLabel(String xpath, String siblingPath, String indexId)
          Create a label with collapse widget (if this nodeIsExpandable is true for this node.
 Label getMultiBoxLabel(String xpath)
          Create label for a mulitBoxLabel element that will collapse the mulitBox input.
 SimpleTypeLabel getSimpleTypeLabel(String xpath, String siblingPath, String indexId)
          Gets the simpleTypeLabel attribute of the EditorRenderer object
static void setDebug(boolean bool)
          Sets the debug attribute of the EditorRenderer class
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.RendererImpl
bestPracticesLink, doInit, getBooleanInput, getComboUnionInput, getComplexTypeLabel, getDeleteController, getInputElement, getInputHelperElement, getLabelText, getLanguageInput, getMultiBoxInput, getMultiSelectInput, getOptionalItemControl, getReadOnlyElement, getRenderedField, getRenderedField, getRenderMode, getSelectInput, getShowNSPrefixInLabels, getSimpleTypeLabel, getTextAreaInput, getTextAreaInput, getTextInput, getToolHelp, getXpath, isDisplayMode, isEditMode, renderAttribute, renderChoice, renderComplexTypeConcrete, renderDerivedContentModel, renderDerivedTextOnlyModel, renderInputElement, renderModelGroup, renderRepeatingElement, renderRepeatingSubstitutionGroup, renderSequence, renderSimpleTypeConcrete, renderSubElements, renderSubElements, renderSubElements, report, setRenderMode, setShowNSPrefixInLabels, showXsdStringElement
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.Renderer
doInit, getDiv, getDiv, getLevel, getSchemaNamespace, getSchemaNSPrefix, getXmlFormat, init, jspQuotedString, renderComplexType, renderNode, renderSimpleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorRenderer

public EditorRenderer()
Method Detail

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 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

DLESE Tools
v1.6.0