Package org.radeox.macro.table
Class Table
- java.lang.Object
-
- org.radeox.macro.table.Table
-
public class Table extends Object
A Table implementation primarly for the table macro- Version:
- $Id$
- Author:
- stephan
-
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCell(String content)Add a cell to the current row of the tablevoidaddText(String content)WriterappendTo(Writer writer)Serialize table by appending it to a writer.voidcalc()Recalculate all cells.ObjectgetXY(int x, int y)voidnewCell()voidnewRow()Finishes current row and starts a new onevoidsetAttribute(String attributeName, String attributeValue)voidsetXY(int x, int y, Object content)
-
-
-
Method Detail
-
getXY
public Object getXY(int x, int y)
-
setXY
public void setXY(int x, int y, Object content)
-
addCell
public void addCell(String content)
Add a cell to the current row of the table- Parameters:
content- Content of the cell
-
newCell
public void newCell()
-
addText
public void addText(String content)
-
newRow
public void newRow()
Finishes current row and starts a new one
-
calc
public void calc()
Recalculate all cells. Currently does nothing.
-
appendTo
public Writer appendTo(Writer writer) throws 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
- Throws:
IOException
-
-