|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.xml.render.AbstractRenderer
AbstractRenderer is the base class for all Renderers. It contains common behavior for removing(hiding) and restoring(showing) the component.
Field Summary | |
protected java.lang.String |
id
|
protected DocumentAdapter |
parentDocumentAdapter
|
Constructor Summary | |
AbstractRenderer(Component c)
Constructs a new AbstractRenderer for the given Component |
Method Summary | |
Component |
getComponent()
Get the component for this renderer |
protected org.w3c.dom.Node |
getComponentNode()
Get the component node which will be replicated. |
org.w3c.dom.Document |
getDocument()
Get the Document for this renderer |
org.w3c.dom.Node |
getParentNode()
Get the parent node for the component node. |
org.w3c.dom.Node |
getSiblingNode()
Get the sibling node for the component node or null if none. |
protected void |
init()
Initializes reference to parentNode and siblingNode. |
boolean |
isRemoved()
Get an indicator of whether or not the master component node has been removed. |
protected void |
removeSelf()
Remove self from parent/Document (usually done after all nodes populated). |
void |
render()
Renders the Component by adding or removing it from the document based on visible property and invokes renderContents if component is visible. |
protected abstract void |
renderContents()
Invoked by render method if component's visible property is true, to render the contents of this component. |
protected void |
restoreSelf()
Restore self to parent/Document. |
void |
setRemoved(boolean b)
Set an indicator of whether or not the master component node has been removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DocumentAdapter parentDocumentAdapter
protected java.lang.String id
Constructor Detail |
public AbstractRenderer(Component c)
c
- Component which owns this rendererMethod Detail |
protected void init() throws RenderException
RenderException
- if parent, DocumentAdapter, or Document is null.protected void removeSelf()
protected void restoreSelf()
public void render() throws RenderException
RenderException
- if any problem occurs during renderingprotected abstract void renderContents() throws RenderException
RenderException
protected org.w3c.dom.Node getComponentNode()
public org.w3c.dom.Node getParentNode()
public org.w3c.dom.Node getSiblingNode()
public Component getComponent()
public org.w3c.dom.Document getDocument()
public void setRemoved(boolean b)
b
- an indicator of whether or not the master component node has been removed.public boolean isRemoved()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |