Package xyz.cofe.term.common.ev
Class InputKeyEventBase
- java.lang.Object
-
- xyz.cofe.term.common.ev.InputKeyEventBase
-
- All Implemented Interfaces:
InputEvent,InputKeyboardEvent,InputKeyEvent
- Direct Known Subclasses:
NixInputKeyEvent,WinInputKeyEvent
public abstract class InputKeyEventBase extends Object implements InputKeyEvent
-
-
Constructor Summary
Constructors Constructor Description InputKeyEventBase(KeyName key, boolean alt, boolean shift, boolean control)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyNamegetKey()Какая клавиша была нажатаbooleanisAltDown()Так же нажата клавиша ALTbooleanisControlDown()Так же нажата клавиша CONTROLbooleanisShiftDown()Так же нажата клавиша SHIFT
-
-
-
Field Detail
-
key
protected KeyName key
-
alt
protected boolean alt
-
shift
protected boolean shift
-
control
protected boolean control
-
-
Constructor Detail
-
InputKeyEventBase
public InputKeyEventBase(KeyName key, boolean alt, boolean shift, boolean control)
-
-
Method Detail
-
getKey
public KeyName getKey()
Description copied from interface:InputKeyEventКакая клавиша была нажата- Specified by:
getKeyin interfaceInputKeyEvent- Returns:
- клавиша
-
isAltDown
public boolean isAltDown()
Description copied from interface:InputKeyboardEventТак же нажата клавиша ALT- Specified by:
isAltDownin interfaceInputKeyboardEvent- Returns:
- true - клавиша ALT нажата
-
isShiftDown
public boolean isShiftDown()
Description copied from interface:InputKeyboardEventТак же нажата клавиша SHIFT- Specified by:
isShiftDownin interfaceInputKeyboardEvent- Returns:
- true - клавиша SHIFT нажата
-
isControlDown
public boolean isControlDown()
Description copied from interface:InputKeyboardEventТак же нажата клавиша CONTROL- Specified by:
isControlDownin interfaceInputKeyboardEvent- Returns:
- true - клавиша CONTROL нажата
-
-