For the latest stable version, please use Spring Shell 3.3.3! |
InputView
InputView is a base implementation providing functionality to draw and modify text in a bounded Rectancle.
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 bindigs 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 |