wt.part
Class HtmlPreformattedHierarchyVisitor

java.lang.Object
  extended by wt.visitor.VisitorAdapter
      extended by wt.visitor.TextOutputVisitor
          extended by wt.part.BOMHierarchyVisitor
              extended by wt.part.HtmlPreformattedHierarchyVisitor
All Implemented Interfaces:
Serializable, Visitor
Direct Known Subclasses:
HtmlNumberedHierarchyVisitor

public class HtmlPreformattedHierarchyVisitor
extends BOMHierarchyVisitor
implements Serializable

This class is used to generate pre-formatted HTML. The preNavigateWrite() and postNavigateWrite() methods are used to output the appropriate HTML "PRE" tags. The level in the hierarchy is indicated by using indentation (spaces).

Supported API: true

Extendable: true

See Also:
Serialized Form

Method Summary
 void postNavigateWrite()
          This method should be called after navigating the structure.
protected  void postVisitWrite(int a_level)
          This method is called from the visit() method after the node text is written.
 void preNavigateWrite()
          This method should be called prior to navigating the structure.
protected  void preVisitWrite(int a_level)
          This method is called from the visit() method before the node text is written.
 
Methods inherited from class wt.part.BOMHierarchyVisitor
getMessageKey, midVisitParams, visit
 
Methods inherited from class wt.visitor.TextOutputVisitor
getPrintWriter, getResourceBundle, printLocalizedMessage, printLocalizedMessage, printLocalizedMessage, setPrintWriter, setPrintWriter, setResourceBundle
 
Methods inherited from class wt.visitor.VisitorAdapter
visitLevel, visitLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

preNavigateWrite

public void preNavigateWrite()
This method should be called prior to navigating the structure. This implementation outputs the "PRE" tag.

Supported API: true

Overrides:
preNavigateWrite in class BOMHierarchyVisitor

postNavigateWrite

public void postNavigateWrite()
This method should be called after navigating the structure. This implementation outputs the "/PRE" tag.

Supported API: true

Overrides:
postNavigateWrite in class BOMHierarchyVisitor

preVisitWrite

protected void preVisitWrite(int a_level)
This method is called from the visit() method before the node text is written.

Supported API: true

Specified by:
preVisitWrite in class BOMHierarchyVisitor
Parameters:
a_level -

postVisitWrite

protected void postVisitWrite(int a_level)
This method is called from the visit() method after the node text is written.

Supported API: true

Specified by:
postVisitWrite in class BOMHierarchyVisitor
Parameters:
a_level -