org.xwiki.gwt.user.client
Class ShortcutKey

java.lang.Object
  extended by org.xwiki.gwt.user.client.ShortcutKey

public class ShortcutKey
extends java.lang.Object

Represents a combination of a keyboard key and one or more modifier keys, that could trigger a specific action.

Version:
$Id: ShortcutKey.java 24888 2009-11-06 02:16:19Z sdumitriu $

Nested Class Summary
static class ShortcutKey.ModifierKey
          A modifier key.
 
Constructor Summary
ShortcutKey(int keyCode, java.util.Set<ShortcutKey.ModifierKey> modifiers)
          Creates a new shortcut key.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 int getKeyCode()
           
 java.util.Set<ShortcutKey.ModifierKey> getModifiers()
           
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortcutKey

public ShortcutKey(int keyCode,
                   java.util.Set<ShortcutKey.ModifierKey> modifiers)
Creates a new shortcut key.

Parameters:
keyCode - specifies the key that must be pressed in order to activate the shortcut
modifiers - the modifier keys that have to be pressed in order to activate the shortcut
Method Detail

getKeyCode

public int getKeyCode()
Returns:
keyCode

getModifiers

public java.util.Set<ShortcutKey.ModifierKey> getModifiers()
Returns:
modifiers

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)


Copyright © 2004-2010 XWiki. All Rights Reserved.