java.lang.Object | |||
↳ | com.google.gwt.cell.client.AbstractCell<C> | ||
↳ | com.google.gwt.cell.client.AbstractSafeHtmlCell<C> | ||
↳ | com.google.gwt.cell.client.ButtonCell |
A Cell
used to render a button.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new ButtonCell that will use a
SimpleSafeHtmlRenderer . | |||||||||||
Construct a new ButtonCell that will use a given
SafeHtmlRenderer . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. | |||||||||||
Render the cell contents after they have been converted to
SafeHtml
form. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when the user triggers a
keydown event with the ENTER
key while focused on the cell. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.cell.client.AbstractSafeHtmlCell
| |||||||||||
From class
com.google.gwt.cell.client.AbstractCell
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.cell.client.Cell
|
Construct a new ButtonCell that will use a given SafeHtmlRenderer
.
renderer | a SafeHtmlRenderer instance
|
---|
Handle a browser event that took place within the cell. The default implementation returns null.
If you override this method to add support for events, remember to pass the event types that the cell expects into the constructor.
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 the cell contents after they have been converted to SafeHtml
form.
context | the original context to render |
---|---|
data | a SafeHtml string |
sb | the SafeHtmlBuilder to be written to
|
Called when the user triggers a keydown
event with the ENTER
key while focused on the cell. If your cell interacts with the user, you
should override this method to provide a consistent user experience. Your
widget must consume keydown
events for this method to be
called.
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
|