public abstract class AbstractRow extends Object implements Cloneable, Row
Constructor and Description |
---|
AbstractRow() |
Modifier and Type | Method and Description |
---|---|
protected Row |
clone() |
boolean |
equals(Object obj) |
protected abstract DataSetHeader |
getHeader() |
List<SelectItem> |
getSelectItems()
Gets the select items that represent the columns of the
DataSet
that this row pertains to. |
Style |
getStyle(Column column) |
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.
|
Object |
getValue(Column column)
Shorthand method for getting the value of a SelectItem based on the
provided column.
|
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 |
hashCode() |
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.
|
String |
toString() |
protected abstract DataSetHeader getHeader()
public final Object getValue(SelectItem item)
Row
public final Style getStyle(SelectItem item)
public Object[] getValues()
Row
public final Object getValue(Column column)
Row
public final int indexOf(SelectItem item)
Row
public final int indexOf(Column column)
Row
public final List<SelectItem> getSelectItems()
Row
DataSet
that this row pertains to.getSelectItems
in interface Row
public final int size()
Row
public final Row getSubSelection(DataSetHeader header)
Row
getSubSelection
in interface Row
header
- the new header to sub-select the row withCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.