com.itmill.toolkit.event
Class ShortcutAction

java.lang.Object
  extended by com.itmill.toolkit.event.Action
      extended by com.itmill.toolkit.event.ShortcutAction

public class ShortcutAction
extends Action

Extends Action class with keyboard bindings. TODO: fix documentation.

Since:
4.0.1
Version:
Author:
IT Mill Ltd.

Nested Class Summary
static interface ShortcutAction.KeyCode
          Key codes that can be used for shortcuts
static interface ShortcutAction.ModifierKey
          Modifier key constants
 
Nested classes/interfaces inherited from class com.itmill.toolkit.event.Action
Action.Container, Action.Handler
 
Constructor Summary
ShortcutAction(String caption, int kc, int[] m)
           
ShortcutAction(String caption, Resource icon, int kc, int[] m)
           
 
Method Summary
 int getKeyCode()
           
 int[] getModifiers()
           
 
Methods inherited from class com.itmill.toolkit.event.Action
getCaption, getIcon, setCaption, setIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortcutAction

public ShortcutAction(String caption,
                      int kc,
                      int[] m)

ShortcutAction

public ShortcutAction(String caption,
                      Resource icon,
                      int kc,
                      int[] m)
Method Detail

getKeyCode

public int getKeyCode()

getModifiers

public int[] getModifiers()


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.