nl.flotsam.pecia
Interface ItemizedList<T>

Type Parameters:
T - The type of the parent container element.
All Superinterfaces:
DocumentElement<T>
All Known Subinterfaces:
ItemizedListBuilder<T>
All Known Implementing Classes:
DefaultItemizedListBuilder

public interface ItemizedList<T>
extends DocumentElement<T>

A document element representing an itemized list. Note that - contrary to the DocBook document model - the ItemizedList abstraction is used both for itemized lists as well as ordered lists. So, if you invoke SimpleContents.orderedList(), you still get an ItemizedList in return.

Author:
Wilfred Springer

Method Summary
 ListItem<? extends ItemizedList<T>> item()
          Adds a new list item, allowing the list item to be populated in any specific way you desire.
 ItemizedList<T> item(String text)
          Adds a new list item, populates it with a Para containing the text passed in.
 
Methods inherited from interface nl.flotsam.pecia.DocumentElement
end, getParent
 

Method Detail

item

ItemizedList<T> item(String text)
Adds a new list item, populates it with a Para containing the text passed in.

Parameters:
text - The text to be inserted into the list item.
Returns:
The current itemized list.

item

ListItem<? extends ItemizedList<T>> item()
Adds a new list item, allowing the list item to be populated in any specific way you desire.

Returns:
The ListItem to be populated.


Copyright © 2010. All Rights Reserved.