|
||||||||||
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)
|
Method Summary | |
---|---|
TableElement |
add(RowElement row)
|
TableElement |
border(BorderStyle border)
|
TableElement |
collapse()
|
BorderStyle |
getBorder()
|
Layout |
getColumnLayout()
|
int |
getLeftCellPadding()
|
Overflow |
getOverflow()
|
int |
getRightCellPadding()
|
Layout |
getRowLayout()
|
List<RowElement> |
getRows()
|
BorderStyle |
getSeparator()
|
TableElement |
leftCellPadding(int leftCellPadding)
|
TableElement |
overflow(Overflow overflow)
|
Renderer |
renderer()
|
TableElement |
rightCellPadding(int rightCellPadding)
|
TableElement |
separator(BorderStyle separator)
|
void |
setBorder(BorderStyle border)
|
void |
setColumnLayout(Layout columnLayout)
|
void |
setLeftCellPadding(int leftCellPadding)
|
void |
setOverflow(Overflow overflow)
|
void |
setRightCellPadding(int rightCellPadding)
|
void |
setRowLayout(Layout rowLayout)
|
void |
setSeparator(BorderStyle separator)
|
TableElement |
style(Style.Composite style)
|
TableElement |
withColumnLayout(Layout columnLayout)
|
TableElement |
withRowLayout(Layout rowLayout)
|
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 Layout getColumnLayout()
public void setColumnLayout(Layout columnLayout)
public Layout getRowLayout()
public void setRowLayout(Layout rowLayout)
public Renderer 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 |