com.vaadin.terminal.gwt.client.ui
Class ShortcutActionHandler
java.lang.Object
com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler
public class ShortcutActionHandler
- extends Object
A helper class to implement keyboard shorcut 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_TARGET_ATTRIBUTE
public static final String ACTION_TARGET_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_TARGET_ACTION_ATTRIBUTE
public static final String ACTION_TARGET_ACTION_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_CAPTION_ATTRIBUTE
public static final String ACTION_CAPTION_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_KEY_ATTRIBUTE
public static final String ACTION_KEY_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_SHORTCUT_KEY_ATTRIBUTE
public static final String ACTION_SHORTCUT_KEY_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_MODIFIER_KEYS_ATTRIBUTE
public static final String ACTION_MODIFIER_KEYS_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_TARGET_VARIABLE
public static final String ACTION_TARGET_VARIABLE
- See Also:
- Constant Field Values
ACTION_TARGET_ACTION_VARIABLE
public static final String ACTION_TARGET_ACTION_VARIABLE
- See Also:
- Constant Field Values
ShortcutActionHandler
public ShortcutActionHandler(String pid,
ApplicationConnection c)
- Parameters:
pid
- Paintable idc
- reference to application connections
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,
Paintable target)
handleKeyboardEvent
public void handleKeyboardEvent(com.google.gwt.user.client.Event event)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.