Class GlazedListsDataProvider<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.data.ListDataProvider<T>
org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsDataProvider<T>
- All Implemented Interfaces:
IDataProvider
,IRowDataProvider<T>
Deprecated.
This class implements "last row" caching for much faster column value access
on the table. As normally the default implementation would fetch the row
object for each cell in a column, we know what the last row we fetched was,
and if it's a re-request of the same row as last time, we simply return the
last cached row object (assuming the list didn't change in some important
way, as then we clear out our cache).
- Author:
- Emil Crumhorn
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.data.ListDataProvider
columnAccessor, list
-
Constructor Summary
ConstructorDescriptionGlazedListsDataProvider
(ca.odell.glazedlists.EventList<T> list, IColumnAccessor<T> columnAccessor) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetDataValue
(int colIndex, int rowIndex) Deprecated.Gets the value at the given column and row index.getRowObject
(int rowIndex) Deprecated.void
Deprecated.Methods inherited from class org.eclipse.nebula.widgets.nattable.data.ListDataProvider
getColumnCount, getList, getRowCount, indexOfRowObject, setDataValue
-
Constructor Details
-
GlazedListsDataProvider
public GlazedListsDataProvider(ca.odell.glazedlists.EventList<T> list, IColumnAccessor<T> columnAccessor) Deprecated.
-
-
Method Details
-
inputChanged
public void inputChanged()Deprecated. -
getRowObject
Deprecated.- Specified by:
getRowObject
in interfaceIRowDataProvider<T>
- Overrides:
getRowObject
in classListDataProvider<T>
-
getDataValue
Deprecated.Description copied from interface:IDataProvider
Gets the value at the given column and row index.- Specified by:
getDataValue
in interfaceIDataProvider
- Overrides:
getDataValue
in classListDataProvider<T>
- Parameters:
colIndex
- 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.
-
ListDataProvider
instead as the performance boost can not be verified with current Java and GlazedLists implementations and as this implementation is not thread-safe it introduces more issues than it tries to solve.