All Superinterfaces:
Cell<T>, Control
All Known Implementing Classes:
AbstractTextCell, TextCell.DefaultTextCell

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

    • setHorizontalAlign

      void setHorizontalAlign(HorizontalAlign hAlign)
      Sets horizontal align for a text to draw. Defaults to HorizontalAlign.CENTER.
      Parameters:
      hAlign - the horizontal align
    • setVerticalAlign

      void setVerticalAlign(VerticalAlign vAlign)
      Sets vertical align for a text to draw. Defaults to VerticalAlign.CENTER.
      Parameters:
      vAlign - the vertical align
    • of

      static <T> TextCell<T> of(T item, Function<T,String> itemFunction)
      Helper method to build a TextCell.
      Type Parameters:
      T - type of an item
      Parameters:
      item - the item
      itemFunction - the item function
      Returns:
      a default text cell
    • of

      static <T> TextCell<T> of(T item, Function<T,String> itemFunction, HorizontalAlign hAlign, VerticalAlign vAlign)
      Helper method to build a TextCell.
      Type Parameters:
      T - type of an item
      Parameters:
      item - the item
      itemFunction - the item function
      hAlign - item horizontal alignment
      vAlign - item vertical alignment
      Returns: