public interface Interactable
Modifier and Type | Interface and Description |
---|---|
static class |
Interactable.FocusChangeDirection
When focus has changed, which direction.
|
static class |
Interactable.Result
The available results from a keyboard interaction
|
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
getHotspot()
When the component has keyboard focus, this method is called by the GUI
system to figure out where should the cursor be positioned.
|
Interactable.Result |
keyboardInteraction(Key key)
This method is called when this component has focus and the user has
pressed a key on the keyboard.
|
void |
onEnterFocus(Interactable.FocusChangeDirection direction)
Method called when this component gained keyboard focus.
|
void |
onLeaveFocus(Interactable.FocusChangeDirection direction)
Method called when this component leaves keyboard focus.
|
Interactable.Result keyboardInteraction(Key key)
key
- Key pressed on the keyboardvoid onEnterFocus(Interactable.FocusChangeDirection direction)
direction
- What direction did the focus come fromvoid onLeaveFocus(Interactable.FocusChangeDirection direction)
direction
- What direction is focus going toTerminalPosition getHotspot()
null
if the cursor should
be hiddenCopyright © 2015. All Rights Reserved.