DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.autoform
Class DleseEditorRenderer

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
              extended by org.dlese.dpc.schemedit.autoform.DleseEditorRenderer
Direct Known Subclasses:
Msp2EditorRenderer, ResQualEditorRenderer, SIFEditorRenderer

public class DleseEditorRenderer
extends EditorRenderer

Renders JSP for DLESE metadata frameworks, adding functionality for choosing from suggested standards, and other dlese-specific input objects, including:

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
DleseEditorRenderer()
           
 
Method Summary
 Element getMultiBoxInput(String xpath)
          Renders a multibox input (a set of of checkboxes) as an Element using one of several methods of rendering a multiBoxInput, depending on what information is available for the current element.
 Element getSelectInput(String xpath)
          If there is a vocabLayout (groups file) for this xpath, use it to layout the element.
protected  Element getTextInput(String xpath, SchemaNode schemaNode, GlobalDef typeDef)
          Render configured paths as textArea inputs instead of regular text inputs.
 void renderRepeatingElement()
          If this element has been configured to use suggestion service, render using MdeStdsNode, otherwise render as usual.
static void setDebug(boolean bool)
          Sets the debug attribute of the DleseEditorRenderer class
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.EditorRenderer
getCollapseWidget, getComplexTypeLabel, getMultiBoxLabel, getSimpleTypeLabel
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.RendererImpl
bestPracticesLink, doInit, getBooleanInput, getComboUnionInput, getComplexTypeLabel, getDeleteController, getInputElement, getInputHelperElement, getLabelText, getLanguageInput, getMultiSelectInput, getOptionalItemControl, getReadOnlyElement, getRenderedField, getRenderedField, getRenderMode, getShowNSPrefixInLabels, getSimpleTypeLabel, getTextAreaInput, getTextAreaInput, getToolHelp, getXpath, isDisplayMode, isEditMode, renderAttribute, renderChoice, renderComplexTypeConcrete, renderDerivedContentModel, renderDerivedTextOnlyModel, renderInputElement, renderModelGroup, 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

DleseEditorRenderer

public DleseEditorRenderer()
Method Detail

getMultiBoxInput

public Element getMultiBoxInput(String xpath)
Renders a multibox input (a set of of checkboxes) as an Element using one of several methods of rendering a multiBoxInput, depending on what information is available for the current element.

Overrides:
getMultiBoxInput in class RendererImpl
Parameters:
xpath - xpath of element to be rendered as multiBoxInput
Returns:
The multiBoxInput as an element

getSelectInput

public Element getSelectInput(String xpath)
If there is a vocabLayout (groups file) for this xpath, use it to layout the element.

NOTES
1 - the path passed to the "vl__vocabLayoutSingleSelect" is not a "siblingPath" as is the case with multi-selects, but the actual xpath, since here we are collecting a single value
2 - the "elementPath" attribute (missed-named) determines which method is used to determine an input field's values. since this is a single-value select, we use "valueOf".

Overrides:
getSelectInput in class RendererImpl
Parameters:
xpath - path to the element to be rendered as a select input
Returns:
The selectInput value

renderRepeatingElement

public void renderRepeatingElement()
If this element has been configured to use suggestion service, render using MdeStdsNode, otherwise render as usual.

Overrides:
renderRepeatingElement in class RendererImpl

getTextInput

protected Element getTextInput(String xpath,
                               SchemaNode schemaNode,
                               GlobalDef typeDef)
Render configured paths as textArea inputs instead of regular text inputs.

Overrides:
getTextInput in class RendererImpl
Parameters:
xpath - xpath of input
schemaNode - schemaNode for this xpath
typeDef - the typeDefinion for this node
Returns:
The textInput value

setDebug

public static void setDebug(boolean bool)
Sets the debug attribute of the DleseEditorRenderer class

Parameters:
bool - The new debug value

DLESE Tools
v1.6.0