nl.flotsam.pecia.builder.base
Class RowFactory.ColDef<T>

java.lang.Object
  extended by nl.flotsam.pecia.builder.base.RowFactory.ColDef<T>
Type Parameters:
T - The type of parent.
Enclosing class:
RowFactory

public static class RowFactory.ColDef<T>
extends Object

An object allowing you to either create a new column, or to construct a new row.


Constructor Summary
RowFactory.ColDef(DocumentBuilder builder, T parent, boolean header)
          Constructs a new instance.
 
Method Summary
 RowFactory.ColDef<Entry<T>> col()
          Inserts a new column.
 Row<Entry<T>> create(boolean first)
          Constructs the row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowFactory.ColDef

public RowFactory.ColDef(DocumentBuilder builder,
                         T parent,
                         boolean header)
Constructs a new instance.

Parameters:
builder - The object used to track progress while building the document.
parent - The parent object.
header - A boolean indicating if this cell represents a header cell or not.
Method Detail

create

public Row<Entry<T>> create(boolean first)
Constructs the row.

Parameters:
first - Whether or not this is the first row of the table.
Returns:
The row consisting of all column elements.

col

public RowFactory.ColDef<Entry<T>> col()
Inserts a new column.

Returns:
A RowFactory.ColDef defining the new column.


Copyright © 2010. All Rights Reserved.