|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.cellview.client.Column<T,C>
T - the row typeC - the column typepublic abstract class Column<T,C>
A representation of a column in a table. The column may maintain view data
for each cell on demand. New view data, if needed, is created by the cell's
onBrowserEvent method, stored in the Column, and passed to future calls to
Cell's Cell.onBrowserEvent(com.google.gwt.dom.client.Element, C, java.lang.Object, com.google.gwt.dom.client.NativeEvent, com.google.gwt.cell.client.ValueUpdater and Cell.render(C, java.lang.Object, com.google.gwt.safehtml.shared.SafeHtmlBuilder) methods.
| Field Summary | |
|---|---|
protected Cell<C> |
cell
The Cell responsible for rendering items in the column. |
protected FieldUpdater<T,C> |
fieldUpdater
The FieldUpdater used for updating values in the column. |
| Constructor Summary | |
|---|---|
Column(Cell<C> cell)
Construct a new Column with a given Cell. |
|
| Method Summary | |
|---|---|
Cell<C> |
getCell()
Returns the Cell responsible for rendering items in the column. |
FieldUpdater<T,C> |
getFieldUpdater()
Returns the FieldUpdater used for updating values in the column. |
abstract C |
getValue(T object)
Returns the column value from within the underlying data object. |
void |
onBrowserEvent(Element elem,
int index,
T object,
NativeEvent event,
ProvidesKey<T> keyProvider)
Handle a browser event that took place within the column. |
void |
render(T object,
ProvidesKey<T> keyProvider,
SafeHtmlBuilder sb)
Render the object into the cell. |
void |
setFieldUpdater(FieldUpdater<T,C> fieldUpdater)
Set the FieldUpdater used for updating values in the column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Cell<C> cell
Cell responsible for rendering items in the column.
protected FieldUpdater<T,C> fieldUpdater
FieldUpdater used for updating values in the column.
| Constructor Detail |
|---|
public Column(Cell<C> cell)
Cell.
cell - the Cell used by this Column| Method Detail |
|---|
public Cell<C> getCell()
Cell responsible for rendering items in the column.
getCell in interface HasCell<T,C>public FieldUpdater<T,C> getFieldUpdater()
FieldUpdater used for updating values in the column.
getFieldUpdater in interface HasCell<T,C>setFieldUpdater(FieldUpdater)public abstract C getValue(T object)
getValue in interface HasCell<T,C>object - a record of type T
public void onBrowserEvent(Element elem,
int index,
T object,
NativeEvent event,
ProvidesKey<T> keyProvider)
elem - the parent Elementindex - the current row index of the objectobject - the base object to be updatedevent - the native browser eventkeyProvider - an instance of ProvidesKey
public void render(T object,
ProvidesKey<T> keyProvider,
SafeHtmlBuilder sb)
object - the object to renderkeyProvider - the ProvidesKey for the objectsb - the buffer to render intopublic void setFieldUpdater(FieldUpdater<T,C> fieldUpdater)
FieldUpdater used for updating values in the column.
fieldUpdater - the field updatergetFieldUpdater()
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||