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

java.lang.Object
  extended by nl.flotsam.pecia.builder.base.AbstractBuilder<T>
      extended by nl.flotsam.pecia.builder.base.DefaultLastEntryBuilder<T>
All Implemented Interfaces:
Initializer<LastEntryBuilder<T>>, LastEntryBuilder<T>, DocumentElement<T>, LastEntry<T>, SimpleContents<LastEntry<T>>
Direct Known Subclasses:
HtmlDocumentBuilder.HtmlLastColBuilder

public class DefaultLastEntryBuilder<T>
extends AbstractBuilder<T>
implements LastEntryBuilder<T>


Constructor Summary
DefaultLastEntryBuilder(DocumentBuilder builder, T parent, boolean header, LifecycleListener listener)
           
 
Method Summary
 LastEntry<T> document(Documenter<SimpleContents<?>> target)
          Generates documentation, and returns the current context.
 T end()
          Signals the end of the document element.
 ItemizedList<? extends LastEntry<T>> itemizedList()
          Adds an itemized list.
 ItemizedList<? extends LastEntry<T>> orderedList()
          Adds an ordered list.
 Para<? extends LastEntry<T>> para()
          Adds a paragraph to the current table entry.
 LastEntry<T> para(String text)
          Adds a paragraph containing the text to the current table entry.
 LastEntryBuilder<T> start()
           
 Table2Cols<? extends LastEntry<T>> table2Cols()
          Adds a two-column table.
 Table3Cols<? extends LastEntry<T>> table3Cols()
          Adds a three-column table.
 Table4Cols<? extends LastEntry<T>> table4Cols()
          Adds a four-column table.
 Table5Cols<? extends LastEntry<T>> table5Cols()
          Adds a five-column table.
 Verbatim<? extends LastEntry<T>> verbatim()
          Adds verbatim content.
 
Methods inherited from class nl.flotsam.pecia.builder.base.AbstractBuilder
getBuilder, getListener, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLastEntryBuilder

public DefaultLastEntryBuilder(DocumentBuilder builder,
                               T parent,
                               boolean header,
                               LifecycleListener listener)
Method Detail

end

public T end()
Description copied from interface: DocumentElement
Signals the end of the document element.

Specified by:
end in interface DocumentElement<T>
Specified by:
end in interface LastEntry<T>
Overrides:
end in class AbstractBuilder<T>
Returns:
The parent element.

para

public Para<? extends LastEntry<T>> para()
Description copied from interface: LastEntry
Adds a paragraph to the current table entry.

Specified by:
para in interface LastEntry<T>
Specified by:
para in interface SimpleContents<LastEntry<T>>
Returns:
The paragraph just added to the current table entry.

start

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

para

public LastEntry<T> para(String text)
Description copied from interface: LastEntry
Adds a paragraph containing the text to the current table entry.

Specified by:
para in interface LastEntry<T>
Specified by:
para in interface SimpleContents<LastEntry<T>>
Parameters:
text - The text to be added to the paragraph.
Returns:
The current context.

document

public LastEntry<T> document(Documenter<SimpleContents<?>> target)
Description copied from interface: SimpleContents
Generates documentation, and returns the current context.

Specified by:
document in interface SimpleContents<LastEntry<T>>
Parameters:
target - The object generating the documentation.

itemizedList

public ItemizedList<? extends LastEntry<T>> itemizedList()
Description copied from interface: SimpleContents
Adds an itemized list.

Specified by:
itemizedList in interface SimpleContents<LastEntry<T>>
Returns:
The itemized list just created.

orderedList

public ItemizedList<? extends LastEntry<T>> orderedList()
Description copied from interface: SimpleContents
Adds an ordered list.

Specified by:
orderedList in interface SimpleContents<LastEntry<T>>
Returns:
The ordered list just created.

table2Cols

public Table2Cols<? extends LastEntry<T>> table2Cols()
Description copied from interface: SimpleContents
Adds a two-column table.

Specified by:
table2Cols in interface SimpleContents<LastEntry<T>>
Returns:
A two column table.

table3Cols

public Table3Cols<? extends LastEntry<T>> table3Cols()
Description copied from interface: SimpleContents
Adds a three-column table.

Specified by:
table3Cols in interface SimpleContents<LastEntry<T>>
Returns:
A three column table.

table4Cols

public Table4Cols<? extends LastEntry<T>> table4Cols()
Description copied from interface: SimpleContents
Adds a four-column table.

Specified by:
table4Cols in interface SimpleContents<LastEntry<T>>
Returns:
A four column table.

table5Cols

public Table5Cols<? extends LastEntry<T>> table5Cols()
Description copied from interface: SimpleContents
Adds a five-column table.

Specified by:
table5Cols in interface SimpleContents<LastEntry<T>>
Returns:
A five column table.

verbatim

public Verbatim<? extends LastEntry<T>> verbatim()
Description copied from interface: SimpleContents
Adds verbatim content.

Specified by:
verbatim in interface SimpleContents<LastEntry<T>>
Returns:
The object representing verbatim content.


Copyright © 2010. All Rights Reserved.