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 Border border
- .
layout
protected ColumnLayout layout
- The column layout.
height
protected Integer height
- The table height, null means no limit.
TableElement
public TableElement()
TableElement
public TableElement(int... weights)
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.