Package org.luwrain.core.events
Class InputEvent
java.lang.Object
org.luwrain.core.Event
org.luwrain.core.events.InputEvent
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected char
protected boolean
protected InputEvent.Special
-
Constructor Summary
ConstructorDescriptionInputEvent
(boolean isSpecial, InputEvent.Special special, char nonSpecialChar) InputEvent
(boolean isSpecial, InputEvent.Special special, char nonSpecialChar, boolean shiftPressed, boolean controlPressed, boolean altPressed) InputEvent
(char nonSpecialChar) InputEvent
(char nonSpecialChar, boolean shiftPressed, boolean controlPressed, boolean altPressed) InputEvent
(char nonSpecialChar, Set<InputEvent.Modifiers> modifiers) InputEvent
(InputEvent.Special special) InputEvent
(InputEvent.Special special, boolean shiftPressed, boolean controlPressed, boolean altPressed) InputEvent
(InputEvent.Special special, Set<InputEvent.Modifiers> modifiers) -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(InputEvent event) char
getChar()
static KeyboardLayout
boolean
boolean
static void
setKeyboardLayout
(KeyboardLayout layout) toString()
static InputEvent.Special
translateSpecial
(String value) boolean
withAlt()
boolean
boolean
boolean
boolean
boolean
Methods inherited from class org.luwrain.core.Event
markAsProcessed, waitForBeProcessed
-
Field Details
-
isSpecial
protected boolean isSpecial -
special
-
nonSpecialChar
protected char nonSpecialChar -
shiftPressed
protected boolean shiftPressed -
controlPressed
protected boolean controlPressed -
altPressed
protected boolean altPressed
-
-
Constructor Details
-
InputEvent
-
InputEvent
-
InputEvent
public InputEvent(InputEvent.Special special, boolean shiftPressed, boolean controlPressed, boolean altPressed) -
InputEvent
public InputEvent(char nonSpecialChar) -
InputEvent
-
InputEvent
public InputEvent(char nonSpecialChar, boolean shiftPressed, boolean controlPressed, boolean altPressed) -
InputEvent
public InputEvent(boolean isSpecial, InputEvent.Special special, char nonSpecialChar, boolean shiftPressed, boolean controlPressed, boolean altPressed) -
InputEvent
-
-
Method Details
-
equals
-
isSpecial
public boolean isSpecial() -
getChar
public char getChar() -
getSpecial
-
isModified
public boolean isModified() -
withShift
public boolean withShift() -
withShiftOnly
public boolean withShiftOnly() -
withControl
public boolean withControl() -
withControlOnly
public boolean withControlOnly() -
withAlt
public boolean withAlt() -
withAltOnly
public boolean withAltOnly() -
toString
-
translateSpecial
-
getKeyboardLayout
-
setKeyboardLayout
-