|
||||||||||
| 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 @link{Cell#render} methods.
| Constructor Summary | |
|---|---|
Column(Cell<C> cell)
|
|
| Method Summary | |
|---|---|
boolean |
consumesEvents()
|
boolean |
dependsOnSelection()
Returns true if the contents of the column may depend on the current state of the selection model associated with the table that is displaying this column. |
Cell<C> |
getCell()
Returns the Cell of type C. |
FieldUpdater<T,C> |
getFieldUpdater()
Returns the FieldUpdater instance. |
abstract C |
getValue(T object)
Returns the value of type C extracted from the record of type T. |
java.lang.Object |
getViewData(java.lang.Object key)
Gets the view data associated with the given item. |
void |
onBrowserEvent(Element elem,
int index,
T object,
NativeEvent event,
ProvidesKey<T> providesKey)
|
void |
render(T object,
ProvidesKey<T> keyProvider,
java.lang.StringBuilder sb)
Render the object into the cell. |
void |
setFieldUpdater(FieldUpdater<T,C> fieldUpdater)
|
void |
setViewData(java.lang.Object key,
java.lang.Object viewData)
Sets the view data associated with the given item. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Column(Cell<C> cell)
| Method Detail |
|---|
public boolean consumesEvents()
public boolean dependsOnSelection()
public Cell<C> getCell()
HasCellCell of type C.
getCell in interface HasCell<T,C>public FieldUpdater<T,C> getFieldUpdater()
HasCellFieldUpdater instance.
getFieldUpdater in interface HasCell<T,C>public abstract C getValue(T object)
HasCell
getValue in interface HasCell<T,C>object - a record of type T
public java.lang.Object getViewData(java.lang.Object key)
HasViewData
getViewData in interface HasViewDatakey - the key of the item whose view data is desired
public void onBrowserEvent(Element elem,
int index,
T object,
NativeEvent event,
ProvidesKey<T> providesKey)
providesKey - an instance of ProvidesKey
public void render(T object,
ProvidesKey<T> keyProvider,
java.lang.StringBuilder sb)
object - the object to renderkeyProvider - the ProvidesKey for the objectsb - the buffer to render intopublic void setFieldUpdater(FieldUpdater<T,C> fieldUpdater)
public void setViewData(java.lang.Object key,
java.lang.Object viewData)
HasViewData
setViewData in interface HasViewDatakey - the key of the item whose view data will be setviewData - the view data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||