com.google.gwt.app.place
Class PropertyColumn<R extends Record,T>
java.lang.Object
com.google.gwt.user.cellview.client.Column<T,java.lang.String>
com.google.gwt.user.cellview.client.TextColumn<R>
com.google.gwt.app.place.PropertyColumn<R,T>
- Type Parameters:
R - the type of record in this tableT - 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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyColumn
public PropertyColumn(Property<T> property,
Renderer<T> renderer)
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