org.eclipse.nebula.widgets.nattable.grid.data
Class DefaultRowHeaderDataProvider

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
All Implemented Interfaces:
IDataProvider
Direct Known Subclasses:
DefaultSummaryRowHeaderDataProvider

public class DefaultRowHeaderDataProvider
extends Object
implements IDataProvider


Field Summary
protected  IDataProvider bodyDataProvider
           
 
Constructor Summary
DefaultRowHeaderDataProvider(IDataProvider bodyDataProvider)
           
 
Method Summary
 int getColumnCount()
           
 Object getDataValue(int columnIndex, int rowIndex)
          Gets the value at the given column and row index.
 int getRowCount()
           
 void setDataValue(int columnIndex, int rowIndex, Object newValue)
          Sets the value at the given column and row index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bodyDataProvider

protected final IDataProvider bodyDataProvider
Constructor Detail

DefaultRowHeaderDataProvider

public DefaultRowHeaderDataProvider(IDataProvider bodyDataProvider)
Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface IDataProvider

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface IDataProvider

getDataValue

public Object getDataValue(int columnIndex,
                           int rowIndex)
Description copied from interface: IDataProvider
Gets the value at the given column and row index.

Specified by:
getDataValue in interface IDataProvider
Returns:
the data value associated with the specified cell

setDataValue

public void setDataValue(int columnIndex,
                         int rowIndex,
                         Object newValue)
Description copied from interface: IDataProvider
Sets the value at the given column and row index. Optional operation. Should throw UnsupportedOperationException if this operation is not supported.

Specified by:
setDataValue in interface IDataProvider


Copyright © 2014. All rights reserved.