All Superinterfaces:
Cell<T>, Control
All Known Implementing Classes:
AbstractListCell, ListCell.DefaultListCell

public interface ListCell<T> extends Cell<T>
Extension of a Cell to make it aware of an item style and selection state.
  • Method Details

    • setItemStyle

      void setItemStyle(ListView.ItemStyle itemStyle)
      Parameters:
      itemStyle - the item style
    • setSelected

      void setSelected(boolean selected)
      Set selection state.
      Parameters:
      selected - the selection state
    • of

      static <T> ListCell<T> of(T item, ListView.ItemStyle itemStyle)
      Helper method to build a ListCell.
      Parameters:
      item - the item
      itemStyle - the item style
      Returns:
      a default list cell