org.radeox.macro.table
Class Table

java.lang.Object
  |
  +--org.radeox.macro.table.Table

public class Table
extends java.lang.Object

A Table implementation primarly for the table macro

Version:
$Id: Table.java,v 1.6 2003/05/23 10:47:25 stephan Exp $
Author:
stephan

Constructor Summary
Table()
           
 
Method Summary
 void addCell(java.lang.String content)
          Add a cell to the current row of the table
 java.io.Writer appendTo(java.io.Writer writer)
          Serialize table by appending it to a writer.
 void calc()
          Recalculate all cells.
 java.lang.Object getXY(int x, int y)
           
 void newRow()
          Finishes current row and starts a new one
 void setXY(int x, int y, java.lang.Object content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table()
Method Detail

getXY

public java.lang.Object getXY(int x,
                              int y)

setXY

public void setXY(int x,
                  int y,
                  java.lang.Object content)

addCell

public void addCell(java.lang.String content)
Add a cell to the current row of the table

Parameters:
content - Content of the cell

newRow

public void newRow()
Finishes current row and starts a new one


calc

public void calc()
Recalculate all cells. Currently does nothing.


appendTo

public java.io.Writer appendTo(java.io.Writer writer)
                        throws java.io.IOException
Serialize table by appending it to a writer. The output format is HTML.

Parameters:
writer - Writer to append the table object to
Returns:
writer Writer the table object appended itself to
java.io.IOException


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.