Class VirtualList<V extends Component,​M>

    • Constructor Detail

      • VirtualList

        public VirtualList()
    • Method Detail

      • getIndexNearPosition

        protected abstract int getIndexNearPosition​(int y)
        Finds the nearest index to a given y position
      • getItemPosition

        protected abstract Rectangle getItemPosition​(int index)
        Gets the bounds for an item at index. Must be fast enough to call per item per paint.
      • createView

        protected abstract V createView​(@Nullable
                                        V recycle,
                                        M model)
      • setModel

        public void setModel​(List<M> model)
      • getModel

        public List<M> getModel()
      • setKeepUnused

        public void setKeepUnused​(int keepUnused)