Expresso 5-6

com.jcorporate.expresso.services.html
Class List

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

public class List
extends HtmlElement

A list (ordered or unordered)

Version:
$Revision: 1.8 $ $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
List()
          Constructor
List(String newName)
          Constructor
 
Method Summary
protected  void display(PrintWriter out, int depth)
          Display the list
 void setOrdered(boolean newOrdered)
          Specify if this list is ordered (OL) or unordered (UL)
 void setType(String newType)
          Set the type argument for the list
 
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

List

public List()
     throws HtmlException
Constructor


List

public List(String newName)
     throws HtmlException
Constructor

Parameters:
newName - the name of the list
Method Detail

display

protected void display(PrintWriter out,
                       int depth)
                throws HtmlException
Display the list

Specified by:
display in class HtmlElement
Parameters:
depth - the number of tabs to indent
out - the output stream
Throws:
HtmlException - If the element (or it's contents) cannot be displayed

setOrdered

public void setOrdered(boolean newOrdered)
                throws HtmlException
Specify if this list is ordered (OL) or unordered (UL)

Parameters:
newOrdered - true if OL
Throws:
HtmlException

setType

public void setType(String newType)
             throws HtmlException
Set the type argument for the list

Parameters:
newType - java.lang.String
Throws:
HtmlException

Expresso 5-6

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