Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jbreport.core
Class TableRow  view TableRow download TableRow.java

java.lang.Object
  extended byjbreport.core.AbstractReportElement
      extended byjbreport.core.TableRow
All Implemented Interfaces:
java.lang.Cloneable, jbreport.ReportElement, Traversable, XMLAware

class TableRow
extends AbstractReportElement

This contains all the data relating to a single row in the table. The number of columns obtained from the table.

Version:
$Revision: 1.1 $

Field Summary
private  java.util.List cells
          The string values of the table row elements
 
Fields inherited from class jbreport.core.AbstractReportElement
attrType, cdata, className, elementType, factory, name, xmlHandler
 
Fields inherited from interface jbreport.ReportElement
DEEP, SHALLOW
 
Constructor Summary
TableRow()
           
 
Method Summary
 void accept(ReportVisitor visitor, ReportVisitorState state)
          This defines the operation that the Traversable instance must perform at each node in the traversal.
 void addCellData(java.lang.String data)
           
 java.util.List getList(java.lang.String property)
          Returns the List instance for the given property name.
 void updateData(jbreport.data.QueryResult queryResult)
          This is called for every successful next() method call on the QueryResult contained by a group.
 
Methods inherited from class jbreport.core.AbstractReportElement
assert, assertNotNull, boundParameters, breakEventNotify, clone, copy, copy, getBoundParamValue, getElement, getFactory, getName, getParent, getRepository, getString, getStylesheet, getType, inOrderIterator, inOrderTraverse, loadData, postOrderIterator, postOrderTraverse, preLoadData, preOrderIterator, preOrderTraverse, setParent, setString, xmlEnd, xmlEndChild, xmlInitialize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cells

private java.util.List cells
The string values of the table row elements

Constructor Detail

TableRow

public TableRow()
Method Detail

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 AbstractReportElement

getList

public java.util.List getList(java.lang.String property)
Description copied from interface: jbreport.ReportElement
Returns the List instance for the given property name.

Specified by:
getList in interface jbreport.ReportElement
Overrides:
getList in class AbstractReportElement

updateData

public void updateData(jbreport.data.QueryResult queryResult)
                throws jbreport.ReportException
Description copied from class: AbstractReportElement
This is called for every successful next() method call on the QueryResult contained by a group.

Overrides:
updateData in class AbstractReportElement

addCellData

public void addCellData(java.lang.String data)