For the latest stable version, please use Spring Shell 3.4.0! |
AppView
AppView is a base implementation providing functionality to draw opinionated application view. Inherits BoxView.
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.
┌──────────────────────────┐
│ 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.