Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
A default implementation of the Cell
interface used for editable
cells that need to save view data state for specific values.
Example
{@example com.google.gwt.examples.cell.EditableCellExample}
Summary
Public Methods |
void
|
clearViewData(Object key)
Clear the view data associated with the specified key.
|
V
|
getViewData(Object key)
Get the view data associated with the specified key.
|
abstract
boolean
|
isEditing(Cell.Context context, Element parent, C value)
Returns true if the cell is currently editing the data identified by the
given element and key.
|
void
|
setViewData(Object key, V viewData)
Associate view data with the specified key.
|
[Expand]
Inherited Methods |
From class
com.google.gwt.cell.client.AbstractCell
boolean
|
dependsOnSelection()
Check if this cell depends on the selection state.
|
Set<String>
|
getConsumedEvents()
Get the set of events that this cell consumes.
|
boolean
|
handlesSelection()
Check if this cell handles selection.
|
boolean
|
isEditing(Cell.Context context, Element parent, C value)
Returns false.
|
void
|
onBrowserEvent(Cell.Context context, Element parent, C value, NativeEvent event, ValueUpdater<C> valueUpdater)
Handle a browser event that took place within the cell.
If you override this method to add support for events, remember to pass the
event types that the cell expects into the constructor.
|
void
|
onEnterKeyDown(Cell.Context context, Element parent, C value, NativeEvent event, ValueUpdater<C> valueUpdater)
Called when the user triggers a keydown event with the ENTER
key while focused on the cell.
|
abstract
void
|
render(Cell.Context context, C value, SafeHtmlBuilder sb)
|
boolean
|
resetFocus(Cell.Context context, Element parent, C value)
Reset focus on the Cell.
This method is a no-op and returns false.
|
void
|
setValue(Cell.Context context, Element parent, C value)
This method may be used by cell containers to set the value on a single
cell directly, rather than using setInnerHTML(String) .
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gwt.cell.client.Cell
abstract
boolean
|
dependsOnSelection()
Check if this cell depends on the selection state.
|
abstract
Set<String>
|
getConsumedEvents()
Get the set of events that this cell consumes.
|
abstract
boolean
|
handlesSelection()
Check if this cell handles selection.
|
abstract
boolean
|
isEditing(Cell.Context context, Element parent, C value)
Returns true if the cell is currently editing the data identified by the
given element and key.
|
abstract
void
|
onBrowserEvent(Cell.Context context, Element parent, C value, NativeEvent event, ValueUpdater<C> valueUpdater)
Handle a browser event that took place within the cell.
|
abstract
void
|
render(Cell.Context context, C value, SafeHtmlBuilder sb)
|
abstract
boolean
|
resetFocus(Cell.Context context, Element parent, C value)
Reset focus on the Cell.
|
abstract
void
|
setValue(Cell.Context context, Element parent, C value)
This method may be used by cell containers to set the value on a single
cell directly, rather than using setInnerHTML(String) .
|
|
Public Constructors
public
AbstractEditableCell
(String... consumedEvents)
Parameters
consumedEvents
| the events that this cell consumes
|
public
AbstractEditableCell
(Set<String> consumedEvents)
Parameters
consumedEvents
| the events that this cell consumes
|
Public Methods
public
void
clearViewData
(Object key)
Clear the view data associated with the specified key.
Parameters
key
| the key identifying the row value
|
public
V
getViewData
(Object key)
Get the view data associated with the specified key.
Parameters
key
| the key identifying the row object |
Returns
- the view data, or null if none has been set
public
abstract
boolean
isEditing
(Cell.Context context, Element parent, C value)
Returns true if the cell is currently editing the data identified by the
given element and key. While a cell is editing, widgets containing the cell
may choose to pass keystrokes directly to the cell rather than using them
for navigation purposes.
Parameters
context
| the Cell.Context of the cell |
parent
| the parent Element |
value
| the value associated with the cell |
Returns
- true if the cell is in edit mode
public
void
setViewData
(Object key, V viewData)
Associate view data with the specified key. If the key is null, the view
data will be ignored.
Parameters
key
| the key of the view data |
viewData
| the view data to associate |