Interface IDataProvider

All Known Subinterfaces:
IRowDataProvider<T>, ISpanningDataProvider
All Known Implementing Classes:
AbstractFilterListDataProvider, AutomaticSpanningDataProvider, BlinkingGlazedListExample.ColumnHeaderDataProvider, ColumnStructureUpdatesExampleGridLayer.ListDataProviderExample, DataProviderFixture, DefaultBodyDataProvider, DefaultColumnHeaderDataProvider, DefaultCornerDataProvider, DefaultRowHeaderDataProvider, DefaultSummaryRowHeaderDataProvider, DummyBodyDataProvider, DummyColumnHeaderDataProvider, DummyModifiableBodyDataProvider, DummySpanningBodyDataProvider, FilterRowDataProvider, FormulaDataProvider, FormulaRowDataProvider, GlazedListsDataProvider, HierarchicalSpanningDataProvider, ListDataProvider, TwoDimensionalArrayDataProvider, WrappingSpanningDataProvider

public interface IDataProvider
Provide data to the table.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    getDataValue(int columnIndex, int rowIndex)
    Gets the value at the given column and row index.
    int
     
    void
    setDataValue(int columnIndex, int rowIndex, Object newValue)
    Sets the value at the given column and row index.
  • Method Details

    • getDataValue

      Object getDataValue(int columnIndex, int rowIndex)
      Gets the value at the given column and row index.
      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

      void setDataValue(int columnIndex, int rowIndex, Object newValue)
      Sets the value at the given column and row index. Optional operation. Should throw UnsupportedOperationException if this operation is not supported.
      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

      int getColumnCount()
      Returns:
      The number of columns this IDataProvider handles.
    • getRowCount

      int getRowCount()
      Returns:
      The number of rows this IDataProvider handles.