
C - the type that this Cell representsV - the data type of the view data statepublic abstract class AbstractEditableCell<C,V> extends AbstractCell<C>
Cell interface used for editable
cells that need to save view data state for specific values.
Cell.Context| Constructor and Description |
|---|
AbstractEditableCell(Set<String> consumedEvents)
Construct a new
AbstractEditableCell with the specified consumed
events. |
AbstractEditableCell(String... consumedEvents)
Construct a new
AbstractEditableCell with the specified consumed
events. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
dependsOnSelection, getConsumedEvents, handlesSelection, onBrowserEvent, onEnterKeyDown, render, resetFocus, setValuepublic AbstractEditableCell(String... consumedEvents)
AbstractEditableCell with the specified consumed
events.consumedEvents - the events that this cell consumespublic AbstractEditableCell(Set<String> consumedEvents)
AbstractEditableCell with the specified consumed
events.consumedEvents - the events that this cell consumespublic void clearViewData(Object key)
key - the key identifying the row valuepublic V getViewData(Object key)
key - the key identifying the row objectsetViewData(Object, Object)public abstract boolean isEditing(Cell.Context context, Element parent, C value)
public void setViewData(Object key, V viewData)
key - the key of the view dataviewData - the view data to associategetViewData(Object)Copyright © 2018. All rights reserved.