|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Row
Represents a row of data in a DataSet. Each row is a mapping between SelectItems and values for each SelectItem.
DataSet,
SelectItem| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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(Column column)
Style getStyle(int index)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionStyle[] getStyles()
int indexOf(SelectItem item)
item - the item to get the index of
int indexOf(Column column)
column - the column to get the index of
SelectItem[] 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 with
Row getSubSelection(DataSetHeader header)
header - the new header to sub-select the row with
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||