public class ShortcutActionHandler extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ShortcutActionHandler.BeforeShortcutActionListener
A focusable
ComponentConnector implementing this interface will
be notified before shortcut actions are handled if it will be the target
of the action (most commonly means it is the focused component during the
keyboard combination is triggered by the user). |
static interface |
ShortcutActionHandler.ShortcutActionHandlerOwner
An interface implemented by those users of this helper class that want to
support special components like
VRichTextArea that don't properly
propagate key down events. |
Constructor and Description |
---|
ShortcutActionHandler(String pid,
ApplicationConnection c) |
Modifier and Type | Method and Description |
---|---|
void |
handleKeyboardEvent(com.google.gwt.user.client.Event event) |
void |
handleKeyboardEvent(com.google.gwt.user.client.Event event,
ComponentConnector target) |
void |
updateActionMap(UIDL c)
Updates list of actions this handler listens to.
|
public ShortcutActionHandler(String pid, ApplicationConnection c)
pid
- Paintable idc
- reference to application connectionspublic void updateActionMap(UIDL c)
c
- UIDL snippet containing actionspublic void handleKeyboardEvent(com.google.gwt.user.client.Event event, ComponentConnector target)
public void handleKeyboardEvent(com.google.gwt.user.client.Event event)
Copyright © 2019 Vaadin Ltd. All rights reserved.