org.springframework.yarn.support.console
Class Table
java.lang.Object
org.springframework.yarn.support.console.Table
public class Table
- extends java.lang.Object
Provide a basic concept of a table structure containing a map of column headers and a collection of rows. Used to
render text-based tables (console output).
- Author:
- Gunnar Hillert, Janne Valkealahti
- See Also:
UiUtils
Constructor Summary |
Table()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Table
public Table()
getRows
public java.util.List<TableRow> getRows()
setRows
public void setRows(java.util.List<TableRow> rows)
getHeaders
public java.util.Map<java.lang.Integer,TableHeader> getHeaders()
addHeader
public Table addHeader(java.lang.Integer columnIndex,
TableHeader tableHeader)
newRow
public TableRow newRow()
- Add a new empty row to the table.
- Returns:
- the newly created row, which can be then be populated
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
calculateColumnWidths
public void calculateColumnWidths()