org.mortbay.html

Class List


public class List
extends Block

HTML List Block. Each Element added to the List (which is a Composite) is treated as a new List Item.
See Also:
Block

Field Summary

static String
Directory
static String
Menu
static String
Ordered
static String
Unordered

Fields inherited from class org.mortbay.html.Block

Bold, Center, Div, Italic, Left, Listing, Plain, Pre, Quote, Right, Span, Xmp

Fields inherited from class org.mortbay.html.Composite

elements, nest

Fields inherited from class org.mortbay.html.Element

ALIGN, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH, attributeMap, noAttributes

Constructor Summary

List(String type)

Method Summary

Composite
add(Object o)
Composite
newItem()

Methods inherited from class org.mortbay.html.Block

write

Methods inherited from class org.mortbay.html.Composite

add, contents, nest, replace, reset, setNest, size, unnest, write

Methods inherited from class org.mortbay.html.Element

attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, size, style, toString, top, width, width, width, write, write, write

Field Details

Directory

public static final String Directory

Menu

public static final String Menu

Ordered

public static final String Ordered

Unordered

public static final String Unordered

Constructor Details

List

public List(String type)

Method Details

add

public Composite add(Object o)
Overrides:
add in interface Composite
Parameters:
o - The item
Returns:
This List.

newItem

public Composite newItem()
Returns:
The new Item composite

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.