public abstract class MdeRepeatingNode extends MdeNode
df, formBeanName, inputHelperFile, normalizedXPath, parent, renderer, rhelper, schemaNode, sh, typeDef, xpath
Constructor and Description |
---|
MdeRepeatingNode(RendererImpl renderer)
Constructor for the MdeRepeatingNode object
|
Modifier and Type | Method and Description |
---|---|
protected org.dom4j.Element |
emptyRepeatingElement()
Render jsp element for adding a new repeating element that will be shown
when there are no existing values for this field in the instance document.
|
protected org.dom4j.Element |
getIteration(java.lang.String itemPath,
java.lang.String siblingPath,
java.lang.String indexId)
Creates a repeatIteration element and attaches it to the parent.
|
protected org.dom4j.Element |
getRepeatingContentBox(java.lang.String itemPath)
Create a "box" for the contents of each repitition of this node, which is
filled by the subclasses which build upon this method.
|
protected void |
insertRepeatingDisplaySetup(org.dom4j.Element baseDiv)
Creates JSP to set the *id* for a particular node, and then to determine
the display_state of that node from the collapseBean and assign it to a
javascript variable.
|
org.dom4j.Element |
newSiblingController()
Create new item controller that goes at the bottom of a repeating node to
allow user to create a new element (sibling).
|
protected void |
prtln(java.lang.String s)
NOT YET DOCUMENTED
|
abstract void |
render()
Render method is supplied by concrete classes
|
static void |
setDebug(boolean bool)
Sets the debug attribute of the MdeRepeatingNode class
|
addHtmlComment, attachElementDebugInfo, attachElementDebugInfo, attachElementId, attachLabelDebugInfo, attachLabelDebugInfo, attachLabelDebugInfo, bestPracticesLink, embedDebugInfo, getDiv, getDiv, getInputElement, getInputHelperFile, getInstanceSchemaNamespace, getMode, getQualifiedAttributeName, getQualifiedElementName, getRenderedField, getRenderedNoInputField, getRenderedNoInputField, getRenderedNoInputField, getToolHelp, insertDisplaySetup, insertHtmlComment, isDisplayMode, isEditMode, newRenderer, newRenderer
public MdeRepeatingNode(RendererImpl renderer)
renderer
- the Renderer instance for this nodepublic abstract void render()
protected org.dom4j.Element getRepeatingContentBox(java.lang.String itemPath)
itemPath
- xpath with indexing to support iterationprotected org.dom4j.Element getIteration(java.lang.String itemPath, java.lang.String siblingPath, java.lang.String indexId)
jsp example:
itemPath
- path to individual nodes (including indexing)siblingPath
- The path shared by each of the repeating nodesindexId
- The symbol used to create the index in jsp that
differentiates the repeating nodesprotected void insertRepeatingDisplaySetup(org.dom4j.Element baseDiv)
baseDiv
- Element to which created elements are attached.public org.dom4j.Element newSiblingController()
This controller is not displayed in the case when the parent element is empty. In that case, the new item control is displayed with the parent element.
protected org.dom4j.Element emptyRepeatingElement()
public static void setDebug(boolean bool)
bool
- The new debug value