Class Table


  • public class Table
    extends Object
    A Table implementation primarly for the table macro
    Version:
    $Id$
    Author:
    stephan
    • Constructor Detail

      • Table

        public Table()
    • Method Detail

      • setAttribute

        public void setAttribute​(String attributeName,
                                 String attributeValue)
      • 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