com.google.gwt.app.place
Class PropertyColumn<R extends Record,T>

java.lang.Object
  extended by com.google.gwt.user.cellview.client.Column<T,java.lang.String>
      extended by com.google.gwt.user.cellview.client.TextColumn<R>
          extended by com.google.gwt.app.place.PropertyColumn<R,T>
Type Parameters:
R - the type of record in this table
T - value type of the property
All Implemented Interfaces:
HasCell<R,java.lang.String>, HasViewData

public class PropertyColumn<R extends Record,T>
extends TextColumn<R>

Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.

A column that displays a record property as a string.


Constructor Summary
PropertyColumn(Property<T> property, Renderer<T> renderer)
           
 
Method Summary
 Property<T> getProperty()
           
static
<R extends Record>
PropertyColumn<R,java.lang.String>
getStringPropertyColumn(Property<java.lang.String> property)
           
 java.lang.String getValue(R 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

PropertyColumn

public PropertyColumn(Property<T> property,
                      Renderer<T> renderer)
Method Detail

getStringPropertyColumn

public static <R extends Record> PropertyColumn<R,java.lang.String> getStringPropertyColumn(Property<java.lang.String> property)

getProperty

public Property<T> getProperty()

getValue

public java.lang.String getValue(R 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<R extends Record,java.lang.String>
Specified by:
getValue in class Column<R extends Record,java.lang.String>
Parameters:
object - a record of type T
Returns:
a value of type C suitable for passing to the cell