public interface Row extends Serializable
DataSet
,
SelectItem
Modifier and Type | Method and Description |
---|---|
SelectItem[] |
getSelectItems()
Gets the select items that represent the columns of the
DataSet
that this row pertains to. |
Style |
getStyle(Column column) |
Style |
getStyle(int index) |
Style |
getStyle(SelectItem item) |
Style[] |
getStyles() |
Row |
getSubSelection(DataSetHeader header)
Creates a row similar to this one but only with a subset of the values.
|
Row |
getSubSelection(SelectItem[] selectItems)
Deprecated.
use
getSubSelection(DataSetHeader) instead. |
Object |
getValue(Column column)
Shorthand method for getting the value of a SelectItem based on the
provided column.
|
Object |
getValue(int index)
Gets the value of the row at a given index
|
Object |
getValue(SelectItem item)
Gets the value of the provided SelectItem.
|
Object[] |
getValues()
Gets the values of the row, represented as an object array
|
int |
indexOf(Column column)
Gets the index of a Column in the row.
|
int |
indexOf(SelectItem item)
Gets the index of a SelectItem in the row.
|
int |
size()
Gets the amount of values/columns/select items represented in this row.
|
Object getValue(SelectItem item)
item
- Object getValue(Column column)
column
- Object getValue(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the provided index is out of rangeStyle getStyle(SelectItem item)
Style getStyle(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
Style[] getStyles()
int indexOf(SelectItem item)
item
- the item to get the index ofint indexOf(Column column)
column
- the column to get the index ofSelectItem[] getSelectItems()
DataSet
that this row pertains to.Object[] getValues()
@Deprecated Row getSubSelection(SelectItem[] selectItems)
getSubSelection(DataSetHeader)
instead.selectItems
- the select items (~ columns) to sub-select the row withRow getSubSelection(DataSetHeader header)
header
- the new header to sub-select the row withint size()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.