HTMLWriter
Class HWTable

java.lang.Object
  |
  +--HTMLWriter.HWTable

public class HWTable
extends java.lang.Object

HWTable.java Handles the creation and filling of tables. Created: Tue Aug 21 11:55:00 2001

Version:
1.0
Author:
Ari Turetzky

Constructor Summary
HWTable()
          Constructor Accepts no arguments sets basic attbutes
 
Method Summary
 void addData(java.lang.String strData)
          Adds a TD tag and data to the table
 void addRow(java.lang.String[] strData)
          Inserts a new row to the table.
 void endRow()
          Ends a row in the table
 void endTable()
          adds the closing tags to the table
 java.lang.String getBorder()
          This accessor function returns the Border attribute of the table
 java.lang.String getCellPadding()
          This accessor function returns the CellPadding attribute of the table
 java.lang.String getHeight()
          This will return the height attribute of the table
 java.lang.String getTable()
          Returns the sting value of the table
 java.lang.String getWidth()
          This will return the width attribute of the table
 void setBorder(int iBorder)
          This accessor function sets the Border attribute of the table
 void setCellPadding(int iPadding)
          This accessor function sets the CellPadding attribute of the table
 void setHeight(int iHeight)
          This will set the width of the table as a percent
 void setWidth(int iWidth)
          This will set the width of the table as a percent
 void startRow()
          Starts a new row in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWTable

public HWTable()
Constructor Accepts no arguments sets basic attbutes
Method Detail

getBorder

public java.lang.String getBorder()
This accessor function returns the Border attribute of the table
Returns:
a String value

setBorder

public void setBorder(int iBorder)
This accessor function sets the Border attribute of the table
Parameters:
iBorder - an int value

getCellPadding

public java.lang.String getCellPadding()
This accessor function returns the CellPadding attribute of the table
Returns:
a String value

setCellPadding

public void setCellPadding(int iPadding)
This accessor function sets the CellPadding attribute of the table
Parameters:
iPadding - an int value

setWidth

public void setWidth(int iWidth)
This will set the width of the table as a percent
Parameters:
iWidth - a int that is the percentage to use for the widht attribute of the table

getWidth

public java.lang.String getWidth()
This will return the width attribute of the table
Returns:
a String value

setHeight

public void setHeight(int iHeight)
This will set the width of the table as a percent
Parameters:
iHeight - a int that is the percentage to use for the height attribute of the table

getHeight

public java.lang.String getHeight()
This will return the height attribute of the table
Returns:
a String value

startRow

public void startRow()
Starts a new row in the table

endRow

public void endRow()
Ends a row in the table

addData

public void addData(java.lang.String strData)
Adds a TD tag and data to the table
Parameters:
strData - a String value containing the data for the table cell

getTable

public java.lang.String getTable()
Returns the sting value of the table
Returns:
the String value of the table

endTable

public void endTable()
adds the closing tags to the table

addRow

public void addRow(java.lang.String[] strData)
Inserts a new row to the table. This method can replace the use of several addData() method calls. This function will also encorporate the startRow() and endRow() methods
Parameters:
strData[] - an array of String object to fill the row