info.monitorenter.cpdetector.util.collections.ui
Class StreamTableRenderer

java.lang.Object
  extended by info.monitorenter.cpdetector.util.collections.ui.StreamTableRenderer
All Implemented Interfaces:
ITableRenderer
Direct Known Subclasses:
TableRendererHTML

public abstract class StreamTableRenderer
extends Object
implements ITableRenderer

Author:
Achim Westermann

Field Summary
protected  Writer m_out
           
 
Constructor Summary
StreamTableRenderer(Writer out)
           
 
Method Summary
protected abstract  String CellStartTag(boolean rowstart)
           
protected abstract  String CellStopTag(boolean rowend)
           
protected abstract  String HeadCellStartTag(boolean firstOrLast)
           
protected abstract  String HeadCellStopTag(boolean firstOrLast)
           
protected abstract  String HeadRowStartTag()
           
protected abstract  String HeadRowStopTag()
           
 void render(TableModel model)
          Render in any way: write to a stream, a file, display as widget...
protected  void renderCell(Object content, int firstOrLast)
           
protected  void renderHeader(TableModel model)
           
protected  void renderRow(TableModel model, int row)
           
protected abstract  String RowStartTag()
           
protected abstract  String RowStopTag()
           
protected abstract  String TableStartTag()
           
protected abstract  String TableStopTag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_out

protected Writer m_out
Constructor Detail

StreamTableRenderer

public StreamTableRenderer(Writer out)
Method Detail

renderHeader

protected final void renderHeader(TableModel model)
                           throws IOException
Throws:
IOException

HeadRowStartTag

protected abstract String HeadRowStartTag()

HeadRowStopTag

protected abstract String HeadRowStopTag()

HeadCellStopTag

protected abstract String HeadCellStopTag(boolean firstOrLast)

HeadCellStartTag

protected abstract String HeadCellStartTag(boolean firstOrLast)

renderRow

protected final void renderRow(TableModel model,
                               int row)
                        throws IOException
Throws:
IOException

RowStartTag

protected abstract String RowStartTag()

RowStopTag

protected abstract String RowStopTag()

renderCell

protected final void renderCell(Object content,
                                int firstOrLast)
                         throws IOException
Throws:
IOException

CellStartTag

protected abstract String CellStartTag(boolean rowstart)

CellStopTag

protected abstract String CellStopTag(boolean rowend)

render

public final void render(TableModel model)
                  throws IOException
Description copied from interface: ITableRenderer
Render in any way: write to a stream, a file, display as widget...

Specified by:
render in interface ITableRenderer
Throws:
IOException

TableStartTag

protected abstract String TableStartTag()

TableStopTag

protected abstract String TableStopTag()


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.