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 of ISpanningDataProvider that wraps an existing IDataProvider.
Since:
2.0
  • Field Details

    • underlyingDataProvider

      protected final IDataProvider underlyingDataProvider
  • Constructor Details

    • WrappingSpanningDataProvider

      public WrappingSpanningDataProvider(IDataProvider underlyingDataProvider)
  • Method Details

    • 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
      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: 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
      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:
      getColumnCount in interface IDataProvider
      Returns:
      The number of columns this IDataProvider handles.
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface IDataProvider
      Returns:
      The number of rows this IDataProvider handles.