Interface ListView.Adapter

Enclosing class:
ListView

public static interface ListView.Adapter
Supplies and (optionally) caches the row widgets of a ListView.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    recycle(Widget widget)
    The list scrolled widget out of view; pool it for reuse if you like.
    rowAt(int index)
     
    int
     
  • Method Details

    • rowCount

      int rowCount()
      Returns:
      the number of rows
    • rowAt

      Widget rowAt(int index)
      Returns:
      the widget for index, populated and ready to show. May be a reused instance you kept from recycle(limn.scene.Widget).
    • recycle

      default void recycle(Widget widget)
      The list scrolled widget out of view; pool it for reuse if you like.