com.jcorporate.expresso.services.html
Class ListItem
java.lang.Object
com.jcorporate.expresso.services.html.HtmlElement
com.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
|
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 |
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
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
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 clientdepth - the number of tabs to indent
- Throws:
HtmlException - If the list item cannot be displayed
Please see www.jcorporate.com for information about new Expresso releases.