public final class DefaultRow extends AbstractRow implements Row
Constructor and Description |
---|
DefaultRow(DataSetHeader header,
Object[] values)
Constructs a row.
|
DefaultRow(DataSetHeader header,
Object[] values,
Style[] styles)
Constructs a row.
|
DefaultRow(List<SelectItem> items,
Object[] values)
Deprecated.
|
DefaultRow(List<SelectItem> items,
Object[] values,
Style[] styles)
Deprecated.
|
DefaultRow(SelectItem[] items,
Object[] values)
Deprecated.
|
DefaultRow(SelectItem[] items,
Object[] values,
Style[] styles)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected DataSetHeader |
getHeader() |
Style |
getStyle(int index) |
Style[] |
getStyles() |
Object |
getValue(int index)
Gets the value of the row at a given index
|
Object[] |
getValues()
Gets the values of the row, represented as an object array
|
clone, equals, getSelectItems, getStyle, getStyle, getSubSelection, getSubSelection, getValue, getValue, hashCode, indexOf, indexOf, size, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getSelectItems, getStyle, getStyle, getSubSelection, getSubSelection, getValue, getValue, indexOf, indexOf, size
public DefaultRow(DataSetHeader header, Object[] values, Style[] styles)
header
- values
- styles
- public DefaultRow(DataSetHeader header, Object[] values)
header
- values
- @Deprecated public DefaultRow(SelectItem[] items, Object[] values)
DefaultRow(DataSetHeader, Object[])
or
DefaultRow(DataSetHeader, Object[], Style[])
instead.items
- the array of SelectItemsvalues
- the array of values@Deprecated public DefaultRow(SelectItem[] items, Object[] values, Style[] styles)
DefaultRow(DataSetHeader, Object[])
or
DefaultRow(DataSetHeader, Object[], Style[])
instead.items
- the array of SelectItemsvalues
- the array of valuesstyles
- an optional array of styles@Deprecated public DefaultRow(List<SelectItem> items, Object[] values)
DefaultRow(DataSetHeader, Object[])
or
DefaultRow(DataSetHeader, Object[], Style[])
instead.items
- the list of SelectItemsvalues
- the array of values@Deprecated public DefaultRow(List<SelectItem> items, Object[] values, Style[] styles)
DefaultRow(DataSetHeader, Object[])
or
DefaultRow(DataSetHeader, Object[], Style[])
instead.items
- the list of SelectItemsvalues
- the array of valuesstyles
- an optional array of stylespublic Object getValue(int index) throws ArrayIndexOutOfBoundsException
Row
getValue
in interface Row
ArrayIndexOutOfBoundsException
public Object[] getValues()
Row
getValues
in interface Row
getValues
in class AbstractRow
public Style getStyle(int index) throws IndexOutOfBoundsException
getStyle
in interface Row
IndexOutOfBoundsException
public Style[] getStyles()
getStyles
in interface Row
getStyles
in class AbstractRow
protected DataSetHeader getHeader()
getHeader
in class AbstractRow
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.