org.broadleafcommerce.common.util
Class TableCreator

java.lang.Object
  extended by org.broadleafcommerce.common.util.TableCreator

public class TableCreator
extends Object


Nested Class Summary
static class TableCreator.Col
           
 
Field Summary
protected  TableCreator.Col[] cols
           
protected  int globalRowHeaderWidth
           
protected  int rowWidth
           
protected  StringBuilder sb
           
 
Constructor Summary
TableCreator(TableCreator.Col[] cols)
           
 
Method Summary
 TableCreator addRow(Object[] data)
           
 TableCreator addRow(String rowHeader, Object rowData)
           
 TableCreator addRow(TableCreator.Col[] cols)
           
 TableCreator addSeparator()
           
protected  int calculateRowWidth()
           
 String toString()
           
 TableCreator withGlobalRowHeaderWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cols

protected TableCreator.Col[] cols

rowWidth

protected int rowWidth

sb

protected StringBuilder sb

globalRowHeaderWidth

protected int globalRowHeaderWidth
Constructor Detail

TableCreator

public TableCreator(TableCreator.Col[] cols)
Method Detail

calculateRowWidth

protected int calculateRowWidth()

addSeparator

public TableCreator addSeparator()

addRow

public TableCreator addRow(TableCreator.Col[] cols)

addRow

public TableCreator addRow(Object[] data)

addRow

public TableCreator addRow(String rowHeader,
                           Object rowData)

withGlobalRowHeaderWidth

public TableCreator withGlobalRowHeaderWidth(int width)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.