public interface

Focusable

com.google.gwt.user.client.ui.Focusable
Known Indirect Subclasses

Class Overview

A widget that implements this interface can receive keyboard focus.

Summary

Public Methods
abstract int getTabIndex()
Gets the widget's position in the tab index.
abstract void setAccessKey(char key)
Sets the widget's 'access key'.
abstract void setFocus(boolean focused)
Explicitly focus/unfocus this widget.
abstract void setTabIndex(int index)
Sets the widget's position in the tab index.

Public Methods

public abstract int getTabIndex ()

Gets the widget's position in the tab index.

Returns
  • the widget's tab index

public abstract void setAccessKey (char key)

Sets the widget's 'access key'. This key is used (in conjunction with a browser-specific modifier key) to automatically focus the widget.

Parameters
key the widget's access key

public abstract void setFocus (boolean focused)

Explicitly focus/unfocus this widget. Only one widget can have focus at a time, and the widget that does will receive all keyboard events.

Parameters
focused whether this widget should take focus or release it

public abstract void setTabIndex (int index)

Sets the widget's position in the tab index. If more than one widget has the same tab index, each such widget will receive focus in an arbitrary order. Setting the tab index to -1 will cause this widget to be removed from the tab order.

Parameters
index the widget's tab index