Expresso 5-6

com.jcorporate.expresso.services.html
Class ListItem

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

public class ListItem
extends HtmlElement

An HTML list item object

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
ListItem()
          Constructor
ListItem(HtmlElement newElement)
          Constructor Create the item with the given element as it's contents
ListItem(String newString)
          Constructor Create a list item with the given name
 
Method Summary
protected  void display(PrintWriter out, int depth)
          Display the list item
 
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

ListItem

public ListItem()
         throws HtmlException
Constructor

Throws:
HtmlException - If the superclass constructor fails

ListItem

public ListItem(HtmlElement newElement)
         throws HtmlException
Constructor Create the item with the given element as it's contents

Parameters:
newElement - Element to use as contents
Throws:
HtmlException - If the parameter is invalid

ListItem

public ListItem(String newString)
         throws HtmlException
Constructor Create a list item with the given name

Parameters:
newString - Name of the new item
Throws:
HtmlException - If the parameter is invalid
Method Detail

display

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

Specified by:
display in class HtmlElement
Parameters:
out - PrintWriter to the client
depth - the number of tabs to indent
Throws:
HtmlException - If the list item cannot be displayed

Expresso 5-6

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