|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.xml.render.AbstractRenderer com.taursys.xml.render.VisibleRenderer com.taursys.xml.render.DocumentElementRenderer com.taursys.xml.render.TemplateRenderer
TemplateRenderer is a subcomponent which renders a Template by replication.
Field Summary |
Fields inherited from class com.taursys.xml.render.AbstractRenderer |
id, parentDocumentAdapter |
Constructor Summary | |
TemplateRenderer(Template template)
Constructs a new TemplateRenderer |
Method Summary | |
protected void |
alterIDs(org.w3c.dom.Element parent,
java.lang.String appendValue)
Alter ID's for this node and its children recursively to avoid duplicates. |
protected void |
cloneSelf(java.lang.String appendValue)
Populate children of this node and create a clone of this node. |
java.util.Collection |
getClones()
Get the collection of cloned nodes which were generated by the render method. |
void |
recycle()
Recycles this component by restoring the Document element to a default state. |
protected void |
removeClones()
Remove all clones from parentNode and clear clones Collection. |
void |
render()
Renders the Template and its children to the Document. |
Methods inherited from class com.taursys.xml.render.DocumentElementRenderer |
renderContents |
Methods inherited from class com.taursys.xml.render.AbstractRenderer |
getComponent, getComponentNode, getDocument, getParentNode, getSiblingNode, init, isRemoved, removeSelf, restoreSelf, setRemoved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateRenderer(Template template)
Method Detail |
public void recycle() throws RecycleException
If a Document element was left invisible, and the Document changed, then the invisible component would become dereferenced.
recycle
in class DocumentElementRenderer
RecycleException
- if problem occurs during recycling.public void render() throws RenderException
render
in class AbstractRenderer
RenderException
- if any problem occurs during renderingprotected void removeClones()
protected void cloneSelf(java.lang.String appendValue)
appendValue
- to append to ID's to avoid duplicates during cloningprotected void alterIDs(org.w3c.dom.Element parent, java.lang.String appendValue)
public java.util.Collection getClones()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |