org.crsh.shell.ui
Class TableElement
java.lang.Object
org.crsh.shell.ui.Element
org.crsh.shell.ui.TableElement
public class TableElement
- extends Element
- Author:
- Alain Defrance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MARGIN
public final int MARGIN
- .
- See Also:
- Constant Field Values
rows
private List<RowElement> rows
- .
colsSize
private List<Integer> colsSize
- .
TableElement
public TableElement()
addRow
public TableElement addRow(RowElement row)
doPrint
void doPrint(UIWriterContext ctx,
ShellWriter writer)
throws IOException
- Specified by:
doPrint
in class Element
- Throws:
IOException
getRows
public List<RowElement> getRows()
getColsSize
public List<Integer> getColsSize()
computeColSize
private List<Integer> computeColSize(int consoleWidth)
columnNumber
private int columnNumber()
width
int width()
- Specified by:
width
in class Element
Copyright © 2012 eXo Platform SAS. All Rights Reserved.