|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.FocusUtil
public class FocusUtil
A helper class used to make it easier for Widgets to implement
Focusable.
| Constructor Summary | |
|---|---|
FocusUtil()
|
|
| Method Summary | |
|---|---|
static int |
getTabIndex(Widget focusable)
Gets the widget's position in the tab index. |
static void |
setAccessKey(Widget focusable,
char key)
Sets the access key property |
static void |
setFocus(Widget focusable,
boolean focus)
Explicitly focus/unfocus the given widget. |
static void |
setTabIndex(Widget focusable,
int tabIndex)
Sets the widget's position in the tab index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FocusUtil()
| Method Detail |
|---|
public static void setAccessKey(Widget focusable,
char key)
focusable - The widget for which we want to set the access key.key - The access key to set
public static void setFocus(Widget focusable,
boolean focus)
focusable - the widget to focus/unfocusfocused - whether this widget should take focus or release it
public static void setTabIndex(Widget focusable,
int tabIndex)
-1 will cause the widget to
be removed from the tab order.
focusable - The widgettabIndex - the widget's tab indexpublic static int getTabIndex(Widget focusable)
focusable - The widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||