public class TableElement extends Element
| 限定符和类型 | 字段和说明 |
|---|---|
protected BorderStyle |
border
.
|
protected Layout |
columnLayout
The column layout.
|
protected Layout |
rowLayout
The optional row row layout.
|
protected BorderStyle |
separator
.
|
| 构造器和说明 |
|---|
TableElement() |
TableElement(int... columns) |
TableElement(int[] rows,
int[] columns) |
protected BorderStyle border
protected BorderStyle separator
protected Layout columnLayout
protected Layout rowLayout
public TableElement()
public TableElement(int... columns)
public TableElement(int[] rows,
int[] columns)
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()
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)
Copyright © 2018. All rights reserved.