java.lang.Object | |
↳ | com.google.gwt.cell.client.IconCellDecorator<C> |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new
IconCellDecorator . | |||||||||||
Construct a new
IconCellDecorator . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check if this cell depends on the selection state.
| |||||||||||
Get the set of events that this cell consumes.
| |||||||||||
Check if this cell handles selection.
| |||||||||||
Returns true if the cell is currently editing the data identified by the
given element and key.
| |||||||||||
Handle a browser event that took place within the cell.
| |||||||||||
Render a cell as HTML into a
SafeHtmlBuilder , suitable for passing
to setInnerHTML(String) on a container element. | |||||||||||
Reset focus on the Cell.
| |||||||||||
This method may be used by cell containers to set the value on a single
cell directly, rather than using
setInnerHTML(String) . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the safe HTML string that represents the icon.
| |||||||||||
Check if the icon should be used for the value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.cell.client.Cell
|
Construct a new IconCellDecorator
. The icon and the content will be
middle aligned by default.
icon | the icon to use |
---|---|
cell | the cell to decorate |
Construct a new IconCellDecorator
.
icon | the icon to use |
---|---|
cell | the cell to decorate |
valign | the vertical alignment attribute of the contents |
spacing | the pixel space between the icon and the cell |
Check if this cell depends on the selection state.
Get the set of events that this cell consumes. The container that uses this
cell should only pass these events to
when the event occurs.
The returned value should not be modified, and may be an unmodifiable set. Changes to the return value may not be reflected in the cell.
Check if this cell handles selection. If the cell handles selection, then its container should not automatically handle selection.
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.
context | the Context of the cell |
---|---|
parent | the parent Element |
value | the value associated with the cell |
Handle a browser event that took place within the cell. The default implementation returns null.
context | the Context of the cell |
---|---|
parent | the parent Element |
value | the value associated with the cell |
event | the native browser event |
valueUpdater | a ValueUpdater , or null if not specified
|
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.
context | the Context of the cell |
---|---|
value | the cell value to be rendered |
sb | the SafeHtmlBuilder to be written to
|
Reset focus on the Cell. This method is called if the cell has focus when it is refreshed.
context | the Context of the cell |
---|---|
parent | the parent Element |
value | the value associated with the cell |
This method may be used by cell containers to set the value on a single
cell directly, rather than using setInnerHTML(String)
. See
AbstractCell#setValue(Context) for a default implementation that
uses .
context | the Context of the cell |
---|---|
parent | the parent Element |
value | the value associated with the cell |
Get the safe HTML string that represents the icon. Override this method to change the icon based on the value.
value | the value being rendered |
---|
Check if the icon should be used for the value. If the icon should not be used, a placeholder of the same size will be used instead. The default implementations returns true.
value | the value being rendered |
---|