com.google.gwt.user.cellview.client
Class IdentityColumn<T>

java.lang.Object
  extended by com.google.gwt.user.cellview.client.Column<T,T>
      extended by com.google.gwt.user.cellview.client.IdentityColumn<T>
Type Parameters:
T - the row type
All Implemented Interfaces:
HasCell<T,T>, HasViewData

public class IdentityColumn<T>
extends Column<T,T>

A passthrough column, useful for giving cells access to the entire row object.


Constructor Summary
IdentityColumn(Cell<T> cell)
           
 
Method Summary
 T getValue(T object)
          Returns the value of type C extracted from the record of type T.
 
Methods inherited from class com.google.gwt.user.cellview.client.Column
consumesEvents, dependsOnSelection, getCell, getFieldUpdater, getViewData, onBrowserEvent, render, setFieldUpdater, setViewData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityColumn

public IdentityColumn(Cell<T> cell)
Parameters:
cell -
Method Detail

getValue

public T getValue(T object)
Description copied from interface: HasCell
Returns the value of type C extracted from the record of type T.

Specified by:
getValue in interface HasCell<T,T>
Specified by:
getValue in class Column<T,T>
Parameters:
object - a record of type T
Returns:
a value of type C suitable for passing to the cell