Package xyz.cofe.term.common.ev
Class InputCharEventBase
- java.lang.Object
-
- xyz.cofe.term.common.ev.InputCharEventBase
-
- All Implemented Interfaces:
InputCharEvent,InputEvent,InputKeyboardEvent
- Direct Known Subclasses:
NixInputCharEvent,WinInputCharEvent
public abstract class InputCharEventBase extends Object implements InputCharEvent
-
-
Constructor Summary
Constructors Constructor Description InputCharEventBase(char chr, boolean alt, boolean shift, boolean control)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetChar()Символ который ввел пользовательbooleanisAltDown()Так же нажата клавиша ALTbooleanisControlDown()Так же нажата клавиша CONTROLbooleanisShiftDown()Так же нажата клавиша SHIFT
-
-
-
Method Detail
-
getChar
public char getChar()
Description copied from interface:InputCharEventСимвол который ввел пользователь- Specified by:
getCharin interfaceInputCharEvent- 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 нажата
-
-