C
- the type that this Cell representspublic static interface ButtonCellBase.Appearance<C>
Modifier and Type | Method and Description |
---|---|
void |
onPush(Element parent)
Called when the user pushes the button down.
|
void |
onUnpush(Element parent)
Called when the user releases the button from being pushed.
|
void |
render(ButtonCellBase<C> cell,
Cell.Context context,
C value,
SafeHtmlBuilder sb)
Render the button and its contents.
|
void |
setFocus(Element parent,
boolean focused)
Explicitly focus/unfocus this cell.
|
void onPush(Element parent)
parent
- the parent Elementvoid onUnpush(Element parent)
parent
- the parent Elementvoid render(ButtonCellBase<C> cell, Cell.Context context, C value, SafeHtmlBuilder sb)
cell
- the cell that is being renderedcontext
- the Context
of the cellvalue
- the value that generated the contentsb
- the SafeHtmlBuilder
to render intovoid setFocus(Element parent, boolean focused)
parent
- the parent elementfocused
- whether this cell should take focus or release it