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  Border border
          .
protected  Integer height
          The table height, null means no limit.
protected  ColumnLayout layout
          The column layout.
(package private)  ArrayList<RowElement> rows
          .
 
Fields inherited from class org.crsh.text.ui.Element
parent
 
Constructor Summary
TableElement()
           
TableElement(int... weights)
           
 
Method Summary
 TableElement add(RowElement row)
           
 TableElement border(Border border)
           
 Border getBorder()
           
 Integer getHeight()
           
 ColumnLayout getLayout()
           
 List<RowElement> getRows()
           
 TableElement layout(ColumnLayout layout)
           
 Renderer renderer()
           
 void setBorder(Border border)
           
 void setHeight(Integer height)
           
 TableElement style(Style.Composite style)
           
 
Methods inherited from class org.crsh.text.ui.Element
getStyle, header, label, 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 Border border
.


layout

protected ColumnLayout layout
The column layout.


height

protected Integer height
The table height, null means no limit.

Constructor Detail

TableElement

public TableElement()

TableElement

public TableElement(int... weights)
Method Detail

add

public TableElement add(RowElement row)

getHeight

public Integer getHeight()

setHeight

public void setHeight(Integer height)
               throws IllegalArgumentException
Throws:
IllegalArgumentException

getLayout

public ColumnLayout getLayout()

getBorder

public Border getBorder()

renderer

public Renderer renderer()
Specified by:
renderer in class Element

layout

public TableElement layout(ColumnLayout layout)

getRows

public List<RowElement> getRows()

border

public TableElement border(Border border)

setBorder

public void setBorder(Border border)

style

public TableElement style(Style.Composite style)
Overrides:
style in class Element


Copyright © 2012 eXo Platform SAS. All Rights Reserved.