com.maverick.sshd.shell.terminal
Class Table
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Row>
com.maverick.sshd.shell.terminal.Table
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Row>, Collection<Row>, List<Row>, RandomAccess
public class Table
- extends ArrayList<Row>
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Table
public Table(TerminalOutput io)
getHeader
public Row getHeader()
setHeader
public void setHeader(Row header)
getFooter
public Row getFooter()
setFooter
public void setFooter(Row footer)
getMaxCellWidth
public int getMaxCellWidth()
setMaxCellWidth
public void setMaxCellWidth(int maxCellWidth)
render
public void render(Console console)
throws IOException
- Throws:
IOException
formatRow
protected String formatRow(int rowLine,
Row row,
List<Integer> maxColumnWidths)
renderCell
protected String renderCell(int rowLine,
Cell<?> cell)
checkCell
protected int checkCell(int rocwIndex,
Cell<?> cell)
Copyright © 2012. All Rights Reserved.