Class WrappingSpanningDataProvider
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.data.WrappingSpanningDataProvider
-
- All Implemented Interfaces:
IDataProvider,ISpanningDataProvider
public abstract class WrappingSpanningDataProvider extends Object implements ISpanningDataProvider
Abstract implementation ofISpanningDataProviderthat wraps an existingIDataProvider.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description protected IDataProviderunderlyingDataProvider
-
Constructor Summary
Constructors Constructor Description WrappingSpanningDataProvider(IDataProvider underlyingDataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()ObjectgetDataValue(int columnIndex, int rowIndex)Gets the value at the given column and row index.intgetRowCount()voidsetDataValue(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
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.data.ISpanningDataProvider
getCellByPosition
-
-
-
-
Field Detail
-
underlyingDataProvider
protected final IDataProvider underlyingDataProvider
-
-
Constructor Detail
-
WrappingSpanningDataProvider
public WrappingSpanningDataProvider(IDataProvider underlyingDataProvider)
-
-
Method Detail
-
getDataValue
public Object getDataValue(int columnIndex, int rowIndex)
Description copied from interface:IDataProviderGets the value at the given column and row index.- Specified by:
getDataValuein interfaceIDataProvider- Parameters:
columnIndex- The column index of the cell whose value is requested.rowIndex- The row index of the cell whose value is requested.- Returns:
- The data value associated with the specified cell coordintates.
-
setDataValue
public void setDataValue(int columnIndex, int rowIndex, Object newValue)Description copied from interface:IDataProviderSets the value at the given column and row index. Optional operation. Should throw UnsupportedOperationException if this operation is not supported.- Specified by:
setDataValuein interfaceIDataProvider- Parameters:
columnIndex- The column index of the cell whose value should be changed.rowIndex- The row index of the cell whose value should be changed.newValue- The new value that should be set.
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceIDataProvider- Returns:
- The number of columns this
IDataProviderhandles.
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceIDataProvider- Returns:
- The number of rows this
IDataProviderhandles.
-
-