For the latest stable version, please use Spring Shell 3.3.3!spring-doc.cn

InputView

InputView is a base implementation providing functionality to draw and modify text in a bounded Rectancle.spring-doc.cn

InputView input = new InputView();
String text = input.getInputText();

Default Bindings

Default view commands are:spring-doc.cn

Table 1. ViewCommands
Command Description

LEFTspring-doc.cn

Cursor moves leftspring-doc.cn

RIGHTspring-doc.cn

Cursor moves rightspring-doc.cn

DELETE_CHAR_LEFTspring-doc.cn

Delete character leftspring-doc.cn

DELETE_CHAR_RIGHTspring-doc.cn

Delete character rightspring-doc.cn

Default key bindigs are:spring-doc.cn

Table 2. Key
Command Description

CursorLeftspring-doc.cn

Bound ViewCommand LEFTspring-doc.cn

CursorRightspring-doc.cn

Bound ViewCommand RIGHTspring-doc.cn

Backspacespring-doc.cn

Bound ViewCommand DELETE_CHAR_LEFTspring-doc.cn

Deletespring-doc.cn

Bound ViewCommand DELETE_CHAR_RIGHTspring-doc.cn

Events

Events are sent depending on a used list type.spring-doc.cn

Table 3. InputView Events
Event Description

InputViewTextChangeEventspring-doc.cn

Input text has changedspring-doc.cn