JIDE 3.5.15

com.jidesoft.grid
Class RowValueProvider

java.lang.Object
  extended by com.jidesoft.grid.RowValueProvider
All Implemented Interfaces:
ValueProvider

public class RowValueProvider
extends Object
implements ValueProvider

RowValueProvider is a ValueProvider which retrieves values from a Row.


Constructor Summary
RowValueProvider()
           
RowValueProvider(Row row)
           
 
Method Summary
 Row getRow()
          Gets the Row.
 Object getValueAt(int row, int column)
          Gets the value from a Row.
 void setRow(Row row)
          Sets the Row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowValueProvider

public RowValueProvider()

RowValueProvider

public RowValueProvider(Row row)
Method Detail

getValueAt

public Object getValueAt(int row,
                         int column)
Gets the value from a Row. In this case, the rowIndex is not used because the Row already represents a row in a table.

Specified by:
getValueAt in interface ValueProvider
Parameters:
row - the row index. This parameter is not used in this case.
column - the column index. We will use index to find the value from Row using Row.getValueAt(int) method.
Returns:
the value at the columnIndex of a Row.

getRow

public Row getRow()
Gets the Row.

Returns:
the Row

setRow

public void setRow(Row row)
Sets the Row.

Parameters:
row - the Row.

JIDE 3.5.15