Class Overview
An AbstractCell
used to render an ImageResource
.
This class assumes that the URL returned from ImageResource is safe from
script attacks. If you do not generate the ImageResource from a
ClientBundle
, you should
use UriUtils
to sanitize the
URL before returning it from getURL()
.
Summary
[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
ImageResourceCell
()
Construct a new ImageResourceCell.
Public Methods
Render a cell as HTML into a SafeHtmlBuilder
, suitable for passing
to 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.
Parameters
context
| the Context of the cell |
value
| the cell value to be rendered |
sb
| the SafeHtmlBuilder to be written to
|