com.ibm.designer.domino.xsp.api.visual
Class AbstractVisualizationFactory.RenderChildrenRecursiveCallback

java.lang.Object
  extended by com.ibm.designer.domino.xsp.api.visual.AbstractVisualizationFactory.RenderChildrenRecursiveCallback
All Implemented Interfaces:
AbstractVisualizationFactory.IVisualizationCallback
Enclosing class:
AbstractVisualizationFactory

public static class AbstractVisualizationFactory.RenderChildrenRecursiveCallback
extends java.lang.Object
implements AbstractVisualizationFactory.IVisualizationCallback

A default implementation of com.ibm.designer.domino.xsp.api.visual.AbstractVisualizationFactory.IVisualizationCallback. Will recursively walk down through the DOM node hierarchy printing all tags encountered by default.


Constructor Summary
AbstractVisualizationFactory.RenderChildrenRecursiveCallback()
           
 
Method Summary
 java.lang.String renderInTag(org.w3c.dom.Node tagBeingRendered, FacesRegistry registry)
          Called while a node is being printed to buffer.
 boolean shouldRecurseInto(org.w3c.dom.Node node, FacesRegistry registry)
          Returns true if the print operation should recurse into the given tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVisualizationFactory.RenderChildrenRecursiveCallback

public AbstractVisualizationFactory.RenderChildrenRecursiveCallback()
Method Detail

renderInTag

public java.lang.String renderInTag(org.w3c.dom.Node tagBeingRendered,
                                    FacesRegistry registry)
Description copied from interface: AbstractVisualizationFactory.IVisualizationCallback
Called while a node is being printed to buffer. This method is typically called while a node is being printed, after the opening tag has been printed but before the closing tag is printed. This method allows clients to insert custom markup between the opening and closing tag, e.g.
<xp:text>-renderInTag inserted this text-</xp:text>

Specified by:
renderInTag in interface AbstractVisualizationFactory.IVisualizationCallback
Parameters:
tagBeingRendered - the node that is currently being printed
registry - the FacesRegistry for the current application
Returns:
any custom markup that should be inserted between the opening and closing tags of tagBeingRendered

shouldRecurseInto

public boolean shouldRecurseInto(org.w3c.dom.Node node,
                                 FacesRegistry registry)
Description copied from interface: AbstractVisualizationFactory.IVisualizationCallback
Returns true if the print operation should recurse into the given tag. Clients should be careful of always returning true for this method as it will imply that the entire DOM of the provided tag will be recursed.

Specified by:
shouldRecurseInto in interface AbstractVisualizationFactory.IVisualizationCallback
Parameters:
node - the node currently being printed
registry - the FacesRegistry for the current application
Returns:
true if the print code should render the children of the given node