All Superinterfaces:
Control
All Known Subinterfaces:
ListCell<T>, TextCell<T>
All Known Implementing Classes:
AbstractCell, AbstractListCell, AbstractTextCell, ListCell.DefaultListCell, TextCell.DefaultTextCell

public interface Cell<T> extends Control
Base interface for all cells. Typically a Cell is a building block in a View not needing to be aware of how it is drawn into a Screen but needs to aware of its "item", bounds via Control and other properties like background.
  • Method Details

    • getItem

      T getItem()
      Get item bound to a cell.
      Returns:
      item bound to a cell
    • setItem

      void setItem(T item)
      Sets an item to bound into a cell.
      Parameters:
      item - item to bound into a cell
    • setStyle

      void setStyle(int style)
      Sets a style.
      Parameters:
      style - the style
    • setForegroundColor

      void setForegroundColor(int foregroundColor)
      Sets a foreground color.
      Parameters:
      foregroundColor - the background color
    • setBackgroundColor

      void setBackgroundColor(int backgroundColor)
      Sets a background color.
      Parameters:
      backgroundColor - the background color