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

AppView

AppView is a base implementation providing functionality to draw opinionated application view. Inherits BoxView.spring-doc.cn

Generic idea is to have menu and status views which typically are MenuBarView and StatusBarView respectively. Main content view is then whatever user want to show in it.spring-doc.cn

┌──────────────────────────┐
│           Menu           │
├──────────────────────────┤
│                          │
│           Main           │
│                          │
├──────────────────────────┤
│          Status          │
└──────────────────────────┘

Key Handling

If menu has a focus key handling is processed there, then main is consulted for handling. Lastly cursor left/right are processed to dispatch AppViewEvent.spring-doc.cn

HotKey Handling

Hotkeys are processed in order of main, menu and status.spring-doc.cn

Events

Table 1. AppView Events
Event Description

AppViewEventspring-doc.cn

Direction for a next selection.spring-doc.cn