com.vaadin.ui
Class AbstractField.FocusShortcut
java.lang.Object
com.vaadin.event.Action
com.vaadin.event.ShortcutAction
com.vaadin.event.ShortcutListener
com.vaadin.ui.AbstractField.FocusShortcut
- All Implemented Interfaces:
- Action.Listener, Serializable
- Enclosing class:
- AbstractField
public static class AbstractField.FocusShortcut
- extends ShortcutListener
A ready-made ShortcutListener that focuses the given
Focusable (usually a Field) when the keyboard shortcut is
invoked.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
focusable
protected Component.Focusable focusable
AbstractField.FocusShortcut
public AbstractField.FocusShortcut(Component.Focusable focusable,
String shorthandCaption)
- Creates a keyboard shortcut for focusing the given
Focusable
using the shorthand notation defined in ShortcutAction.
- Parameters:
focusable - to focused when the shortcut is invokedshorthandCaption - caption with keycode and modifiers indicated
AbstractField.FocusShortcut
public AbstractField.FocusShortcut(Component.Focusable focusable,
int keyCode,
int... modifiers)
- Creates a keyboard shortcut for focusing the given
Focusable.
- Parameters:
focusable - to focused when the shortcut is invokedkeyCode - keycode that invokes the shortcutmodifiers - modifiers required to invoke the shortcut
AbstractField.FocusShortcut
public AbstractField.FocusShortcut(Component.Focusable focusable,
int keyCode)
- Creates a keyboard shortcut for focusing the given
Focusable.
- Parameters:
focusable - to focused when the shortcut is invokedkeyCode - keycode that invokes the shortcut
handleAction
public void handleAction(Object sender,
Object target)
- Specified by:
handleAction in interface Action.Listener- Specified by:
handleAction in class ShortcutListener
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.