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 default 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.
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
  • Constructor Details

    • GlazedListsDataProvider

      public GlazedListsDataProvider(ca.odell.glazedlists.EventList<T> list, IColumnAccessor<T> columnAccessor)
      Deprecated.
  • Method Details

    • inputChanged

      public void inputChanged()
      Deprecated.
    • getRowObject

      public T getRowObject(int rowIndex)
      Deprecated.
      Specified by:
      getRowObject in interface IRowDataProvider<T>
      Overrides:
      getRowObject in class ListDataProvider<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 interface IDataProvider
      Overrides:
      getDataValue in class ListDataProvider<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.