GWT 2.1.0

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>

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

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


Field Summary
 
Fields inherited from class com.google.gwt.user.cellview.client.Column
cell, fieldUpdater
 
Constructor Summary
IdentityColumn(Cell<T> cell)
          Construct a new IdentityColumn with a given Cell.
 
Method Summary
 T getValue(T object)
          Return the passed-in object.
 
Methods inherited from class com.google.gwt.user.cellview.client.Column
getCell, getFieldUpdater, onBrowserEvent, render, setFieldUpdater
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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

GWT 2.1.0