public class KeyStrokeMapping extends Object
javax.swing.KeyStroke.| Constructor and Description |
|---|
KeyStrokeMapping(char character,
int keyCode,
int modifiers)
Creates a new
KeyStrokeMapping. |
KeyStrokeMapping(char character,
KeyStroke keyStroke)
Creates a new
KeyStrokeMapping. |
| Modifier and Type | Method and Description |
|---|---|
char |
character() |
boolean |
equals(Object o) |
int |
hashCode() |
KeyStroke |
keyStroke() |
static KeyStrokeMapping |
mapping(char character,
int keyCode,
int modifiers)
Creates a new
KeyStrokeMapping. |
String |
toString() |
public KeyStrokeMapping(char character,
int keyCode,
int modifiers)
KeyStrokeMapping.character - the character corresponding to the intended KeyStroke.keyCode - the numeric key code for the intended KeyStroke.modifiers - the set of modifiers for the intended KeyStroke.public KeyStrokeMapping(char character,
@Nonnull
KeyStroke keyStroke)
KeyStrokeMapping.character - the character corresponding to the given KeyStroke.keyStroke - the KeyStroke corresponding to the given character.@Nonnull public static KeyStrokeMapping mapping(char character, int keyCode, int modifiers)
KeyStrokeMapping.character - the character corresponding to the intended KeyStroke.keyCode - the numeric key code for the intended KeyStroke.modifiers - the set of modifiers for the intended KeyStroke.KeyStrokeMapping.public char character()
KeyStroke.@Nonnull public KeyStroke keyStroke()
KeyStroke corresponding to this mapping's character.public boolean equals(Object o)
equals in class ObjectObject.equals(Object)Copyright © 2014–2019 AssertJ. All rights reserved.