org.crsh.text.ui
Class TableElement

java.lang.Object
  extended by org.crsh.text.ui.Element
      extended by org.crsh.text.ui.TableElement

public class TableElement
extends Element


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

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.

Constructor Detail

TableElement

public TableElement()

TableElement

public TableElement(int... columns)

TableElement

public TableElement(int[] rows,
                    int[] columns)

TableElement

private TableElement(Layout rowLayout,
                     Layout columnLayout)
Method Detail

add

public TableElement add(RowElement row)

getColumnLayout

public Layout getColumnLayout()

setColumnLayout

public void setColumnLayout(Layout columnLayout)

getRowLayout

public Layout getRowLayout()

setRowLayout

public void setRowLayout(Layout rowLayout)

renderer

public Renderer 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 © 2014 eXo Platform SAS. All Rights Reserved.