|
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.RendererHelper
public class RendererHelper
Manages global rhelper information for a Renderer Instance as well as providing a renderer factory for instantiating new renderer objects.
See Renderer
and it's concrete
subclasses.
Field Summary | |
---|---|
int |
counter
Keeps track of number of Renderer instantiations to guard against infinite loops |
static int |
DEFAULT_TEXT_INPUT_SIZE
|
boolean |
showElementDebugInfo
Causes debugging information about each element to be shown in editor |
boolean |
showLabelDebugInfo
Causes debugging information about the element labels to be shown in editor |
Constructor Summary | |
---|---|
RendererHelper(Element root,
MetaDataFramework framework,
String formBeanName)
Constructor for the RendererHelper object |
|
RendererHelper(Element root,
MetaDataFramework framework,
String formBeanName,
String renderer)
Constructor for the RendererHelper object with renderer class name explicitly specified. |
Method Summary | |
---|---|
Element |
acceptsNewChioceTest(String path)
NOT YET DOCUMENTED |
Element |
acceptsNewSiblingTest(String path)
NOT YET DOCUMENTED |
void |
attachElementDebugInfo(Element target,
String displayText,
String borderColor)
NOT YET DOCUMENTED |
void |
attachMessages(Element container,
String xpath)
Description of the Method |
void |
attachToolHelp(Element e,
String helpMsg)
Attach a pop-up tool help message to an element |
void |
destroy()
NOT YET DOCUMENTED |
void |
embedDebugInfo(Element e,
String s)
NOT YET DOCUMENTED |
static String |
encodeIndexId(String xpath)
Given a "siblingPath" (xpath with no indexing on leaf node), create a javascript variable to use for indexed elements. |
int |
getBaseLevel()
Gets the baseLevel attribute of the RendererHelper object. |
FieldInfoReader |
getFieldInfo(String xpath)
returns the FieldInfoReader for the given xpath, or null if one does not exist |
String |
getFormBeanName()
Gets the formBeanName attribute of the RendererHelper object |
MetaDataFramework |
getFramework()
Gets the framework attribute of the RendererHelper object |
String |
getInputHelperFile(String xpath)
Returns the configured inputHelper value for the provided xpath (inputHelper value is relative to the /editor/input_helper directory in the deployed app |
int |
getMaxLen(String xpath)
Gets the maxLen attribute of the RendererHelper object |
RendererImpl |
getRenderer(String xpath,
Element parent)
Renderer factory returns a Renderer instance for the schemaNode at xpath. |
RendererImpl |
getRenderer(String xpath,
Element parent,
GlobalDef typeDef)
Renderer factory returns a Renderer instance for the schemaNode at xpath, possibly with a "proxy dataType" (if provided) that will override the dataType associated with the schemaNode. |
String |
getRendererClassName()
Gets the rendererClassName attribute of the RendererHelper object |
Element |
getRoot()
Gets the root attribute of the RendererHelper object |
SchemaHelper |
getSchemaHelper()
Gets the schemaHelper attribute of the RendererHelper object |
String |
getToolHelp(String s)
Attempts to return a metadata vocab field definition for the input string assuming it is an xpath. |
boolean |
hasFieldInfo(String xpath)
Description of the Method |
boolean |
hasInputHelper(String xpath)
Returns true if the provided path is configured with an inputHelper |
boolean |
hasMuiGroupInfo(String xpath)
Return if there is Mui Grouping Information available for this field. |
boolean |
hasVocabLayout(String xpath)
NOT YET DOCUMENTED |
static Element |
jspInclude(String page)
NOT YET DOCUMENTED |
static String |
jspQuotedString(String s)
returns the input string surrounded by a string that is replaced with a quotation mark when the rendered Element is writen to disk. |
Element |
nodeExistsTest(String path)
Creates a test for the existence of a node in the instance document at the given path |
Element |
nodeHasChildrenTest(String path)
NOT YET DOCUMENTED |
Element |
nodeHasMembersTest(String path)
NOT YET DOCUMENTED |
Element |
nodeHasNoMembersTest(String path)
NOT YET DOCUMENTED |
Element |
nodeNotExistsTest(String path)
Creates an element that tests for the NON-existence of an instance document node at the given path |
static String |
normalizeXPath(String encodedXPpath)
Removes any and all indexing information from an XPath. |
Element |
parentNodeExistsTest(String xpath)
Creates a test for the existance of the parentNode of the node being rendered |
Element |
parentNodeNotExistsTest(String xpath)
NOT YET DOCUMENTED |
static void |
setDebug(boolean bool)
Sets the debug attribute of the RendererHelper class |
void |
setFormBeanName(String beanName)
Sets the formBeanName attribute of the RendererHelper object |
static void |
setLogging(boolean verbose)
Sets the logging attribute of the RendererHelper class |
Element |
viewNodeTest(String xpath)
Used by the viewing classes (not the editing classes) to test that a node exists and has content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_TEXT_INPUT_SIZE
public boolean showElementDebugInfo
public boolean showLabelDebugInfo
public int counter
Constructor Detail |
---|
public RendererHelper(Element root, MetaDataFramework framework, String formBeanName, String renderer)
EditorViewerRenderer
,
for which the renderer cannot be obtained from the MetaDataFramework.
root
- Description of the Parameterframework
- Description of the ParameterformBeanName
- Description of the Parameterrenderer
- Description of the Parameterpublic RendererHelper(Element root, MetaDataFramework framework, String formBeanName)
root
- root Element
to be renderedframework
- MetaDataFramework representing the XML Schema to be
usedformBeanName
- Description of the ParameterMethod Detail |
---|
public void attachElementDebugInfo(Element target, String displayText, String borderColor)
target
- NOT YET DOCUMENTEDdisplayText
- NOT YET DOCUMENTEDborderColor
- NOT YET DOCUMENTEDpublic void embedDebugInfo(Element e, String s)
e
- NOT YET DOCUMENTEDs
- NOT YET DOCUMENTEDpublic final RendererImpl getRenderer(String xpath, Element parent)
xpath
- xpath for node to be renderedparent
- parent element to which to attach rendered node
public final RendererImpl getRenderer(String xpath, Element parent, GlobalDef typeDef)
xpath
- xpath for node to be renderedparent
- parent element to which to attach rendered nodetypeDef
- NOT YET DOCUMENTED
public static String normalizeXPath(String encodedXPpath)
encodedXPpath
- Description of the Parameter
public String getRendererClassName()
public int getMaxLen(String xpath)
xpath
- NOT YET DOCUMENTED
public String getFormBeanName()
public void setFormBeanName(String beanName)
beanName
- The new formBeanName valuepublic SchemaHelper getSchemaHelper()
public MetaDataFramework getFramework()
public Element getRoot()
public boolean hasMuiGroupInfo(String xpath)
xpath
- NOT YET DOCUMENTED
public boolean hasVocabLayout(String xpath)
xpath
- NOT YET DOCUMENTED
public boolean hasFieldInfo(String xpath)
xpath
- Description of the Parameter
public FieldInfoReader getFieldInfo(String xpath)
xpath
- Description of the Parameter
public boolean hasInputHelper(String xpath)
xpath
- NOT YET DOCUMENTED
public String getInputHelperFile(String xpath)
xpath
- NOT YET DOCUMENTED
public int getBaseLevel()
public static final String encodeIndexId(String xpath)
xpath
- NOT YET DOCUMENTED
public static final String jspQuotedString(String s)
s
- Description of the Parameter
public static Element jspInclude(String page)
page
- NOT YET DOCUMENTED
public Element parentNodeExistsTest(String xpath)
xpath
- NOT YET DOCUMENTED
public Element parentNodeNotExistsTest(String xpath)
xpath
- NOT YET DOCUMENTED
public Element nodeExistsTest(String path)
path
- Description of the Parameter
public Element nodeHasChildrenTest(String path)
path
- NOT YET DOCUMENTED
public Element nodeHasMembersTest(String path)
path
- NOT YET DOCUMENTED
public Element nodeHasNoMembersTest(String path)
path
- NOT YET DOCUMENTED
public Element acceptsNewSiblingTest(String path)
path
- NOT YET DOCUMENTED
public Element acceptsNewChioceTest(String path)
path
- NOT YET DOCUMENTED
public Element nodeNotExistsTest(String path)
path
- Description of the Parameter
public Element viewNodeTest(String xpath)
NOTE: should this method be ABSTRACT here, and only instantiated in DcsView utils?? (it must be at least declared here, since it is referenced from the renderer, which has obtained utils as RenderUtils.
xpath
- NOT YET DOCUMENTED
public void attachMessages(Element container, String xpath)
container
- Description of the Parameterxpath
- NOT YET DOCUMENTEDpublic void attachToolHelp(Element e, String helpMsg)
e
- The element to recieve the tool helphelpMsg
- Description of the Parameterpublic String getToolHelp(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 information
public static void setLogging(boolean verbose)
verbose
- The new logging valuepublic void destroy()
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 |