|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.server.servlets.HtmlTable
public class HtmlTable
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.
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 |
---|
public HtmlTable(int r, int c, int b)
Method Detail |
---|
public void setElement(int r, int c, java.lang.String value)
public java.lang.String getElement(int r, int c)
public java.lang.String getHtml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |