|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.services.html.HtmlElement
com.jcorporate.expresso.services.html.Cell
Cell - The Cell of an HTML table
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Cell()
Constructor |
|
Cell(HtmlElement newElement)
Constructor Create a cell with the given element as it's contents |
|
Cell(String contentText)
Constructor with text contents for the new cell Create a new cell with the given text as its contents |
|
| Method Summary | |
protected void |
display(PrintWriter out,
int depth)
Display the Cell |
void |
setAlignment(String newAlignment)
Set the horizontal alignment of the contents of this cell |
void |
setBGColor(String newColor)
Set the background color of the cell |
void |
setBorder(int newBorder)
Set the border for this cell |
void |
setCellSpacing(int newSpacing)
Set the cell spacing of this individual cell |
void |
setColSpan(int newSpan)
Set how many columns in the table this cell spans. |
void |
setFGColor(String newColor)
Set the foreground color of the cell |
void |
setHeaderCell(boolean state)
Set the cell to be a header cell |
void |
setNoWrap(boolean newWrap)
Tell this cell whether or not to wrap it's contents |
void |
setRowSpan(int newSpan)
Set how many rows this Cell spans. |
void |
setVerticalAlignment(String newAlignment)
Set the vertical alignment of the contents of the cell |
void |
setWidth(String newWidth)
|
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Cell()
throws HtmlException
HtmlException - If the super constructor fails
public Cell(HtmlElement newElement)
throws HtmlException
newElement - Another HTML element to appear in the cell
HtmlException - If the parameter is invalid
public Cell(String contentText)
throws HtmlException
contentText - The text string which becomes the contents
of this new cell
HtmlException - If the parameter is invalid| Method Detail |
protected void display(PrintWriter out,
int depth)
throws HtmlException
display in class HtmlElementout - PrintWriter to the clientdepth - the number of tabs to indent
HtmlException - If an error occurs displaying the cell or it's
contents
public void setAlignment(String newAlignment)
throws HtmlException
newAlignment - New alignment as a string. Must be "left",
"right" or "center"
HtmlException - If the parameter is invalid
public void setBGColor(String newColor)
throws HtmlException
newColor - Color to set the background of this cell
HtmlException - If the parameter is invalid
public void setBorder(int newBorder)
throws HtmlException
newBorder - New Border value for this Cell
HtmlException - If the parameter is invalid
public void setCellSpacing(int newSpacing)
throws HtmlException
newSpacing - The new spacing for this cell
HtmlException - If the parameter is invalid
public void setColSpan(int newSpan)
throws HtmlException
newSpan - Number of columns to span
HtmlException - If the parameter is invalid
public void setFGColor(String newColor)
throws HtmlException
newColor - Color to set the foreground of this cell
HtmlException - If the parameter is invalidpublic void setHeaderCell(boolean state)
state - set to true if header
public void setNoWrap(boolean newWrap)
throws HtmlException
newWrap - True to wrap contents, else false
HtmlException - If the parameter is invalid
public void setRowSpan(int newSpan)
throws HtmlException
newSpan - Number of rows to span
HtmlException - If the parameter is invalid
public void setVerticalAlignment(String newAlignment)
throws HtmlException
newAlignment - Vertical alignment value
HtmlException - If the parameter is invalid
public void setWidth(String newWidth)
throws HtmlException
newWidth - The width of the cell
HtmlException
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||