nl.flotsam.pecia.builder.base
Class RowFactory

java.lang.Object
  extended by nl.flotsam.pecia.builder.base.RowFactory

public class RowFactory
extends Object

A utility class supporting the construction of tables.

Author:
Wilfred Springer

Nested Class Summary
static class RowFactory.ColDef<T>
          An object allowing you to either create a new column, or to construct a new row.
static class RowFactory.LastColDef<T>
           
 
Constructor Summary
RowFactory()
           
 
Method Summary
static
<T> RowFactory.LastColDef<T>
start(T parent, DocumentBuilder builder, boolean header)
          Constructs a table row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowFactory

public RowFactory()
Method Detail

start

public static <T> RowFactory.LastColDef<T> start(T parent,
                                                 DocumentBuilder builder,
                                                 boolean header)
Constructs a table row.

Type Parameters:
T - The type of parent.
Parameters:
parent - The parent.
builder - The object to be used to track progress.
header - A boolean indicating if the row being built is meant to produce a header.
Returns:
A RowFactory.LastColDef object, allowing you to append more column definition and eventually invoke RowFactory.ColDef.create(boolean).


Copyright © 2010. All Rights Reserved.