Expresso 5-6

com.jcorporate.expresso.services.html
Class Row

java.lang.Object
  extended bycom.jcorporate.expresso.services.html.HtmlElement
      extended bycom.jcorporate.expresso.services.html.Row

public class Row
extends HtmlElement

Version:
$Revision: 1.9 $ $Date: 2004/11/17 20:48:18 $
Author:
Michael Nash

Field Summary
 
Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement
attributes, contents, cSSClass, cSSID
 
Constructor Summary
Row()
          Constructor
Row(HtmlElement newElement)
          Constructor
Row(String newName)
          Constructor
 
Method Summary
 void add(HtmlElement newElement)
          One can only add cells to tables.
 void addCell(String cellContents)
           
protected  void display(PrintWriter out, int depth)
          Display the element to the client Each HtmlElement must implement this method
 boolean isCaptionRow()
           
 void setAlignment(String newAlignment)
           
 void setBorder(int newBorder)
           
 void setCaptionRow(boolean state)
           
 void setCellSpacing(int newSpacing)
           
 void setTitle(String newTitleString)
           
 
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

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
Method Detail

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 stream
depth - 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

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.