Class IdentityColumn<T>

java.lang.Object
com.google.gwt.user.cellview.client.Column<T,T>
com.google.gwt.user.cellview.client.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.
      Parameters:
      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>
      Parameters:
      object - the object to return
      Returns:
      a value of type C suitable for passing to the cell