com.jrefinery.report.io.ext
Class BandHandler

java.lang.Object
  |
  +--com.jrefinery.report.io.ext.ElementHandler
        |
        +--com.jrefinery.report.io.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 com.jrefinery.report.io.ext.ElementHandler
DATASOURCE_TAG, STYLE_TAG, TEMPLATE_TAG
 
Constructor Summary
BandHandler(org.jfree.xml.Parser parser, java.lang.String finishTag, Band band)
          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 com.jrefinery.report.io.ext.ElementHandler
characters, getElement, getParser, getStyleCollection
 
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(org.jfree.xml.Parser parser,
                   java.lang.String finishTag,
                   Band band)
Creates a new band handler.

Parameters:
parser - the parser.
finishTag - the finish tag.
band - the band.
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.