net.server.servlets
Class HtmlTable

java.lang.Object
  extended by net.server.servlets.HtmlTable

public class HtmlTable
extends java.lang.Object

The HtmlTable class encapsulates the functionality required to construct an HTML representation of a table. The number of rows and columns of the required table are specified as arguments to the constructor, as is the size of the border drawn around the table. The table can then be populated with data items using the setItem method. To retrieve the resulting table, the getHtml method is invoked.

Version:
1.00
Author:
Robert Lysik

Constructor Summary
HtmlTable(int r, int c, int b)
          This function sets the value of an element in the table specified by the parameters r and c passed in as arguments.
 
Method Summary
 java.lang.String getElement(int r, int c)
          This function returns the value of the element in the table as specified by the r and c parameters passed in as arguments.
 java.lang.String getHtml()
          This function returns the HTML script to generate the table as a string.
 void setElement(int r, int c, java.lang.String value)
          This function sets the value of an element in the table specified by the parameters r and c passed in as arguments.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTable

public HtmlTable(int r,
                 int c,
                 int b)
This function sets the value of an element in the table specified by the parameters r and c passed in as arguments.

Method Detail

setElement

public void setElement(int r,
                       int c,
                       java.lang.String value)
This function sets the value of an element in the table specified by the parameters r and c passed in as arguments.


getElement

public java.lang.String getElement(int r,
                                   int c)
This function returns the value of the element in the table as specified by the r and c parameters passed in as arguments.


getHtml

public java.lang.String getHtml()
This function returns the HTML script to generate the table as a string.