com.maverick.sshd.shell.terminal
Class Table

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Row>
              extended by 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

Nested Class Summary
static class Table.Alignment
           
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Table(TerminalOutput io)
           
 
Method Summary
protected  int checkCell(int rowIndex, Cell<?> cell)
           
protected  String formatRow(int rowLine, Row row, List<Integer> maxColumnWidths)
           
 Row getFooter()
           
 Row getHeader()
           
 int getMaxCellWidth()
           
 void render(Console console)
           
protected  String renderCell(int rowLine, Cell<?> cell)
           
 void setFooter(Row footer)
           
 void setHeader(Row header)
           
 void setMaxCellWidth(int maxCellWidth)
           
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Table

public Table(TerminalOutput io)
Method Detail

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 rowIndex,
                        Cell<?> cell)


Copyright © 2012. All Rights Reserved.