|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.autoform.mde.MdeNode org.dlese.dpc.schemedit.autoform.mde.MdeRepeatingNode
public abstract class MdeRepeatingNode
Abstract base class for renderning MetadataEditor fields for a repeating node. Principle contribution is getRepeatingContentBox method, which builds a box (a "div" element) into which each repetition of the repeating nodes is placed (by concrete classes).
Field Summary |
---|
Fields inherited from class org.dlese.dpc.schemedit.autoform.mde.MdeNode |
---|
df, formBeanName, inputHelperFile, normalizedXPath, parent, renderer, rhelper, schemaNode, sh, typeDef, xpath |
Constructor Summary | |
---|---|
MdeRepeatingNode(RendererImpl renderer)
Constructor for the MdeRepeatingNode object |
Method Summary | |
---|---|
protected 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 Element |
getIteration(String itemPath,
String siblingPath,
String indexId)
Creates a repeatIteration element and attaches it to the parent. |
protected Element |
getRepeatingContentBox(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(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. |
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(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 |
Methods inherited from class org.dlese.dpc.schemedit.autoform.mde.MdeNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MdeRepeatingNode(RendererImpl renderer)
renderer
- the Renderer instance for this nodeMethod Detail |
---|
public abstract void render()
render
in class MdeNode
protected Element getRepeatingContentBox(String itemPath)
itemPath
- xpath with indexing to support iteration
protected Element getIteration(String itemPath, String siblingPath, 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 nodes
protected void insertRepeatingDisplaySetup(Element baseDiv)
baseDiv
- Element to which created elements are attached.public 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 Element emptyRepeatingElement()
public static void setDebug(boolean bool)
bool
- The new debug valueprotected void prtln(String s)
prtln
in class MdeNode
s
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |