com.mortbay.HTML
Class List
java.lang.Object
|
+--com.mortbay.HTML.Element
|
+--com.mortbay.HTML.Composite
|
+--com.mortbay.HTML.Block
|
+--com.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
Fields inherited from class com.mortbay.HTML.Block |
Bold,
Center,
Div,
Italic,
Left,
Listing,
Plain,
Pre,
Quote,
Right,
Span,
Xmp |
Fields inherited from class com.mortbay.HTML.Element |
ALIGN,
attributeMap,
BGCOLOR,
BOTTOM,
CENTER,
CLASS,
COLOR,
HEIGHT,
ID,
LEFT,
MIDDLE,
noAttributes,
RIGHT,
SIZE,
STYLE,
TOP,
VALIGN,
WIDTH |
Constructor Summary |
List(java.lang.String type)
|
Method Summary |
Composite |
add(java.lang.Object o)
Add an Object to the Composite by converting it to a Element or
String |
Methods inherited from class com.mortbay.HTML.Block |
write |
Methods inherited from class com.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 |
Unordered
public static final java.lang.String Unordered
Ordered
public static final java.lang.String Ordered
Menu
public static final java.lang.String Menu
Directory
public static final java.lang.String Directory
List
public List(java.lang.String type)
add
public Composite add(java.lang.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
- Tags copied from class: Composite
- Parameters:
o
- The Object to add. If it is a String or Element, it is
added directly, otherwise toString() is called.- Returns:
- This Composite (for chained commands)