## org.mortbay.html
Class List

    java.lang.Object
      org.mortbay.html.Element
          org.mortbay.html.Composite
              org.mortbay.html.Block
                  org.mortbay.html.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, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH`

Constructor Summary
`List(String type)`

Method Summary
`Composite` `add(Object o)` Add an Object to the Composite by converting it to a Element or.
`Composite` `newItem()`

Methods inherited from class org.mortbay.html.Block
`write`

Methods inherited from class org.mortbay.html.Composite
`contents, nest, replace, reset, setNest, size, unnest`

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, style, top, toString, width, width, width, write, write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### Unordered

    public static final String Unordered

See Also:
  Constant Field Values

### Ordered

    public static final String Ordered

See Also:
  Constant Field Values

### Menu

    public static final String Menu

See Also:
  Constant Field Values

### Directory

    public static final String Directory

See Also:
  Constant Field Values

Constructor Detail

### List

    public List(String type)

Method Detail

### add

    public Composite add(Object o)

  Description copied from class: `Composite`
  Add an Object to the Composite by converting it to a Element or. String

  Overrides:
    `add` in class `Composite`
  Parameters:
    `o` - The item
  Returns:
    This List.

### newItem

    public Composite newItem()

  Returns:
    The new Item composite

Copyright © 1995-2008 Mort Bay Consulting. All Rights Reserved.