Package com.vaadin.featurepack.ui
Class FButton.ClickShortcut
java.lang.Object
com.vaadin.featurepack.event.Action
com.vaadin.featurepack.event.ShortcutAction
com.vaadin.featurepack.event.ShortcutListener
com.vaadin.featurepack.ui.FButton.ClickShortcut
- All Implemented Interfaces:
Action.Listener,Serializable
- Enclosing class:
FButton
A
ShortcutListener specifically made to define a keyboard
shortcut that invokes a click on the given button.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.featurepack.event.ShortcutAction
ShortcutAction.KeyCode, ShortcutAction.ModifierKeyNested classes/interfaces inherited from class com.vaadin.featurepack.event.Action
Action.Container, Action.Handler, Action.Listener, Action.Notifier, Action.ShortcutNotifier -
Field Summary
FieldsFields inherited from class com.vaadin.featurepack.event.ShortcutAction
SHORTHAND_CHAR_ALT, SHORTHAND_CHAR_CTRL, SHORTHAND_CHAR_SHIFT -
Constructor Summary
ConstructorsConstructorDescriptionClickShortcut(FButton button, int keyCode) Creates a keyboard shortcut for clicking the given button using the givenShortcutAction.KeyCode.ClickShortcut(FButton button, int keyCode, int... modifiers) Creates a keyboard shortcut for clicking the given button using the givenShortcutAction.KeyCodeandShortcutAction.ModifierKeys.ClickShortcut(FButton button, String shorthandCaption) Creates a keyboard shortcut for clicking the given button using the shorthand notation defined inShortcutAction. -
Method Summary
Methods inherited from class com.vaadin.featurepack.event.ShortcutAction
getKeyCode, getModifiers, toKey, toKeyModifierMethods inherited from class com.vaadin.featurepack.event.Action
getCaption, getIcon, setCaption, setIcon, setIcon
-
Field Details
-
button
-
-
Constructor Details
-
ClickShortcut
Creates a keyboard shortcut for clicking the given button using the shorthand notation defined inShortcutAction.- Parameters:
button- to be clicked when the shortcut is invokedshorthandCaption- the caption with shortcut keycode and modifiers indicated
-
ClickShortcut
Creates a keyboard shortcut for clicking the given button using the givenShortcutAction.KeyCodeandShortcutAction.ModifierKeys.- Parameters:
button- to be clicked when the shortcut is invokedkeyCode- KeyCode to react tomodifiers- optional modifiers for shortcut
-
ClickShortcut
Creates a keyboard shortcut for clicking the given button using the givenShortcutAction.KeyCode.- Parameters:
button- to be clicked when the shortcut is invokedkeyCode- KeyCode to react to
-
-
Method Details
-
handleAction
- Specified by:
handleActionin interfaceAction.Listener- Specified by:
handleActionin classShortcutListener
-