public class Row extends Object
ListRow
. Custom
subclasses may define other types of rows.Constructor and Description |
---|
Row()
Constructor for a Row.
|
Row(HeaderItem headerItem)
Constructor for a Row.
|
Row(long id,
HeaderItem headerItem)
Constructor for a Row.
|
Modifier and Type | Method and Description |
---|---|
HeaderItem |
getHeaderItem()
Returns the
HeaderItem that represents metadata for the row. |
long |
getId()
Returns a unique identifier for this row.
|
boolean |
isRenderedAsRowView()
Returns true if this Row can be rendered in a visible row view, false otherwise.
|
void |
setHeaderItem(HeaderItem headerItem)
Sets the
HeaderItem that represents metadata for the row. |
void |
setId(long id)
Sets the id for this row.
|
public Row(long id, HeaderItem headerItem)
id
- The id of the row.headerItem
- The HeaderItem
for this Row, or null if there
is no header.public Row(HeaderItem headerItem)
headerItem
- The HeaderItem
for this Row, or null if there
is no header.public Row()
public final HeaderItem getHeaderItem()
HeaderItem
that represents metadata for the row.public final void setHeaderItem(HeaderItem headerItem)
HeaderItem
that represents metadata for the row.headerItem
- The HeaderItem for this Row, or null if there is no
header.public final void setId(long id)
id
- The id of the row.public final long getId()
setId(long)
is ever called on this row, it will return
this id.
setId(long)
has not been called but the header item is
not null, the result of HeaderItem.getId()
is returned.
NO_ID
is returned.
public boolean isRenderedAsRowView()
ListRow
is rendered by ListRowPresenter
. PageRow
,
SectionRow
, DividerRow
are rendered as invisible row views.