nl.flotsam.pecia.builder.base
Class DefaultItemizedListBuilder<T>

java.lang.Object
  extended by nl.flotsam.pecia.builder.base.AbstractBuilder<T>
      extended by nl.flotsam.pecia.builder.base.DefaultItemizedListBuilder<T>
All Implemented Interfaces:
Initializer<ItemizedList<T>>, ItemizedListBuilder<T>, DocumentElement<T>, ItemizedList<T>

public class DefaultItemizedListBuilder<T>
extends AbstractBuilder<T>
implements ItemizedListBuilder<T>


Constructor Summary
DefaultItemizedListBuilder(DocumentBuilder builder, T parent, LifecycleListener listener)
           
 
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.
 ItemizedList<T> start()
           
 
Methods inherited from class nl.flotsam.pecia.builder.base.AbstractBuilder
end, getBuilder, getListener, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.flotsam.pecia.DocumentElement
end, getParent
 

Constructor Detail

DefaultItemizedListBuilder

public DefaultItemizedListBuilder(DocumentBuilder builder,
                                  T parent,
                                  LifecycleListener listener)
Method Detail

item

public ItemizedList<T> item(String text)
Description copied from interface: ItemizedList
Adds a new list item, populates it with a Para containing the text passed in.

Specified by:
item in interface ItemizedList<T>
Parameters:
text - The text to be inserted into the list item.
Returns:
The current itemized list.

item

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

Specified by:
item in interface ItemizedList<T>
Returns:
The ListItem to be populated.

start

public ItemizedList<T> start()
Specified by:
start in interface Initializer<ItemizedList<T>>


Copyright © 2010. All Rights Reserved.