Package com.vaadin.classic.v8.event
Class ShortcutAction
- java.lang.Object
-
- com.vaadin.classic.v8.event.Action
-
- com.vaadin.classic.v8.event.ShortcutAction
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ShortcutListener
@Deprecated public class ShortcutAction extends Action
Deprecated.Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShortcutAction.KeyCodeDeprecated.static interfaceShortcutAction.ModifierKeyDeprecated.-
Nested classes/interfaces inherited from class com.vaadin.classic.v8.event.Action
Action.Container, Action.Handler, Action.Listener, Action.Notifier, Action.ShortcutNotifier
-
-
Field Summary
Fields Modifier and Type Field Description static charSHORTHAND_CHAR_ALTDeprecated.static charSHORTHAND_CHAR_CTRLDeprecated.static charSHORTHAND_CHAR_SHIFTDeprecated.
-
Constructor Summary
Constructors Constructor Description ShortcutAction(java.lang.String shorthandCaption)Deprecated.ShortcutAction(java.lang.String shorthandCaption, int... modifierKeys)Deprecated.ShortcutAction(java.lang.String caption, int kc, int... m)Deprecated.ShortcutAction(java.lang.String caption, Resource icon, int kc, int... m)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetKeyCode()Deprecated.int[]getModifiers()Deprecated.-
Methods inherited from class com.vaadin.classic.v8.event.Action
getCaption, getIcon, setCaption, setIcon
-
-
-
-
Field Detail
-
SHORTHAND_CHAR_ALT
@Deprecated public static final char SHORTHAND_CHAR_ALT
Deprecated.Used in the caption shorthand notation to indicate the ALT modifier.- See Also:
- Constant Field Values
-
SHORTHAND_CHAR_SHIFT
@Deprecated public static final char SHORTHAND_CHAR_SHIFT
Deprecated.Used in the caption shorthand notation to indicate the SHIFT modifier.- See Also:
- Constant Field Values
-
SHORTHAND_CHAR_CTRL
@Deprecated public static final char SHORTHAND_CHAR_CTRL
Deprecated.Used in the caption shorthand notation to indicate the CTRL modifier.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShortcutAction
@Deprecated public ShortcutAction(java.lang.String caption, int kc, int... m)Deprecated.Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.- Parameters:
caption- used when displaying the shortcut visuallykc- KeyCode that the shortcut reacts tom- optional modifier keys
-
ShortcutAction
@Deprecated public ShortcutAction(java.lang.String caption, Resource icon, int kc, int... m)Deprecated.Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.- Parameters:
caption- used when displaying the shortcut visuallyicon- used when displaying the shortcut visuallykc- KeyCode that the shortcut reacts tom- optional modifier keys
-
ShortcutAction
@Deprecated public ShortcutAction(java.lang.String shorthandCaption)
Deprecated.
-
ShortcutAction
@Deprecated public ShortcutAction(java.lang.String shorthandCaption, int... modifierKeys)Deprecated.Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.- Parameters:
shorthandCaption-modifierKeys-
-
-
Method Detail
-
getKeyCode
@Deprecated public int getKeyCode()
Deprecated.Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.- Returns:
- -1
-
getModifiers
@Deprecated public int[] getModifiers()
Deprecated.Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.- Returns:
- empty array
-
-