public abstract class

AbstractEditableCell

extends AbstractCell<C>
java.lang.Object
   ↳ com.google.gwt.cell.client.AbstractCell<C>
     ↳ com.google.gwt.cell.client.AbstractEditableCell<C, V>
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 Constructors
AbstractEditableCell(String... consumedEvents)
Construct a new AbstractEditableCell with the specified consumed events.
AbstractEditableCell(Set<String> consumedEvents)
Construct a new AbstractEditableCell with the specified consumed events.
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
From class java.lang.Object
From interface com.google.gwt.cell.client.Cell

Public Constructors

public AbstractEditableCell (String... consumedEvents)

Construct a new AbstractEditableCell with the specified consumed events.

Parameters
consumedEvents the events that this cell consumes

public AbstractEditableCell (Set<String> consumedEvents)

Construct a new AbstractEditableCell with the specified consumed events.

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