Class TableRow
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.model.TableRow
-
- All Implemented Interfaces:
java.lang.Iterable<ITableCell>
- Direct Known Subclasses:
TableHeader
public class TableRow extends java.lang.Object implements java.lang.Iterable<ITableCell>
Model of a table row. On a row the constraint for the row height can be set.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ITableCell>
cells
private java.util.Map<ITableCell,ECellConstraint>
contraints
private int
heigth
-
Constructor Summary
Constructors Constructor Description TableRow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ITableCell cell)
void
add(ITableCell cell, ECellConstraint contraint)
ITableCell
get(int index)
ECellConstraint
getCellConstraint(ITableCell cell)
int
getHeigth()
boolean
hasConstraint(ITableCell cell)
java.util.Iterator<ITableCell>
iterator()
void
setHeigth(int heigth)
Set the constraint for the row height.int
size()
-
-
-
Field Detail
-
cells
private java.util.List<ITableCell> cells
-
contraints
private java.util.Map<ITableCell,ECellConstraint> contraints
-
heigth
private int heigth
-
-
Method Detail
-
get
public ITableCell get(int index)
-
size
public int size()
-
add
public void add(ITableCell cell)
-
add
public void add(ITableCell cell, ECellConstraint contraint)
-
iterator
public java.util.Iterator<ITableCell> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ITableCell>
-
hasConstraint
public boolean hasConstraint(ITableCell cell)
-
getCellConstraint
public ECellConstraint getCellConstraint(ITableCell cell)
-
getHeigth
public int getHeigth()
-
setHeigth
public void setHeigth(int heigth)
Set the constraint for the row height. Default value of 0 means no constraint.- Parameters:
heigth
- of the row
-
-