public abstract class MdeNode
extends java.lang.Object
MdeNode instances provide access to the following classes:
Modifier and Type | Field and Description |
---|---|
protected org.dom4j.DocumentFactory |
df
NOT YET DOCUMENTED
|
protected java.lang.String |
formBeanName
NOT YET DOCUMENTED
|
protected java.lang.String |
inputHelperFile |
protected java.lang.String |
normalizedXPath
NOT YET DOCUMENTED
|
protected org.dom4j.Element |
parent
NOT YET DOCUMENTED
|
RendererImpl |
renderer
NOT YET DOCUMENTED
|
protected RendererHelper |
rhelper
NOT YET DOCUMENTED
|
protected SchemaNode |
schemaNode
NOT YET DOCUMENTED
|
protected SchemaHelper |
sh
NOT YET DOCUMENTED
|
protected GlobalDef |
typeDef
NOT YET DOCUMENTED
|
protected java.lang.String |
xpath
NOT YET DOCUMENTED
|
Constructor and Description |
---|
MdeNode(RendererImpl renderer)
Constructor for the MdeNode object
|
Modifier and Type | Method and Description |
---|---|
protected void |
addHtmlComment(org.dom4j.Element e,
java.lang.String s)
Adds a feature to the HtmlComment attribute of the MdeNode object
|
protected void |
attachElementDebugInfo(org.dom4j.Element e,
java.lang.String s)
Attach a debugging message to this element that can be viewed in the
editing form.
|
protected void |
attachElementDebugInfo(org.dom4j.Element target,
java.lang.String displayText,
java.lang.String borderColor)
Attaches debugging info to a rendered element in the editor, optionally
including a border to outline the element.
|
protected void |
attachElementId(org.dom4j.Element e)
Add an "id" attribute to the provided element, with a value derived from
this node's "xpath".
|
protected void |
attachLabelDebugInfo(org.dom4j.Element e,
java.lang.String s)
Description of the Method
|
protected void |
attachLabelDebugInfo(org.dom4j.Element e,
java.lang.String s,
java.lang.String borderSpec)
Description of the Method
|
protected void |
attachLabelDebugInfo(Label labelObj,
java.lang.String s)
attach debuging information to a label object that is displayed in the
editor
|
protected org.dom4j.Element |
bestPracticesLink(java.lang.String xpath)
Return a Best Practices link represented as an Element.
|
protected void |
embedDebugInfo(org.dom4j.Element e,
java.lang.String s)
Embed a debugging string in the provided element that can be viewed in HTML
source.
|
protected org.dom4j.Element |
getDiv()
Gets the div attribute of the MdeNode object
|
protected org.dom4j.Element |
getDiv(int level)
Gets the div attribute of the MdeNode object
|
protected org.dom4j.Element |
getInputElement()
Gets a rendered inputElement for this node from the Renderer instance.
|
java.lang.String |
getInputHelperFile() |
protected org.dom4j.Namespace |
getInstanceSchemaNamespace()
Gets the schema namespace (associated with "http://www.w3.org/2001/XMLSchema")
for the root schema for the metadata framework for this Renderer.
|
java.lang.String |
getMode()
Gets the mode attribute of the MdeNode object - used for Debugging
|
protected java.lang.String |
getQualifiedAttributeName(java.lang.String name,
org.dom4j.Element element,
GlobalDef typeDef)
Gets the qualifiedAttributeName attribute of the Renderer object.
|
protected java.lang.String |
getQualifiedElementName(java.lang.String name,
GlobalDef typeDef)
Gets the qualifiedName attribute of the Renderer object
|
protected org.dom4j.Element |
getRenderedField(Label label,
org.dom4j.Element inputField)
Renders a Labelled input field (for a Simple or Built-in schema dataType.
|
protected org.dom4j.Element |
getRenderedNoInputField(Label label)
Displaying labels for elements that have no input field
|
protected org.dom4j.Element |
getRenderedNoInputField(Label label,
org.dom4j.Element action) |
protected org.dom4j.Element |
getRenderedNoInputField(Label label,
org.dom4j.Element action,
org.dom4j.Element inputHelper)
Creates Element for displaying labels, action controllers and
collapseWidgets for elements that have no input field.
|
protected java.lang.String |
getToolHelp(java.lang.String s)
Attempts to return a metadata vocab field definition for the input string
assuming it is an xpath.
|
protected void |
insertDisplaySetup(org.dom4j.Element baseDiv)
Creates element representing a mousable field label that will open or close
its contents.
|
protected void |
insertHtmlComment(org.dom4j.Element e,
java.lang.String s)
Insert an HTML comment into the html source.
|
protected boolean |
isDisplayMode()
Gets the displayMode attribute of the MdeNode object (KEEP)
|
protected boolean |
isEditMode()
Gets the editMode attribute of the MdeNode object
|
Renderer |
newRenderer(java.lang.String xpath,
org.dom4j.Element parent)
Gets a new renderer for the specified xpath and parent element.
|
Renderer |
newRenderer(java.lang.String xpath,
org.dom4j.Element parent,
GlobalDef typeDef)
Gets a new renderer for the specified xpath and parent element and typeDef.
|
protected void |
prtln(java.lang.String s)
Description of the Method
|
abstract void |
render()
NOT YET DOCUMENTED
|
static void |
setDebug(boolean bool)
Sets the debug attribute of the MdeNode class
|
protected SchemaHelper sh
protected java.lang.String xpath
protected org.dom4j.Element parent
protected SchemaNode schemaNode
protected GlobalDef typeDef
protected org.dom4j.DocumentFactory df
protected RendererHelper rhelper
protected java.lang.String formBeanName
protected java.lang.String normalizedXPath
public RendererImpl renderer
protected java.lang.String inputHelperFile
public MdeNode(RendererImpl renderer)
renderer
- NOT YET DOCUMENTEDpublic abstract void render()
public Renderer newRenderer(java.lang.String xpath, org.dom4j.Element parent)
xpath
- xpath for new rendererparent
- parent element for new rendererpublic Renderer newRenderer(java.lang.String xpath, org.dom4j.Element parent, GlobalDef typeDef)
xpath
- xpath for new rendererparent
- parent element for new renderertypeDef
- Explicitly specified typeDef for new rendererpublic java.lang.String getInputHelperFile()
protected boolean isEditMode()
protected boolean isDisplayMode()
public java.lang.String getMode()
protected org.dom4j.Element getInputElement()
protected org.dom4j.Element bestPracticesLink(java.lang.String xpath)
NOTE: apparently css class ("action-button") must be applyed to both the link and the text within to get consistent results in both IE and FireFox ...
xpath
- Description of the Parameterprotected org.dom4j.Namespace getInstanceSchemaNamespace()
protected java.lang.String getQualifiedElementName(java.lang.String name, GlobalDef typeDef)
name
- NOT YET DOCUMENTEDtypeDef
- NOT YET DOCUMENTEDprotected java.lang.String getQualifiedAttributeName(java.lang.String name, org.dom4j.Element element, GlobalDef typeDef)
NOTE: i don't think this method is required at all. if the instance document is constructed correctly, the attributes are already qualified as needed and there is no need to mess with it any further ..
name
- NOT YET DOCUMENTEDtypeDef
- NOT YET DOCUMENTEDelement
- NOT YET DOCUMENTEDprotected org.dom4j.Element getRenderedField(Label label, org.dom4j.Element inputField)
label
- Description of the ParameterinputField
- Description of the Parameterprotected org.dom4j.Element getRenderedNoInputField(Label label)
label
- Description of the Parameterprotected org.dom4j.Element getRenderedNoInputField(Label label, org.dom4j.Element action)
protected org.dom4j.Element getRenderedNoInputField(Label label, org.dom4j.Element action, org.dom4j.Element inputHelper)
label
- Description of the Parameteraction
- Description of the Parameterprotected org.dom4j.Element getDiv()
protected org.dom4j.Element getDiv(int level)
level
- Description of the Parameterprotected java.lang.String getToolHelp(java.lang.String s)
FieldInfoReader
for the xpath. If a FieldInfoReader cannot be found,
return the input string (encoded so whether an xpath or a regular string,
there won't be a javascript error)..s
- A string that may or may not corrrespond to a field that has
metadata-vocab definition informationprotected void embedDebugInfo(org.dom4j.Element e, java.lang.String s)
e
- NOT YET DOCUMENTEDs
- NOT YET DOCUMENTEDprotected void attachElementDebugInfo(org.dom4j.Element e, java.lang.String s)
e
- NOT YET DOCUMENTEDs
- NOT YET DOCUMENTEDprotected void attachElementDebugInfo(org.dom4j.Element target, java.lang.String displayText, java.lang.String borderColor)
target
- The Element to which the debugging element is attacheddisplayText
- The debugging messageborderColor
- NOT YET DOCUMENTEDprotected void attachLabelDebugInfo(org.dom4j.Element e, java.lang.String s, java.lang.String borderSpec)
e
- Description of the Parameters
- Description of the ParameterborderSpec
- NOT YET DOCUMENTEDprotected void attachLabelDebugInfo(org.dom4j.Element e, java.lang.String s)
e
- Description of the Parameters
- Description of the Parameterprotected void insertHtmlComment(org.dom4j.Element e, java.lang.String s)
e
- NOT YET DOCUMENTEDs
- NOT YET DOCUMENTEDprotected void addHtmlComment(org.dom4j.Element e, java.lang.String s)
e
- The feature to be added to the HtmlComment attributes
- The feature to be added to the HtmlComment attributeprotected void attachLabelDebugInfo(Label labelObj, java.lang.String s)
labelObj
- NOT YET DOCUMENTEDs
- NOT YET DOCUMENTEDprotected void attachElementId(org.dom4j.Element e)
e
- NOT YET DOCUMENTEDprotected void insertDisplaySetup(org.dom4j.Element baseDiv)
baseDiv
- Description of the Parameterprotected void prtln(java.lang.String s)
s
- Description of the Parameterpublic static void setDebug(boolean bool)
bool
- The new debug value