|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
C - the type that this Cell representspublic interface Cell<C>
A light weight representation of a renderable object.
Note: This class is new and its interface subject to change.
| Method Summary | |
|---|---|
boolean |
consumesEvents()
Returns true if the cell is interested in browser events. |
boolean |
dependsOnSelection()
Check if this cell depends on the selection state. |
java.lang.Object |
onBrowserEvent(Element parent,
C value,
java.lang.Object viewData,
NativeEvent event,
ValueUpdater<C> valueUpdater)
Handle a browser event that took place within the cell. |
void |
render(C value,
java.lang.Object viewData,
java.lang.StringBuilder sb)
Render a cell as HTML into a StringBuilder, suitable for passing to Element.setInnerHTML(java.lang.String) on a container element. |
void |
setValue(Element parent,
C value,
java.lang.Object viewData)
This method may be used by cell containers to set the value on a single cell directly, rather than using Element.setInnerHTML(String). |
| Method Detail |
|---|
boolean consumesEvents()
boolean dependsOnSelection()
java.lang.Object onBrowserEvent(Element parent,
C value,
java.lang.Object viewData,
NativeEvent event,
ValueUpdater<C> valueUpdater)
parent - the parent Elementvalue - the value associated with the cellviewData - the view data associated with the cell, or nullevent - the native browser eventvalueUpdater - a ValueUpdater, or null
void render(C value,
java.lang.Object viewData,
java.lang.StringBuilder sb)
Element.setInnerHTML(java.lang.String) on a container element.
value - the cell value to be renderedviewData - view data associated with the cellsb - the StringBuilder to be written to
void setValue(Element parent,
C value,
java.lang.Object viewData)
Element.setInnerHTML(String). See
AbstractCell.setValue(Element, Object, Object) for a default
implementation that uses render(Object, Object, StringBuilder).
parent - the parent Elementvalue - the value associated with the cellviewData - the view data associated with the cell, or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||