Class ListDataProvider<T extends Serializable>

    • Constructor Detail

      • ListDataProvider

        public ListDataProvider​(List<T> list)
        list - the list used as dataprovider for the dataview
    • Method Detail

      • getData

        protected List<TgetData()
        Subclass to lazy load the list
        The list
      • iterator

        public Iterator<Titerator​(long first,
                                    long count)
        Description copied from interface: IDataProvider
        Gets an iterator for the subset of total data
        Specified by:
        iterator in interface IDataProvider<T extends Serializable>
        first - first row of data
        count - minimum number of elements to retrieve
        iterator capable of iterating over {first, first+count} items
      • size

        public long size()
        Description copied from interface: IDataProvider
        Gets total number of items in the collection represented by the DataProvider
        Specified by:
        size in interface IDataProvider<T extends Serializable>
        total item count