org.codehaus.mojo.pomtools.console.toolkit.widgets
Class TableLayout
java.lang.Object
org.codehaus.mojo.pomtools.console.toolkit.widgets.TableLayout
public class TableLayout
- extends java.lang.Object
- Version:
- $Id: TableLayout.java 2166 2006-07-18 21:32:16Z carlos $
- Author:
- David Hawkins
Method Summary |
void |
add(java.lang.String cell1)
Simple helper function that adds n columns of data. |
void |
add(java.lang.String[] row)
|
void |
add(java.lang.String cell1,
java.lang.String cell2)
Simple helper function that adds n columns of data. |
void |
add(java.lang.String cell1,
java.lang.String cell2,
java.lang.String cell3)
Simple helper function that adds n columns of data. |
void |
addEmptyRow()
|
protected TableColumn |
getColumn(int index)
|
java.lang.String |
getOutput()
|
protected int |
getWidthBeforeColumn(int colIndex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableLayout
public TableLayout(Terminal term)
TableLayout
public TableLayout(Terminal term,
int width)
TableLayout
public TableLayout(Terminal term,
TableColumn[] columns)
TableLayout
public TableLayout(Terminal term,
TableColumn[] columns,
int width)
addEmptyRow
public void addEmptyRow()
add
public void add(java.lang.String[] row)
add
public void add(java.lang.String cell1)
- Simple helper function that adds n columns of data.
Easier than passing new String[] { cell1 .. celln }
add
public void add(java.lang.String cell1,
java.lang.String cell2)
- Simple helper function that adds n columns of data.
Easier than passing new String[] { cell1 .. celln }
add
public void add(java.lang.String cell1,
java.lang.String cell2,
java.lang.String cell3)
- Simple helper function that adds n columns of data.
Easier than passing new String[] { cell1 .. celln }
getColumn
protected TableColumn getColumn(int index)
getOutput
public java.lang.String getOutput()
getWidthBeforeColumn
protected int getWidthBeforeColumn(int colIndex)
Copyright © 2009 The Codehaus. All Rights Reserved.