org.crsh.text.ui
Class TableElement
java.lang.Object
org.crsh.text.ui.Element
org.crsh.text.ui.TableElement
-
public class TableElement
- extends Element
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rows
ArrayList<RowElement> rows
-
.
border
protected BorderStyle border
-
.
separator
protected BorderStyle separator
-
.
overflow
private Overflow overflow
-
.
columnLayout
protected Layout columnLayout
-
The column layout.
rowLayout
protected Layout rowLayout
-
The optional row row layout.
leftCellPadding
private int leftCellPadding
-
Cell padding left.
rightCellPadding
private int rightCellPadding
-
Cell padding right.
TableElement
public TableElement()
TableElement
public TableElement(int... columns)
TableElement
public TableElement(int[] rows,
int[] columns)
TableElement
private TableElement(Layout rowLayout,
Layout columnLayout)
add
public TableElement add(RowElement row)
-
add
public TableElement add(RowElement... rows)
-
header
public TableElement header(Element... cols)
-
row
public TableElement row(Element... cols)
-
row
public TableElement row(String... cols)
-
row
public TableElement row(boolean header,
Element... cols)
-
row
public TableElement row(boolean header,
String... cols)
-
getColumnLayout
public Layout getColumnLayout()
-
setColumnLayout
public void setColumnLayout(Layout columnLayout)
-
getRowLayout
public Layout getRowLayout()
-
setRowLayout
public void setRowLayout(Layout rowLayout)
-
renderer
public LineRenderer renderer()
-
- Specified by:
renderer
in class Element
-
withColumnLayout
public TableElement withColumnLayout(Layout columnLayout)
-
withRowLayout
public TableElement withRowLayout(Layout rowLayout)
-
getRows
public List<RowElement> getRows()
-
getBorder
public BorderStyle getBorder()
-
setBorder
public void setBorder(BorderStyle border)
-
border
public TableElement border(BorderStyle border)
-
getSeparator
public BorderStyle getSeparator()
-
setSeparator
public void setSeparator(BorderStyle separator)
-
collapse
public TableElement collapse()
-
separator
public TableElement separator(BorderStyle separator)
-
setOverflow
public void setOverflow(Overflow overflow)
-
getOverflow
public final Overflow getOverflow()
-
overflow
public TableElement overflow(Overflow overflow)
-
getLeftCellPadding
public int getLeftCellPadding()
-
setLeftCellPadding
public void setLeftCellPadding(int leftCellPadding)
-
leftCellPadding
public TableElement leftCellPadding(int leftCellPadding)
-
getRightCellPadding
public int getRightCellPadding()
-
setRightCellPadding
public void setRightCellPadding(int rightCellPadding)
-
rightCellPadding
public TableElement rightCellPadding(int rightCellPadding)
-
style
public TableElement style(Style.Composite style)
-
- Overrides:
style
in class Element
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.