com.vaadin.ui
Class Button.ClickShortcut
java.lang.Object
com.vaadin.event.Action
com.vaadin.event.ShortcutAction
com.vaadin.event.ShortcutListener
com.vaadin.ui.Button.ClickShortcut
- All Implemented Interfaces:
- Action.Listener, java.io.Serializable
- Enclosing class:
- Button
public static class Button.ClickShortcut
- extends ShortcutListener
A ShortcutListener
specifically made to define a keyboard
shortcut that invokes a click on the given button.
- See Also:
- Serialized Form
Method Summary |
void |
handleAction(java.lang.Object sender,
java.lang.Object target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
button
protected Button button
Button.ClickShortcut
public Button.ClickShortcut(Button button,
java.lang.String shorthandCaption)
- Creates a keyboard shortcut for clicking the given button using the
shorthand notation defined in
ShortcutAction
.
- Parameters:
button
- to be clicked when the shortcut is invokedshorthandCaption
- the caption with shortcut keycode and modifiers indicated
Button.ClickShortcut
public Button.ClickShortcut(Button button,
int keyCode,
int... modifiers)
- Creates a keyboard shortcut for clicking the given button using the
given
ShortcutAction.KeyCode
and ShortcutAction.ModifierKey
s.
- Parameters:
button
- to be clicked when the shortcut is invokedkeyCode
- KeyCode to react tomodifiers
- optional modifiers for shortcut
Button.ClickShortcut
public Button.ClickShortcut(Button button,
int keyCode)
- Creates a keyboard shortcut for clicking the given button using the
given
ShortcutAction.KeyCode
.
- Parameters:
button
- to be clicked when the shortcut is invokedkeyCode
- KeyCode to react to
handleAction
public void handleAction(java.lang.Object sender,
java.lang.Object target)
- Specified by:
handleAction
in interface Action.Listener
- Specified by:
handleAction
in class ShortcutListener
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.