henplus.view
Class TableRenderer

java.lang.Object
  extended by henplus.view.TableRenderer
Direct Known Subclasses:
ExtendedTableRenderer

public class TableRenderer
extends Object

document me.


Field Summary
protected  String colSeparator
           
protected  ColumnMetaData[] meta
           
protected  OutputDevice out
           
 
Constructor Summary
TableRenderer(ColumnMetaData[] meta, OutputDevice out)
           
TableRenderer(ColumnMetaData[] meta, OutputDevice out, String separator, boolean enableHeader, boolean enableFooter)
           
 
Method Summary
 void addRow(Column[] row)
           
protected  void addRowToCache(Column[] row)
           
 void closeTable()
           
 void flush()
          flush the cached rows.
protected  String formatString(String text, char fillchar, int len, int alignment)
           
 ColumnMetaData[] getMetaData()
          return the meta data that is used to display this table.
protected  boolean printColumn(Column col, boolean hasMoreLines, int i)
           
protected  boolean printColumns(Column[] currentRow, boolean hasMoreLines)
           
protected  void updateColumnWidths(Column[] row)
          Overwrite this method if you need to handle customized columns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

meta

protected final ColumnMetaData[] meta

out

protected final OutputDevice out

colSeparator

protected final String colSeparator
Constructor Detail

TableRenderer

public TableRenderer(ColumnMetaData[] meta,
                     OutputDevice out,
                     String separator,
                     boolean enableHeader,
                     boolean enableFooter)

TableRenderer

public TableRenderer(ColumnMetaData[] meta,
                     OutputDevice out)
Method Detail

addRow

public void addRow(Column[] row)

addRowToCache

protected void addRowToCache(Column[] row)

getMetaData

public ColumnMetaData[] getMetaData()
return the meta data that is used to display this table.


updateColumnWidths

protected void updateColumnWidths(Column[] row)
Overwrite this method if you need to handle customized columns.

Parameters:
row -

closeTable

public void closeTable()

flush

public void flush()
flush the cached rows.


printColumns

protected boolean printColumns(Column[] currentRow,
                               boolean hasMoreLines)

printColumn

protected boolean printColumn(Column col,
                              boolean hasMoreLines,
                              int i)

formatString

protected String formatString(String text,
                              char fillchar,
                              int len,
                              int alignment)


? 1997..2006 Henner Zeller