org.jfree.report.modules.parser.ext
Class BandHandler

java.lang.Object
  extended byorg.jfree.report.modules.parser.ext.AbstractExtReportParserHandler
      extended byorg.jfree.report.modules.parser.ext.ElementHandler
          extended byorg.jfree.report.modules.parser.ext.BandHandler
All Implemented Interfaces:
org.jfree.xml.ElementDefinitionHandler

public class BandHandler
extends ElementHandler

A band handler. Handles the creation of a band. Bands can contain other bands or elements and have a DefaultStyle, which is assigned to all child elements.

Author:
Thomas Morgner

Field Summary
static java.lang.String BAND_TAG
          The 'band' tag.
static java.lang.String DEFAULT_STYLE_TAG
          The 'default-style' tag.
static java.lang.String ELEMENT_TAG
          The 'element' tag.
 
Fields inherited from class org.jfree.report.modules.parser.ext.ElementHandler
DATASOURCE_TAG, STYLE_TAG, TEMPLATE_TAG
 
Constructor Summary
BandHandler(ReportParser parser, java.lang.String finishTag, Band band, CommentHintPath path)
          Creates a new band handler.
 
Method Summary
 void endElement(java.lang.String tagName)
          Callback to indicate that an XML element end tag has been read by the parser.
 void startElement(java.lang.String tagName, org.xml.sax.Attributes attrs)
          Callback to indicate that an XML element start tag has been read by the parser.
 
Methods inherited from class org.jfree.report.modules.parser.ext.ElementHandler
characters, createCommentPath, getCommentPath, getElement
 
Methods inherited from class org.jfree.report.modules.parser.ext.AbstractExtReportParserHandler
addComment, getFinishTag, getParser, getParserHints, getReport, getReportParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAND_TAG

public static final java.lang.String BAND_TAG
The 'band' tag.

See Also:
Constant Field Values

ELEMENT_TAG

public static final java.lang.String ELEMENT_TAG
The 'element' tag.

See Also:
Constant Field Values

DEFAULT_STYLE_TAG

public static final java.lang.String DEFAULT_STYLE_TAG
The 'default-style' tag.

See Also:
Constant Field Values
Constructor Detail

BandHandler

public BandHandler(ReportParser parser,
                   java.lang.String finishTag,
                   Band band,
                   CommentHintPath path)
Creates a new band handler.

Parameters:
parser - the parser.
finishTag - the finish tag.
band - the band.
path - the path on where to search for ext-parser comments in the report builder hints.
Method Detail

startElement

public void startElement(java.lang.String tagName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Callback to indicate that an XML element start tag has been read by the parser.

Specified by:
startElement in interface org.jfree.xml.ElementDefinitionHandler
Overrides:
startElement in class ElementHandler
Parameters:
tagName - the tag name.
attrs - the attributes.
Throws:
org.xml.sax.SAXException - if a parser error occurs or the validation failed.

endElement

public void endElement(java.lang.String tagName)
                throws org.xml.sax.SAXException
Callback to indicate that an XML element end tag has been read by the parser.

Specified by:
endElement in interface org.jfree.xml.ElementDefinitionHandler
Overrides:
endElement in class ElementHandler
Parameters:
tagName - the tag name.
Throws:
org.xml.sax.SAXException - if a parser error occurs or the validation failed.