Modifier and Type | Method and Description |
---|---|
protected KeyStroke |
AbstractTextGUI.pollInput()
Polls the underlying input queue for user input, returning either a
KeyStroke or null |
protected KeyStroke |
MultiWindowTextGUI.readKeyStroke() |
protected KeyStroke |
AbstractTextGUI.readKeyStroke()
Reads one key from the input queue, blocking or non-blocking depending on if blocking I/O has been enabled.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractTextGUI.fireUnhandledKeyStroke(KeyStroke keyStroke)
This method should be called when there was user input that wasn't handled by the GUI.
|
boolean |
Window.handleInput(KeyStroke key)
Called by the GUI system's window manager when it has decided that this window should receive the keyboard input.
|
boolean |
Panel.handleInput(KeyStroke key) |
boolean |
MultiWindowTextGUI.handleInput(KeyStroke keyStroke) |
Interactable.Result |
Interactable.handleInput(KeyStroke keyStroke)
Accepts a KeyStroke as input and processes this as a user input.
|
boolean |
Container.handleInput(KeyStroke key)
If an interactable component inside this container received a keyboard event that wasn't handled, the GUI system
will recursively send the event to each parent container to give each of them a chance to consume the event.
|
boolean |
BasePane.handleInput(KeyStroke key)
Called by the GUI system to delegate a keyboard input event.
|
boolean |
AbstractWindow.handleInput(KeyStroke key) |
protected abstract boolean |
AbstractTextGUI.handleInput(KeyStroke key)
This method should take the user input and feed it to the focused component for handling.
|
Interactable.Result |
AbstractInteractableComponent.handleInput(KeyStroke keyStroke) |
boolean |
AbstractComposite.handleInput(KeyStroke key) |
boolean |
AbstractBasePane.handleInput(KeyStroke key) |
Interactable.Result |
TextBox.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
RadioBoxList.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
ComboBox.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
CheckBoxList.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
CheckBox.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
Button.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
ActionListBox.handleKeyStroke(KeyStroke keyStroke) |
Interactable.Result |
AbstractListBox.handleKeyStroke(KeyStroke keyStroke) |
protected Interactable.Result |
AbstractInteractableComponent.handleKeyStroke(KeyStroke keyStroke)
This method can be overridden to handle various user input (mostly from the keyboard) when this component is in
focus.
|
boolean |
InputFilter.onInput(Interactable interactable,
KeyStroke keyStroke)
Called when the component is about to receive input from the user and decides if the input should be passed on to
the component or not
|
boolean |
TextGUI.Listener.onUnhandledKeyStroke(TextGUI textGUI,
KeyStroke keyStroke)
Fired either when no component was in focus during a keystroke or if the focused component and all its parent
containers chose not to handle the event.
|
Modifier and Type | Method and Description |
---|---|
Interactable.Result |
Table.handleKeyStroke(KeyStroke keyStroke) |
Modifier and Type | Class and Description |
---|---|
class |
MouseAction
MouseAction, a KeyStroke in disguise, this class contains the information of a single mouse action event.
|
class |
ScreenInfoAction
ScreenInfoAction, a KeyStroke in disguise, this class contains the reported position of the screen cursor.
|
Modifier and Type | Field and Description |
---|---|
KeyStroke |
CharacterPattern.Matching.fullMatch |
Modifier and Type | Method and Description |
---|---|
static KeyStroke |
KeyStroke.fromString(String keyStr)
Creates a Key from a string representation in Vim's key notation.
|
protected KeyStroke |
EscapeSequenceCharacterPattern.getKeyStroke(KeyType key,
int mods)
combines a KeyType and modifiers into a KeyStroke.
|
protected KeyStroke |
ScreenInfoCharacterPattern.getKeyStrokeRaw(char first,
int num1,
int num2,
char last,
boolean bEsc) |
protected KeyStroke |
EscapeSequenceCharacterPattern.getKeyStrokeRaw(char first,
int num1,
int num2,
char last,
boolean bEsc)
combines the raw parts of the sequence into a KeyStroke.
|
KeyStroke |
InputDecoder.getNextCharacter(boolean blockingIO)
Reads and decodes the next key stroke from the input stream
|
KeyStroke |
BasicCharacterPattern.getResult()
Returns the keystroke that this pattern results in
|
KeyStroke |
InputProvider.pollInput()
Returns the next
Key off the input queue or null if there is no more input events available. |
KeyStroke |
InputProvider.readInput()
Returns the next
Key off the input queue or blocks until one is available. |
Modifier and Type | Method and Description |
---|---|
static ScreenInfoAction |
ScreenInfoCharacterPattern.tryToAdopt(KeyStroke ks) |
Constructor and Description |
---|
BasicCharacterPattern(KeyStroke result,
char... pattern)
Creates a new BasicCharacterPattern that matches a particular sequence of characters into a
KeyStroke |
Matching(boolean partialMatch,
KeyStroke fullMatch)
General constructor
|
Matching(KeyStroke fullMatch)
Convenience constructor for exact matches
|
Modifier and Type | Method and Description |
---|---|
KeyStroke |
VirtualScreen.pollInput() |
KeyStroke |
TerminalScreen.pollInput() |
KeyStroke |
VirtualScreen.readInput() |
KeyStroke |
TerminalScreen.readInput() |
Modifier and Type | Method and Description |
---|---|
KeyStroke |
IOSafeTerminalAdapter.pollInput() |
KeyStroke |
IOSafeTerminal.pollInput() |
KeyStroke |
IOSafeTerminalAdapter.readInput() |
KeyStroke |
IOSafeTerminal.readInput() |
Modifier and Type | Method and Description |
---|---|
KeyStroke |
UnixLikeTerminal.pollInput() |
KeyStroke |
StreamBasedTerminal.pollInput() |
KeyStroke |
ANSITerminal.pollInput() |
KeyStroke |
UnixLikeTerminal.readInput() |
KeyStroke |
StreamBasedTerminal.readInput() |
KeyStroke |
ANSITerminal.readInput() |
Modifier and Type | Method and Description |
---|---|
KeyStroke |
SwingTerminalFrame.pollInput() |
KeyStroke |
SwingTerminal.pollInput() |
KeyStroke |
ScrollingSwingTerminal.pollInput() |
KeyStroke |
ScrollingAWTTerminal.pollInput() |
KeyStroke |
AWTTerminalFrame.pollInput() |
KeyStroke |
AWTTerminal.pollInput() |
KeyStroke |
SwingTerminalFrame.readInput() |
KeyStroke |
SwingTerminal.readInput() |
KeyStroke |
ScrollingSwingTerminal.readInput() |
KeyStroke |
ScrollingAWTTerminal.readInput() |
KeyStroke |
AWTTerminalFrame.readInput() |
KeyStroke |
AWTTerminal.readInput() |
Copyright © 2016. All rights reserved.