Uses of Class
com.googlecode.lanterna.input.KeyStroke
Packages that use KeyStroke
Package
Description
-
Uses of KeyStroke in com.googlecode.lanterna.gui2
Methods in com.googlecode.lanterna.gui2 that return KeyStrokeModifier and TypeMethodDescriptionprotected KeyStroke
AbstractTextGUI.pollInput()
Polls the underlying input queue for user input, returning either aKeyStroke
ornull
protected KeyStroke
AbstractTextGUI.readKeyStroke()
Reads one key from the input queue, blocking or non-blocking depending on if blocking I/O has been enabled.protected KeyStroke
MultiWindowTextGUI.readKeyStroke()
Methods in com.googlecode.lanterna.gui2 with parameters of type KeyStrokeModifier and TypeMethodDescriptionprivate boolean
AbstractBasePane.doHandleInput
(KeyStroke key) protected final boolean
AbstractTextGUI.fireUnhandledKeyStroke
(KeyStroke keyStroke) This method should be called when there was user input that wasn't handled by the GUI.private Interactable.Result
ComboBox.handleEditableCBKeyStroke
(KeyStroke keyStroke) boolean
AbstractBasePane.handleInput
(KeyStroke key) boolean
AbstractComposite.handleInput
(KeyStroke key) final Interactable.Result
AbstractInteractableComponent.handleInput
(KeyStroke keyStroke) protected abstract boolean
AbstractTextGUI.handleInput
(KeyStroke key) This method should take the user input and feed it to the focused component for handling.boolean
AbstractWindow.handleInput
(KeyStroke key) boolean
BasePane.handleInput
(KeyStroke key) Called by the GUI system to delegate a keyboard input event.boolean
ComboBox.PopupWindow.handleInput
(KeyStroke keyStroke) 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.Interactable.handleInput
(KeyStroke keyStroke) Accepts a KeyStroke as input and processes this as a user input.boolean
MultiWindowTextGUI.handleInput
(KeyStroke keyStroke) boolean
Panel.handleInput
(KeyStroke key) 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.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.AbstractListBox.handleKeyStroke
(KeyStroke keyStroke) ActionListBox.handleKeyStroke
(KeyStroke keyStroke) Button.handleKeyStroke
(KeyStroke keyStroke) CheckBox.handleKeyStroke
(KeyStroke keyStroke) CheckBoxList.handleKeyStroke
(KeyStroke keyStroke) ComboBox.handleKeyStroke
(KeyStroke keyStroke) ImageComponent.handleKeyStroke
(KeyStroke keyStroke) RadioBoxList.handleKeyStroke
(KeyStroke keyStroke) TextBox.handleKeyStroke
(KeyStroke keyStroke) private Interactable.Result
TextBox.handleKeyStrokeReadOnly
(KeyStroke keyStroke) private Interactable.Result
ComboBox.handleReadOnlyCBKeyStroke
(KeyStroke keyStroke) protected void
MultiWindowTextGUI.ifMouseDownPossiblyChangeActiveWindow
(KeyStroke keyStroke) protected void
MultiWindowTextGUI.ifMouseDownPossiblyStartTitleDrag
(KeyStroke keyStroke) protected void
MultiWindowTextGUI.ifMouseDragPossiblyMoveWindow
(KeyStroke keyStroke) boolean
AbstractInteractableComponent.isActivationStroke
(KeyStroke keyStroke) boolean
AbstractInteractableComponent.isKeyboardActivationStroke
(KeyStroke keyStroke) boolean
AbstractInteractableComponent.isMouseActivationStroke
(KeyStroke keyStroke) boolean
AbstractInteractableComponent.isMouseDown
(KeyStroke keyStroke) boolean
AbstractInteractableComponent.isMouseDrag
(KeyStroke keyStroke) boolean
AbstractInteractableComponent.isMouseMove
(KeyStroke keyStroke) boolean
void
BasePaneListener.onInput
(T basePane, KeyStroke keyStroke, AtomicBoolean deliverEvent) Called when a user input is about to be delivered to the focusedInteractable
inside theBasePane
, but before it is actually delivered.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 notvoid
WindowListenerAdapter.onInput
(Window basePane, KeyStroke keyStroke, AtomicBoolean deliverEvent) void
BasePaneListener.onUnhandledInput
(T basePane, KeyStroke keyStroke, AtomicBoolean hasBeenHandled) Called when a user entered some input which wasn't handled by the focused component.void
WindowListenerAdapter.onUnhandledInput
(Window basePane, KeyStroke keyStroke, AtomicBoolean hasBeenHandled) 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.protected void
-
Uses of KeyStroke in com.googlecode.lanterna.gui2.table
Methods in com.googlecode.lanterna.gui2.table with parameters of type KeyStroke -
Uses of KeyStroke in com.googlecode.lanterna.input
Subclasses of KeyStroke in com.googlecode.lanterna.inputModifier and TypeClassDescriptionstatic class
an F3-KeyStroke that is distinguishable from a CursorLocation report.class
MouseAction, a KeyStroke in disguise, this class contains the information of a single mouse action event.class
ScreenInfoAction, a KeyStroke in disguise, this class contains the reported position of the screen cursor.Fields in com.googlecode.lanterna.input declared as KeyStrokeModifier and TypeFieldDescriptionfinal KeyStroke
CharacterPattern.Matching.fullMatch
private final KeyStroke
BasicCharacterPattern.result
Methods in com.googlecode.lanterna.input that return KeyStrokeModifier and TypeMethodDescriptionstatic 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
EscapeSequenceCharacterPattern.getKeyStrokeRaw
(char first, int num1, int num2, char last, boolean bEsc) combines the raw parts of the sequence into a KeyStroke.protected KeyStroke
ScreenInfoCharacterPattern.getKeyStrokeRaw
(char first, int num1, int num2, char last, boolean bEsc) InputDecoder.getNextCharacter
(boolean blockingIO) Reads and decodes the next key stroke from the input streamBasicCharacterPattern.getResult()
Returns the keystroke that this pattern results inInputProvider.pollInput()
Returns the nextKey
off the input queue or null if there is no more input events available.InputProvider.readInput()
Returns the nextKey
off the input queue or blocks until one is available.Methods in com.googlecode.lanterna.input with parameters of type KeyStrokeModifier and TypeMethodDescriptionstatic ScreenInfoAction
ScreenInfoCharacterPattern.tryToAdopt
(KeyStroke ks) Constructors in com.googlecode.lanterna.input with parameters of type KeyStrokeModifierConstructorDescriptionBasicCharacterPattern
(KeyStroke result, char... pattern) Creates a new BasicCharacterPattern that matches a particular sequence of characters into aKeyStroke
General constructorConvenience constructor for exact matches -
Uses of KeyStroke in com.googlecode.lanterna.screen
Methods in com.googlecode.lanterna.screen that return KeyStrokeModifier and TypeMethodDescriptionprivate KeyStroke
TerminalScreen.pollInput()
VirtualScreen.pollInput()
TerminalScreen.readInput()
VirtualScreen.readInput()
Methods in com.googlecode.lanterna.screen with parameters of type KeyStroke -
Uses of KeyStroke in com.googlecode.lanterna.terminal
Methods in com.googlecode.lanterna.terminal that return KeyStroke -
Uses of KeyStroke in com.googlecode.lanterna.terminal.ansi
Fields in com.googlecode.lanterna.terminal.ansi with type parameters of type KeyStrokeMethods in com.googlecode.lanterna.terminal.ansi that return KeyStrokeModifier and TypeMethodDescriptionprivate KeyStroke
ANSITerminal.filterMouseEvents
(KeyStroke keyStroke) ANSITerminal.pollInput()
StreamBasedTerminal.pollInput()
UnixLikeTerminal.pollInput()
ANSITerminal.readInput()
StreamBasedTerminal.readInput()
private KeyStroke
StreamBasedTerminal.readInput
(boolean blocking, boolean useKeyQueue) UnixLikeTerminal.readInput()
Methods in com.googlecode.lanterna.terminal.ansi with parameters of type KeyStrokeModifier and TypeMethodDescriptionprivate KeyStroke
ANSITerminal.filterMouseEvents
(KeyStroke keyStroke) private void
-
Uses of KeyStroke in com.googlecode.lanterna.terminal.swing
Fields in com.googlecode.lanterna.terminal.swing with type parameters of type KeyStrokeModifier and TypeFieldDescriptionprivate final BlockingQueue
<KeyStroke> GraphicalTerminalImplementation.keyQueue
Methods in com.googlecode.lanterna.terminal.swing that return KeyStrokeModifier and TypeMethodDescriptionAWTTerminal.pollInput()
AWTTerminalFrame.pollInput()
GraphicalTerminalImplementation.pollInput()
ScrollingAWTTerminal.pollInput()
ScrollingSwingTerminal.pollInput()
SwingTerminal.pollInput()
SwingTerminalFrame.pollInput()
AWTTerminal.readInput()
AWTTerminalFrame.readInput()
AWTTerminalImplementation.readInput()
GraphicalTerminalImplementation.readInput()
ScrollingAWTTerminal.readInput()
ScrollingSwingTerminal.readInput()
SwingTerminal.readInput()
SwingTerminalFrame.readInput()
SwingTerminalImplementation.readInput()
Methods in com.googlecode.lanterna.terminal.swing with parameters of type KeyStrokeModifier and TypeMethodDescriptionvoid
Takes a KeyStroke and puts it on the input queue of the terminal emulator.void
Takes a KeyStroke and puts it on the input queue of the terminal emulator.(package private) void
void
Takes a KeyStroke and puts it on the input queue of the terminal emulator.void
Takes a KeyStroke and puts it on the input queue of the terminal emulator.void
Takes a KeyStroke and puts it on the input queue of the terminal emulator.void
Takes a KeyStroke and puts it on the input queue of the terminal emulator. -
Uses of KeyStroke in com.googlecode.lanterna.terminal.virtual
Fields in com.googlecode.lanterna.terminal.virtual with type parameters of type KeyStrokeModifier and TypeFieldDescriptionprivate final BlockingQueue
<KeyStroke> DefaultVirtualTerminal.inputQueue
Methods in com.googlecode.lanterna.terminal.virtual that return KeyStrokeModifier and TypeMethodDescriptionDefaultVirtualTerminal.pollInput()
DefaultVirtualTerminal.readInput()
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type KeyStroke