Constructor
Create a cell with the given element as it's contents
Parameters: newElement - Another HTML element to appear in the cell throws: HtmlException - If the parameter is invalid
Constructor with text contents for the new cell
Create a new cell with the given text as its contents
Parameters: contentText - The text string which becomes the contentsof this new cell throws: HtmlException - If the parameter is invalid
Display the Cell
Parameters: out - PrintWriter to the client Parameters: depth - the number of tabs to indent throws: HtmlException - If an error occurs displaying the cell or it'scontents
Set the horizontal alignment of the contents of this cell
Parameters: newAlignment - New alignment as a string. Must be "left","right" or "center" throws: HtmlException - If the parameter is invalid
Set the background color of the cell
Parameters: newColor - Color to set the background of this cell throws: HtmlException - If the parameter is invalid
setBorder
public synchronized void setBorder(int newBorder) throws HtmlException(Code)
Set the border for this cell
Parameters: newBorder - New Border value for this Cell throws: HtmlException - If the parameter is invalid
setCellSpacing
public synchronized void setCellSpacing(int newSpacing) throws HtmlException(Code)
Set the cell spacing of this individual cell
Parameters: newSpacing - The new spacing for this cell throws: HtmlException - If the parameter is invalid
Set how many columns in the table this cell spans. Default is 0
Parameters: newSpan - Number of columns to span throws: HtmlException - If the parameter is invalid
Set the foreground color of the cell
Parameters: newColor - Color to set the foreground of this cell throws: HtmlException - If the parameter is invalid
Tell this cell whether or not to wrap it's contents
Parameters: newWrap - True to wrap contents, else false throws: HtmlException - If the parameter is invalid
Set the vertical alignment of the contents of the cell
Parameters: newAlignment - Vertical alignment value throws: HtmlException - If the parameter is invalid