|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.text.ui.Element org.crsh.text.ui.TableElement
public class TableElement
Field Summary | |
---|---|
protected BorderStyle |
border
. |
protected Layout |
columnLayout
The column layout. |
private int |
leftCellPadding
Cell padding left. |
private Overflow |
overflow
. |
private int |
rightCellPadding
Cell padding right. |
protected Layout |
rowLayout
The optional row row layout. |
(package private) ArrayList<RowElement> |
rows
. |
protected BorderStyle |
separator
. |
Constructor Summary | |
---|---|
|
TableElement()
|
|
TableElement(int... columns)
|
|
TableElement(int[] rows,
int[] columns)
|
private |
TableElement(Layout rowLayout,
Layout columnLayout)
|
Methods inherited from class org.crsh.text.ui.Element |
---|
getStyle, header, label, render, row, setStyle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ArrayList<RowElement> rows
protected BorderStyle border
protected BorderStyle separator
private Overflow overflow
protected Layout columnLayout
protected Layout rowLayout
private int leftCellPadding
private int rightCellPadding
Constructor Detail |
---|
public TableElement()
public TableElement(int... columns)
public TableElement(int[] rows, int[] columns)
private TableElement(Layout rowLayout, Layout columnLayout)
Method Detail |
---|
public TableElement add(RowElement row)
public TableElement add(RowElement... rows)
public TableElement header(Element... cols)
public TableElement row(Element... cols)
public TableElement row(String... cols)
public TableElement row(boolean header, Element... cols)
public TableElement row(boolean header, String... cols)
public Layout getColumnLayout()
public void setColumnLayout(Layout columnLayout)
public Layout getRowLayout()
public void setRowLayout(Layout rowLayout)
public LineRenderer renderer()
renderer
in class Element
public TableElement withColumnLayout(Layout columnLayout)
public TableElement withRowLayout(Layout rowLayout)
public List<RowElement> getRows()
public BorderStyle getBorder()
public void setBorder(BorderStyle border)
public TableElement border(BorderStyle border)
public BorderStyle getSeparator()
public void setSeparator(BorderStyle separator)
public TableElement collapse()
public TableElement separator(BorderStyle separator)
public void setOverflow(Overflow overflow)
public final Overflow getOverflow()
public TableElement overflow(Overflow overflow)
public int getLeftCellPadding()
public void setLeftCellPadding(int leftCellPadding)
public TableElement leftCellPadding(int leftCellPadding)
public int getRightCellPadding()
public void setRightCellPadding(int rightCellPadding)
public TableElement rightCellPadding(int rightCellPadding)
public TableElement style(Style.Composite style)
style
in class Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |