|
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.Renderer org.dlese.dpc.schemedit.autoform.RendererImpl org.dlese.dpc.schemedit.autoform.EditorRenderer org.dlese.dpc.schemedit.autoform.DleseEditorRenderer
public class DleseEditorRenderer
Renders JSP for DLESE metadata frameworks, adding functionality for choosing from suggested standards, and other dlese-specific input objects, including:
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.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 |
---|
public DleseEditorRenderer()
Method Detail |
---|
public Element getMultiBoxInput(String xpath)
org.dlese.dpc.schemedit.autoform.SimpleJspRenderer#getMultiBoxInput()
getMultiBoxInput
in class RendererImpl
xpath
- xpath of element to be rendered as multiBoxInput
public Element getSelectInput(String xpath)
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".
getSelectInput
in class RendererImpl
xpath
- path to the element to be rendered as a select input
public void renderRepeatingElement()
renderRepeatingElement
in class RendererImpl
protected Element getTextInput(String xpath, SchemaNode schemaNode, GlobalDef typeDef)
getTextInput
in class RendererImpl
xpath
- xpath of inputschemaNode
- schemaNode for this xpathtypeDef
- the typeDefinion for this node
public static void setDebug(boolean bool)
bool
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |