|
This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Shell 3.4.1! |
InputView
InputView is a base implementation providing functionality to draw and modify text in a bounded Rectangle.
InputView input = new InputView();
String text = input.getInputText();
Default Bindings
Default view commands are:
| Command | Description |
|---|---|
LEFT |
Cursor moves left |
RIGHT |
Cursor moves right |
DELETE_CHAR_LEFT |
Delete character left |
DELETE_CHAR_RIGHT |
Delete character right |
Default key bindings are:
| Command | Description |
|---|---|
CursorLeft |
Bound ViewCommand LEFT |
CursorRight |
Bound ViewCommand RIGHT |
Backspace |
Bound ViewCommand DELETE_CHAR_LEFT |
Delete |
Bound ViewCommand DELETE_CHAR_RIGHT |
Events
Events are sent depending on a used list type.
| Event | Description |
|---|---|
InputViewTextChangeEvent |
Input text has changed |