|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.bindings.keys.SWTKeyLookup
public final class SWTKeyLookup
A look-up table for the formal grammar for keys, and the integer values they
represent. This look-up table is hard-coded to use SWT representations. By
replacing this class (and
SWTKeySupport), you can remove the
dependency on SWT.
KeyLookupFactory| Field Summary |
|---|
| Method Summary | |
|---|---|
int |
formalKeyLookup(String name)
Looks up a single natural key by its formal name, and returns the integer representation for this natural key |
Integer |
formalKeyLookupInteger(String name)
Looks up a single natural key by its formal name, and returns the integer representation for this natural key |
int |
formalModifierLookup(String name)
Looks up a single modifier key by its formal name, and returns the integer representation for this modifier key |
String |
formalNameLookup(int key)
Looks up a key value, and returns the formal string representation for that key |
int |
getAlt()
Returns the integer representation of the ALT key. |
int |
getCommand()
Returns the integer representation of the COMMAND key. |
int |
getCtrl()
Returns the integer representation of the CTRL key. |
int |
getShift()
Returns the integer representation of the SHIFT key. |
boolean |
isModifierKey(int key)
Returns whether the given key is a modifier key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final int formalKeyLookup(String name)
IKeyLookup
formalKeyLookup in interface IKeyLookupname - The formal name of the natural key to look-up; must not be
null.
0.public final Integer formalKeyLookupInteger(String name)
IKeyLookup
formalKeyLookupInteger in interface IKeyLookupname - The formal name of the natural key to look-up; must not be
null.
0.public final int formalModifierLookup(String name)
IKeyLookup
formalModifierLookup in interface IKeyLookupname - The formal name of the modifier key to look-up; must not be
null.
0.public final String formalNameLookup(int key)
IKeyLookup
formalNameLookup in interface IKeyLookupkey - The key to look-up.
public final int getAlt()
IKeyLookup
getAlt in interface IKeyLookuppublic final int getCommand()
IKeyLookup
getCommand in interface IKeyLookuppublic final int getCtrl()
IKeyLookup
getCtrl in interface IKeyLookuppublic final int getShift()
IKeyLookup
getShift in interface IKeyLookuppublic final boolean isModifierKey(int key)
IKeyLookup
isModifierKey in interface IKeyLookupkey - The integer value of the key to check.
true if the key is one of the modifier keys;
false otherwise.
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.