Class IdentityColumn<T>

Type Parameters:
T - the row type
All Implemented Interfaces:
HasCell<T,T>, HasAlignment, HasHorizontalAlignment, HasVerticalAlignment

public class IdentityColumn<T> extends Column<T,T>
A passthrough column, useful for giving cells access to the entire row object.
  • Constructor Details

    • IdentityColumn

      public IdentityColumn(Cell<T> cell)
      Construct a new IdentityColumn with a given Cell.
      cell - the Cell responsible for rendering items in the column
  • Method Details

    • getValue

      public T getValue(T object)
      Return the passed-in object.
      Specified by:
      getValue in interface HasCell<T,T>
      Specified by:
      getValue in class Column<T,T>
      object - the object to return
      a value of type C suitable for passing to the cell