com.jcorporate.expresso.services.html
Class Row
java.lang.Object
com.jcorporate.expresso.services.html.HtmlElement
com.jcorporate.expresso.services.html.Row
- public class Row
- extends HtmlElement
- Version:
- $Revision: 1.9 $ $Date: 2004/11/17 20:48:18 $
- Author:
- Michael Nash
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
Row
public Row()
throws HtmlException
- Constructor
Row
public Row(HtmlElement newElement)
throws HtmlException
- Constructor
- Parameters:
newElement - nested element
Row
public Row(String newName)
throws HtmlException
- Constructor
- Parameters:
newName - name of the row
add
public void add(HtmlElement newElement)
throws HtmlException
- One can only add cells to tables. If we're handed something other than a cell,
put in IN a cell, then add the cell
- Overrides:
add in class HtmlElement
- Parameters:
newElement - nested element
- Throws:
HtmlException - If the element cannot be added
addCell
public void addCell(String cellContents)
throws HtmlException
- Parameters:
cellContents - cell contents
- Throws:
HtmlException
display
protected void display(PrintWriter out,
int depth)
throws HtmlException
- Description copied from class:
HtmlElement
- Display the element to the client
Each HtmlElement must implement this method
- Specified by:
display in class HtmlElement
- Parameters:
out - the output streamdepth - the number of tabs to indent
- Throws:
HtmlException - If the element (or it's contents) cannot be displayed
isCaptionRow
public boolean isCaptionRow()
setAlignment
public void setAlignment(String newAlignment)
throws HtmlException
- Parameters:
newAlignment - left|right|center
- Throws:
HtmlException
setBorder
public void setBorder(int newBorder)
throws HtmlException
- Parameters:
newBorder - border size
- Throws:
HtmlException
setCaptionRow
public void setCaptionRow(boolean state)
- Parameters:
state - is it a caption row
setCellSpacing
public void setCellSpacing(int newSpacing)
throws HtmlException
- Parameters:
newSpacing - cell spacing
- Throws:
HtmlException
setTitle
public void setTitle(String newTitleString)
throws HtmlException
- Parameters:
newTitleString - title of the cell
- Throws:
HtmlException
Please see www.jcorporate.com for information about new Expresso releases.