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.

HotKey Handling

Hotkeys are processed in order of main, menu and status.

Events

Table 1. AppView Events
Event Description

AppViewEvent

Direction for a next selection.