|
Expresso 5-6 | ||||||||||
| 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.Table
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Table()
Constructor |
|
Table(String newName)
Constructor |
|
| Method Summary | |
void |
add(HtmlElement newElement)
Add a new element to this table. |
void |
addHeading(String heading)
A shortcut method to quickly add a heading row to a table |
protected void |
display(PrintWriter out,
int depth)
Display the table |
void |
setAlignment(String newAlignment)
|
void |
setBorder(int newBorder)
|
void |
setCaption(String newCaption)
Set a caption for the entire table |
void |
setCellPadding(int newPadding)
|
void |
setCellSpacing(int newSpacing)
|
void |
setTitle(String newTitleString)
Set a special title string |
void |
setVerticalAlignment(String newAlignment)
Set the veritical aligment of this table |
void |
setWidth(String newWidth)
|
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
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 Table()
throws HtmlException
public Table(String newName)
throws HtmlException
newName - name of the table| Method Detail |
public void add(HtmlElement newElement)
throws HtmlException
add in class HtmlElementnewElement - The new row to be added to the table
HtmlException - If the new element is invalid or not a Row
public void addHeading(String heading)
throws HtmlException
heading - A pipe-delimited string giving the labels for the
headings
HtmlException
protected void display(PrintWriter out,
int depth)
throws HtmlException
display in class HtmlElementout - output streamdepth - the number of tabs to indent
HtmlException - If the element (or it's contents) cannot be displayed
public void setAlignment(String newAlignment)
throws HtmlException
newAlignment - left|right|center
HtmlException
public void setBorder(int newBorder)
throws HtmlException
newBorder - border size
HtmlExceptionpublic void setCaption(String newCaption)
newCaption - The caption to be set
public void setCellPadding(int newPadding)
throws HtmlException
newPadding - padding size
HtmlException
public void setCellSpacing(int newSpacing)
throws HtmlException
newSpacing - cell spacing size
HtmlException
public void setTitle(String newTitleString)
throws HtmlException
newTitleString - A "|"-delimited list of column headings
HtmlException - If the title cannot be used
public void setVerticalAlignment(String newAlignment)
throws HtmlException
newAlignment - New alignment value: Top, bottom or center
HtmlException - If the alignment is invalidpublic void setWidth(String newWidth)
newWidth - width of the table
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||