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 public class GlazedListsDataProvider<T> extends ListDataProvider<T>
Deprecated.Use a defaultListDataProvider
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.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
Constructors Constructor Description GlazedListsDataProvider(ca.odell.glazedlists.EventList<T> list, IColumnAccessor<T> columnAccessor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
getDataValue(int colIndex, int rowIndex)
Deprecated.Gets the value at the given column and row index.T
getRowObject(int rowIndex)
Deprecated.void
inputChanged()
Deprecated.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.data.ListDataProvider
getColumnCount, getList, getRowCount, indexOfRowObject, setDataValue
-
-
-
-
Constructor Detail
-
GlazedListsDataProvider
public GlazedListsDataProvider(ca.odell.glazedlists.EventList<T> list, IColumnAccessor<T> columnAccessor)
Deprecated.
-
-
Method Detail
-
inputChanged
public void inputChanged()
Deprecated.
-
getRowObject
public T getRowObject(int rowIndex)
Deprecated.- Specified by:
getRowObject
in interfaceIRowDataProvider<T>
- Overrides:
getRowObject
in classListDataProvider<T>
-
getDataValue
public Object getDataValue(int colIndex, int rowIndex)
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.
-
-