We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.client.ui.
Class ShortcutActionHandler
- java.lang.Object
-
- com.vaadin.client.ui.ShortcutActionHandler
-
public class ShortcutActionHandler extends Object
A helper class to implement keyboard shortcut handling. Keeps a list of owners actions and fires actions to server. User class needs to delegate keyboard events to handleKeyboardEvents function.
Author:
Vaadin Ltd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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 Summary
Constructors Constructor Description ShortcutActionHandler(String pid, ApplicationConnection c)
-
Method Summary
All Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ShortcutActionHandler
public ShortcutActionHandler(String pid, ApplicationConnection c)
Parameters:
pid
- Paintable idc
- reference to application connections
-
-
Method Detail
-
updateActionMap
public void updateActionMap(UIDL c)
Updates list of actions this handler listens to.
Parameters:
c
- UIDL snippet containing actions
-
handleKeyboardEvent
public void handleKeyboardEvent(com.google.gwt.user.client.Event event, ComponentConnector target)
-
handleKeyboardEvent
public void handleKeyboardEvent(com.google.gwt.user.client.Event event)
-
-