For the latest stable version, please use Spring Shell 3.4.0!

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:

Table 1. ViewCommands
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:

Table 2. Key
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.

Table 3. InputView Events
Event Description

InputViewTextChangeEvent

Input text has changed