public final class KeyboardShortcut extends Shortcut
EMPTY_ARRAY
Constructor and Description |
---|
KeyboardShortcut(javax.swing.KeyStroke firstKeyStroke,
javax.swing.KeyStroke secondKeyStroke) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static KeyboardShortcut |
fromString(java.lang.String s) |
javax.swing.KeyStroke |
getFirstKeyStroke() |
javax.swing.KeyStroke |
getSecondKeyStroke() |
int |
hashCode() |
boolean |
isKeyboard() |
boolean |
startsWith(Shortcut sc) |
java.lang.String |
toString() |
public KeyboardShortcut(javax.swing.KeyStroke firstKeyStroke, javax.swing.KeyStroke secondKeyStroke)
java.lang.IllegalArgumentException
- if firstKeyStroke
is null
public javax.swing.KeyStroke getFirstKeyStroke()
public javax.swing.KeyStroke getSecondKeyStroke()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isKeyboard()
isKeyboard
in class Shortcut
public boolean startsWith(Shortcut sc)
startsWith
in class Shortcut
public static KeyboardShortcut fromString(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object