org.shapelogic.reporting
Class BaseTableBuilder

java.lang.Object
  extended by org.shapelogic.reporting.BaseTableBuilder
Direct Known Subclasses:
IJTableBuilder

public class BaseTableBuilder
extends java.lang.Object

BaseTableBuilder is the Builder design pattern.
For convenience the Director is combined with the Builder.

Author:
Sami Badawi

Field Summary
protected  java.util.List _outputList
           
protected  TableDefinition _tableDefinition
           
 
Constructor Summary
BaseTableBuilder(TableDefinition tableDefinition)
           
BaseTableBuilder(TableDefinition tableDefinition, boolean createOutputList)
           
 
Method Summary
 void buildHeadline()
           
 void buildHeadlineElement(int column)
           
 void buildLine(int line)
          Write out next lime.
 void buildLineElement(int column, int line)
           
 void buildTable(int startLine, int endLine)
          This should have been done by a director.
 int getColumns()
           
 java.util.List getOutputList()
           
 void makeOutputList()
          For testing purpose you can write the table out to an OutputList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_outputList

protected java.util.List _outputList

_tableDefinition

protected TableDefinition _tableDefinition
Constructor Detail

BaseTableBuilder

public BaseTableBuilder(TableDefinition tableDefinition)

BaseTableBuilder

public BaseTableBuilder(TableDefinition tableDefinition,
                        boolean createOutputList)
Method Detail

buildHeadlineElement

public void buildHeadlineElement(int column)

buildHeadline

public void buildHeadline()

buildLineElement

public void buildLineElement(int column,
                             int line)

buildLine

public void buildLine(int line)
Write out next lime.


buildTable

public void buildTable(int startLine,
                       int endLine)
This should have been done by a director.


makeOutputList

public void makeOutputList()
For testing purpose you can write the table out to an OutputList.


getOutputList

public java.util.List getOutputList()

getColumns

public int getColumns()


Copyright © 2009. All Rights Reserved.