com.taursys.xml.render
Class FormRenderer

java.lang.Object
  extended bycom.taursys.xml.render.AbstractRenderer
      extended bycom.taursys.xml.render.VisibleRenderer
          extended bycom.taursys.xml.render.DocumentElementRenderer
              extended bycom.taursys.xml.render.FormRenderer

public class FormRenderer
extends DocumentElementRenderer

FormRenderer is used by Subforms to inject their contents into their parent document.

Version:
1.0
Author:
Marty Phelan

Field Summary
 
Fields inherited from class com.taursys.xml.render.AbstractRenderer
id, parentDocumentAdapter
 
Constructor Summary
FormRenderer(Form de)
          Constructs a new FormRenderer
 
Method Summary
protected  void init()
          Initializes reference to parentNode and siblingNode.
 void render()
          Renders the DocumentElement by showing or hiding it.
 
Methods inherited from class com.taursys.xml.render.DocumentElementRenderer
recycle, renderContents
 
Methods inherited from class com.taursys.xml.render.AbstractRenderer
getComponent, getComponentNode, getDocument, getParentNode, getSiblingNode, isRemoved, removeSelf, restoreSelf, setRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormRenderer

public FormRenderer(Form de)
Constructs a new FormRenderer

Method Detail

init

protected void init()
             throws RenderException
Initializes reference to parentNode and siblingNode. Only acts if componentNode is null and document has not changed

Overrides:
init in class AbstractRenderer
Throws:
RenderException - if parent, DocumentAdapter, or Document is null.

render

public void render()
            throws RenderException
Renders the DocumentElement by showing or hiding it. If it is visible, it invokes the DocumentElement's renderDispatcher to dispatch to the children. It then copies the nested document to this document.

Overrides:
render in class AbstractRenderer
Throws:
RenderException - if any problem occurs during rendering


Copyright © 2007 Martin T Phelan. All Rights Reserved.