public class KeyCombination
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KeyCombination.Key |
static class |
KeyCombination.Modifier |
Constructor and Description |
---|
KeyCombination(KeyCombination.Key key,
KeyCombination.Modifier... modifiers) |
Modifier and Type | Method and Description |
---|---|
static KeyCombination |
create(java.lang.String keyString)
Creates a new
KeyCombination instance from a string representation. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
format() |
KeyCombination.Key |
getKey() |
KeyCombination.Modifier[] |
getModifiers() |
static int[] |
getShortcutModifiers(KeyCombination.Modifier[] modifiers) |
int |
hashCode() |
java.lang.String |
toString() |
public KeyCombination(KeyCombination.Key key, KeyCombination.Modifier... modifiers)
public static KeyCombination create(java.lang.String keyString)
KeyCombination
instance from a string representation.keyString
- string of type "Modifiers-Key", e.g. "Alt-N". Case-insensitive.public java.lang.String format()
public KeyCombination.Key getKey()
public KeyCombination.Modifier[] getModifiers()
public static int[] getShortcutModifiers(KeyCombination.Modifier[] modifiers)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object