abstract class CellBasedWidgetImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Set<java.lang.String> |
focusableTypes
The set of natively focusable elements.
|
Constructor and Description |
---|
CellBasedWidgetImpl() |
Modifier and Type | Method and Description |
---|---|
static CellBasedWidgetImpl |
get()
Get the singleton instance.
|
boolean |
isFocusable(Element elem)
Check if an element is focusable.
|
void |
onBrowserEvent(Widget widget,
Event event)
Process an event on a target cell.
|
SafeHtml |
processHtml(SafeHtml html)
Takes in an html string and processes it, adding support for events.
|
void |
resetFocus(Scheduler.ScheduledCommand command)
Reset focus on an element.
|
protected int |
sinkEvent(Widget widget,
java.lang.String typeName)
Get the event bits to sink for an event type.
|
void |
sinkEvents(Widget widget,
java.util.Set<java.lang.String> typeNames)
Sink events on the widget.
|
final java.util.Set<java.lang.String> focusableTypes
public static CellBasedWidgetImpl get()
CellBasedWidgetImpl
instancepublic boolean isFocusable(Element elem)
elem
- the elementpublic void onBrowserEvent(Widget widget, Event event)
widget
- the Widget
on which the event occurredevent
- the event to handlepublic SafeHtml processHtml(SafeHtml html)
html
- the html string to processpublic void resetFocus(Scheduler.ScheduledCommand command)
command
- the command to execute when resetting focuspublic final void sinkEvents(Widget widget, java.util.Set<java.lang.String> typeNames)
widget
- the Widget
that will handle the eventstypeNames
- the names of the events to sink