|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.cell.client.AbstractCell<C> com.google.gwt.cell.client.AbstractEditableCell<C,V> com.google.gwt.cell.client.AbstractInputCell<java.lang.String,TextInputCell.ViewData> com.google.gwt.cell.client.TextInputCell
public class TextInputCell
An AbstractCell
used to render a text input.
Nested Class Summary | |
---|---|
(package private) static interface |
TextInputCell.Template
|
static class |
TextInputCell.ViewData
The ViewData for this cell. |
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell |
---|
Cell.Context |
Constructor Summary | |
---|---|
TextInputCell()
Constructs a TextInputCell that renders its text without HTML markup. |
|
TextInputCell(SafeHtmlRenderer<java.lang.String> renderer)
Deprecated. the value of a text input is never treated as html |
Method Summary | |
---|---|
protected void |
finishEditing(Element parent,
java.lang.String value,
java.lang.Object key,
ValueUpdater<java.lang.String> valueUpdater)
Call this method when editing is complete. |
protected InputElement |
getInputElement(Element parent)
Get the input element. |
void |
onBrowserEvent(Cell.Context context,
Element parent,
java.lang.String value,
NativeEvent event,
ValueUpdater<java.lang.String> valueUpdater)
Handle a browser event that took place within the cell. |
void |
render(Cell.Context context,
java.lang.String value,
SafeHtmlBuilder sb)
Render a cell as HTML into a SafeHtmlBuilder , suitable for passing
to Element.setInnerHTML(String) on a container element. |
Methods inherited from class com.google.gwt.cell.client.AbstractInputCell |
---|
isEditing, onEnterKeyDown, resetFocus |
Methods inherited from class com.google.gwt.cell.client.AbstractEditableCell |
---|
clearViewData, getViewData, setViewData |
Methods inherited from class com.google.gwt.cell.client.AbstractCell |
---|
dependsOnSelection, getConsumedEvents, handlesSelection, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextInputCell()
@Deprecated public TextInputCell(SafeHtmlRenderer<java.lang.String> renderer)
SafeHtmlRenderer
.
renderer
- parameter is ignoredMethod Detail |
---|
public void onBrowserEvent(Cell.Context context, Element parent, java.lang.String value, NativeEvent event, ValueUpdater<java.lang.String> valueUpdater)
AbstractCell
If 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 AbstractInputCell<java.lang.String,TextInputCell.ViewData>
context
- the Cell.Context
of the cellparent
- the parent Elementvalue
- the value associated with the cellevent
- the native browser eventvalueUpdater
- a ValueUpdater
, or null if not specifiedpublic void render(Cell.Context context, java.lang.String value, SafeHtmlBuilder sb)
Cell
SafeHtmlBuilder
, suitable for passing
to Element.setInnerHTML(String)
on a container element.
Note: If your cell contains natively focusable elements, such as buttons or input elements, be sure to set the tabIndex to -1 so that they do not steal focus away from the containing widget.
render
in interface Cell<java.lang.String>
render
in class AbstractCell<java.lang.String>
context
- the Cell.Context
of the cellvalue
- the cell value to be renderedsb
- the SafeHtmlBuilder
to be written toprotected void finishEditing(Element parent, java.lang.String value, java.lang.Object key, ValueUpdater<java.lang.String> valueUpdater)
AbstractInputCell
finishEditing
in class AbstractInputCell<java.lang.String,TextInputCell.ViewData>
parent
- the parent Elementvalue
- the value associated with the cellkey
- the unique key associated with the row objectvalueUpdater
- the value update to fireprotected InputElement getInputElement(Element parent)
AbstractInputCell
getInputElement
in class AbstractInputCell<java.lang.String,TextInputCell.ViewData>
parent
- the cell parent element
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |