Class AbstractRenderableVisitor
- java.lang.Object
-
- com.levigo.jadice.server.html2fop.internal.process.visitor.AbstractRenderableVisitor
-
- All Implemented Interfaces:
RenderableImageElementVisitor
- Direct Known Subclasses:
RenderableHTMLImageElementCollector
public abstract class AbstractRenderableVisitor extends Object implements RenderableImageElementVisitor
Visitor pattern that handles the renderable collection traversal.
-
-
Constructor Summary
Constructors Constructor Description AbstractRenderableVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter(org.lobobrowser.html.domimpl.ModelNode modelNode)
Invoked upon entering the child modelNode traversal process.void
leave(org.lobobrowser.html.domimpl.ModelNode modelNode)
Invoked upon leaving the child modelNode traversal process.protected void
traverse(org.lobobrowser.html.domimpl.ModelNode modelNode)
Iterate over all model nodes and their child nodes.void
traverse(org.lobobrowser.html.renderer.RCollection rCollection)
Iterate over all renderables in the renderable collection.void
visit(org.lobobrowser.html.domimpl.ModelNode modelNode)
Invoked upon visiting a model node.void
visit(org.w3c.dom.html2.HTMLImageElement imageElement)
Invoked upon visiting an html image element.
-
-
-
Method Detail
-
traverse
public void traverse(org.lobobrowser.html.renderer.RCollection rCollection)
Iterate over all renderables in the renderable collection.- Specified by:
traverse
in interfaceRenderableImageElementVisitor
- Parameters:
rCollection
- the renderable collection.
-
traverse
protected void traverse(org.lobobrowser.html.domimpl.ModelNode modelNode)
Iterate over all model nodes and their child nodes.- Parameters:
modelNode
- the model node.
-
visit
public void visit(org.w3c.dom.html2.HTMLImageElement imageElement)
Invoked upon visiting an html image element.- Specified by:
visit
in interfaceRenderableImageElementVisitor
- Parameters:
imageElement
- the visited html image element.
-
visit
public void visit(org.lobobrowser.html.domimpl.ModelNode modelNode)
Invoked upon visiting a model node.- Specified by:
visit
in interfaceRenderableImageElementVisitor
- Parameters:
modelNode
- the visited model node.
-
enter
public void enter(org.lobobrowser.html.domimpl.ModelNode modelNode)
Invoked upon entering the child modelNode traversal process.- Specified by:
enter
in interfaceRenderableImageElementVisitor
- Parameters:
modelNode
- the child model node entered.
-
leave
public void leave(org.lobobrowser.html.domimpl.ModelNode modelNode)
Invoked upon leaving the child modelNode traversal process.- Specified by:
leave
in interfaceRenderableImageElementVisitor
- Parameters:
modelNode
- the child model node left.
-
-