java.lang.Object
jbreport.core.AbstractReportElement
jbreport.core.ReportCompositeImpl
jbreport.core.TableColumn
- All Implemented Interfaces:
- java.lang.Cloneable, jbreport.ReportComposite, jbreport.ReportElement, Traversable, XMLAware
- class TableColumn
- extends ReportCompositeImpl
This is used to contain the information about the column headers in a table.
- Version:
- $Revision: 1.1 $
|
Field Summary |
private java.lang.String |
id
The name of the column that this instance represents |
| Methods inherited from class jbreport.core.AbstractReportElement |
assert, assertNotNull, boundParameters, breakEventNotify, clone, copy, getBoundParamValue, getElement, getFactory, getName, getParent, getRepository, getStylesheet, getType, inOrderIterator, inOrderTraverse, postOrderIterator, postOrderTraverse, preLoadData, preOrderIterator, preOrderTraverse, setParent, xmlEnd |
| Methods inherited from interface jbreport.ReportElement |
boundParameters, copy, getBoundParamValue, getElement, getFactory, getName, getParent, getRepository, getStylesheet, getType, setParent, xmlEnd |
id
private java.lang.String id
- The name of the column that this instance represents
TableColumn
public TableColumn()
accept
public void accept(ReportVisitor visitor,
ReportVisitorState state)
throws jbreport.ReportException
- Description copied from interface:
Traversable
- This defines the operation that the Traversable instance must perform
at each node in the traversal. It should be coded such that it calls
an appropriate method on the ReportVisitor instance. Should an
appropriate method not exist, one should be coded.
The accept method should not recurse into its children, it
is the contract of the iterator to perform that function.
eg:- For node type Section the method on this node
should be as follows.
public void accept(ReportVisitor visitor, ReportVisitorState state)
throws ReportException {
visitor.visitSection(this, state);
}
- Specified by:
accept in interface Traversable- Overrides:
accept in class ReportCompositeImpl
getString
public java.lang.String getString(java.lang.String property,
java.lang.String defaultValue)
throws jbreport.ReportException
- Description copied from interface:
jbreport.ReportElement
- Returns the string value for the requested property.
- Specified by:
getString in interface jbreport.ReportElement- Overrides:
getString in class AbstractReportElement
setString
public void setString(java.lang.String property,
java.lang.String value)
throws jbreport.ReportException
- Description copied from interface:
jbreport.ReportElement
- Sets the value of the given property to that given.
- Specified by:
setString in interface jbreport.ReportElement- Overrides:
setString in class AbstractReportElement
xmlInitialize
public void xmlInitialize(java.lang.String localName,
org.xml.sax.Attributes attributes)
throws jbreport.ReportException
- Description copied from interface:
jbreport.ReportElement
- This should initialize the instance with data obtained during the
traversal of an xml tree. The child-parent relationship is catered for
with the
xmlEndChild() method.
- Specified by:
xmlInitialize in interface jbreport.ReportElement- Overrides:
xmlInitialize in class AbstractReportElement
xmlEndChild
public void xmlEndChild(jbreport.ReportElement elem)
throws jbreport.ReportException
- Description copied from interface:
jbreport.ReportElement
- This method is called for every child element that is defined during
xml tree traversal. In order to preserve the tree, it will only be
called at the end of the child definition.
- Specified by:
xmlEndChild in interface jbreport.ReportElement- Overrides:
xmlEndChild in class ReportCompositeImpl