|
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.cell.client.AbstractCell<C>
com.google.gwt.cell.client.AbstractSafeHtmlCell<java.lang.String>
com.google.gwt.cell.client.ClickableTextCell
public class ClickableTextCell
A Cell used to render text. Clicking on the cell causes its
ValueUpdater to be called.
| Constructor Summary | |
|---|---|
ClickableTextCell()
Construct a new ClickableTextCell that will use a SimpleSafeHtmlRenderer. |
|
ClickableTextCell(SafeHtmlRenderer<java.lang.String> renderer)
Construct a new ClickableTextCell that will use a given SafeHtmlRenderer. |
|
| Method Summary | |
|---|---|
void |
onBrowserEvent(Element parent,
java.lang.String value,
java.lang.Object key,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
Handle a browser event that took place within the cell. |
protected void |
onEnterKeyDown(Element parent,
java.lang.String value,
java.lang.Object key,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
Called when the user triggers a keydown event with the ENTER
key while focused on the cell. |
protected void |
render(SafeHtml value,
java.lang.Object key,
SafeHtmlBuilder sb)
Render the cell contents after they have been converted to SafeHtml
form. |
| Methods inherited from class com.google.gwt.cell.client.AbstractSafeHtmlCell |
|---|
getRenderer, render |
| Methods inherited from class com.google.gwt.cell.client.AbstractCell |
|---|
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, resetFocus, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClickableTextCell()
SimpleSafeHtmlRenderer.
public ClickableTextCell(SafeHtmlRenderer<java.lang.String> renderer)
SafeHtmlRenderer.
renderer - a SafeHtmlRenderer instance| Method Detail |
|---|
public void onBrowserEvent(Element parent,
java.lang.String value,
java.lang.Object key,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
AbstractCellIf you override this method to add support for events, remember to pass the event types that the cell expects into the constructor.
onBrowserEvent in interface Cell<java.lang.String>onBrowserEvent in class AbstractCell<java.lang.String>parent - the parent Elementvalue - the value associated with the cellkey - the unique key associated with the row objectevent - the native browser eventvalueUpdater - a ValueUpdater, or null if not specified
protected void onEnterKeyDown(Element parent,
java.lang.String value,
java.lang.Object key,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
AbstractCellkeydown event with the ENTER
key while focused on the cell. If your cell interacts with the user, you
should override this method to provide a consistent user experience. Your
widget must consume keydown events for this method to be
called.
onEnterKeyDown in class AbstractCell<java.lang.String>parent - the parent Elementvalue - the value associated with the cellkey - the unique key associated with the row objectevent - the native browser eventvalueUpdater - a ValueUpdater, or null if not specified
protected void render(SafeHtml value,
java.lang.Object key,
SafeHtmlBuilder sb)
AbstractSafeHtmlCellSafeHtml
form.
render in class AbstractSafeHtmlCell<java.lang.String>value - a SafeHtml stringkey - the unique key associated with the row objectsb - the SafeHtmlBuilder to be written to
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||