Class 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 Detail

      • GlazedListsDataProvider

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

      • inputChanged

        public void inputChanged()
        Deprecated.
      • 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.