Class Table
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.model.Table
-
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TableRow row)TableRowget(int index)javafx.geometry.HPosgetAligenment(int column)intgetColumnWidth(int column)Calculate the width of the indicated column.TableHeadergetHeader()intgetNumberOfColumns()Return the number of columns based on the header.intgetNumberOfRows()Return the number of rows, not counting the header.java.util.Iterator<TableRow>iterator()voidsetAligenment(int index, javafx.geometry.HPos pos)voidsetColumnWidth(java.lang.Integer... columnWidth)voidsetHeader(TableHeader header)
-
-
-
Method Detail
-
getHeader
public TableHeader getHeader()
-
setHeader
public void setHeader(TableHeader header)
-
add
public void add(TableRow row)
-
get
public TableRow get(int index)
-
iterator
public java.util.Iterator<TableRow> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<TableRow>
-
getNumberOfColumns
public int getNumberOfColumns()
Return the number of columns based on the header.- Returns:
- number of columns in the table
-
getNumberOfRows
public int getNumberOfRows()
Return the number of rows, not counting the header.- Returns:
- number of rows in the table.
-
getColumnWidth
public int getColumnWidth(int column)
Calculate the width of the indicated column.- Parameters:
column- index- Returns:
- width of the column
-
setColumnWidth
public void setColumnWidth(java.lang.Integer... columnWidth)
-
setAligenment
public void setAligenment(int index, javafx.geometry.HPos pos)
-
getAligenment
public javafx.geometry.HPos getAligenment(int column)
-
-