org.gnu.gtk
public class Accelerator extends Object
Since: 2.8.1
Method Summary | |
---|---|
static ModifierType | getDefaultModifierMask()
Gets the value set by setDefaultModifierMask.
|
static String | getLabel(int key, ModifierType mods)
Converts an accelerator keyval and modifier mask into a string which can
be used to represent the accelerator to the user.
|
static String | getName(int key, ModifierType mods)
Converts an accelerator keyval and modifier mask into a string parseable
by parseKey or parseModifier. |
static boolean | isValid(int key, ModifierType mods)
Determines whether a given keyv and modifier mask constitute a valid
keyboard accelerator. |
static int | parseKey(String accelerator)
Parses a string representing an accelerator. |
static ModifierType | parseModifier(String accelerator)
Parses a string representing an accelerator. |
static void | setDefaultModifierMask(ModifierType mask)
Sets the modifiers that will be considered significant for keyboard
accelerators. |
Returns: The default modifier mask
Parameters: key The key for teh accelerator mods The modifier mask for the accelerator
Returns: The user-readable string representation of the accelerator
Parameters: key The key for the accelerator mods The modifier mask for the accelerator
Returns: The string representation of the accelerator
Since: 2.8.1
Parameters: key The key for the accelerator4 mods The modifiers for the accelerator4
Returns: true if the accelerator is valid, false otherwise
Since: 2.8.1
Parameters: accelerator The string to parse
Returns: The int (from KeyValue) corresponding to the key part of the accelerator
Since: 2.8.1
Parameters: accelerator The string to parse
Returns: The ModifierType corresponding to the modifier mask of the accelerator
Since: 2.8.1
Parameters: mask The new default modifier mask