public class

CellBasedWidgetImplSafari

extends Object
java.lang.Object
   ↳ com.google.gwt.user.cellview.client.CellBasedWidgetImplSafari

Class Overview

Webkit specified Impl used by cell based widgets.

Summary

Public Constructors
CellBasedWidgetImplSafari()
Public Methods
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.
final void sinkEvents(Widget widget, Set<String> typeNames)
Sink events on the widget.
Protected Methods
int sinkEvent(Widget widget, String typeName)
Get the event bits to sink for an event type.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CellBasedWidgetImplSafari ()

Public Methods

public static CellBasedWidgetImpl get ()

Get the singleton instance.

Returns
  • the CellBasedWidgetImpl instance

public boolean isFocusable (Element elem)

Check if an element is focusable. If an element is focusable, the cell widget should not steal focus from it.

Parameters
elem the element
Returns
  • true if the element is focusable, false if not

public void onBrowserEvent (Widget widget, Event event)

Process an event on a target cell.

Parameters
widget the Widget on which the event occurred
event the event to handle

public SafeHtml processHtml (SafeHtml html)

Takes in an html string and processes it, adding support for events.

Parameters
html the html string to process
Returns
  • the processed html string

public void resetFocus (Scheduler.ScheduledCommand command)

Reset focus on an element.

Parameters
command the command to execute when resetting focus

public final void sinkEvents (Widget widget, Set<String> typeNames)

Sink events on the widget.

Parameters
widget the Widget that will handle the events
typeNames the names of the events to sink

Protected Methods

protected int sinkEvent (Widget widget, String typeName)

Get the event bits to sink for an event type.

Parameters
widget the Widget that will handle the events
typeName the name of the event to sink
Returns
  • the event bits to sink, or -1 if no events to sink