T
- generic parameter <T>
public class RowItem<T> extends java.lang.Object implements IRowItem
It contains a data of type T and adds a selected state to the original entity.
Constructor and Description |
---|
RowItem(T data,
java.lang.Long id)
Instantiates a new row item.
|
Modifier and Type | Method and Description |
---|---|
T |
getData()
Gets the data associated with this RowItem.
|
long |
getId()
Gets the id of this row item.
|
boolean |
isSelected()
Checks if is this row item is selected.
|
void |
setSelected(boolean selected)
Sets selected state of this row item.
|
public RowItem(T data, java.lang.Long id)
data
- the data associated with this rowid
- the idpublic T getData()
public long getId()
public boolean isSelected()
isSelected
in interface IRowItem
public void setSelected(boolean selected)
setSelected
in interface IRowItem
selected
- the new selected state