|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.gtk.Accelerator
org.gnome.gtk.Accelerator
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
public class Accelerator
Constructor Summary | |
---|---|
Accelerator()
Deprecated. |
Method Summary | |
---|---|
static ModifierType |
getDefaultModifierMask()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static java.lang.String |
getLabel(int key,
ModifierType mods)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static java.lang.String |
getName(int key,
ModifierType mods)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static boolean |
isValid(int key,
ModifierType mods)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static int |
parseKey(java.lang.String accelerator)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static ModifierType |
parseModifier(java.lang.String accelerator)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static void |
setDefaultModifierMask(ModifierType mask)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Accelerator()
Method Detail |
---|
public static boolean isValid(int key, ModifierType mods)
key
- The key for the accelerator4mods
- The modifiers for the accelerator4
public static int parseKey(java.lang.String accelerator)
accelerator
- The string to parse
KeyValue
) corresponding to the key part of
the acceleratorpublic static ModifierType parseModifier(java.lang.String accelerator)
accelerator
- The string to parse
public static java.lang.String getName(int key, ModifierType mods)
parseKey(String)
or parseModifier(String)
. For
example, if you pass in KeySymbol.q and ModifierType.CONTROL_MASK, this
function returns "getLabel(int, ModifierType)
.
key
- The key for the acceleratormods
- The modifier mask for the accelerator
public static java.lang.String getLabel(int key, ModifierType mods)
key
- The key for teh acceleratormods
- The modifier mask for the accelerator
public static void setDefaultModifierMask(ModifierType mask)
mask
- The new default modifier maskpublic static ModifierType getDefaultModifierMask()
setDefaultModifierMask(ModifierType)
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |