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 IDataProviderProvide data to the table.- See Also:
DataLayer,ListDataProvider
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
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
IDataProviderhandles.
-
getRowCount
int getRowCount()
- Returns:
- The number of rows this
IDataProviderhandles.
-
-