MenuBarView
MenuBarView 是一个基本实现,提供了绘制菜单栏的功能。继承 BoxView。
MenuBarView is a base implementation providing functionality to draw a menu bar. Inherits BoxView.
┌─────────────────────────────┐
│ File Help │
└─────────────────────────────┘
MenuBarView 采用 MenuBarItem 的实例构建。MenuBarItem 本身采用 MenuItem 的实例。MenuItem 可以定义其样式和动作。MenuBarItem 还可以定义一个热键,它用于激活特定的菜单。
MenuBarView is constructed with instances of MenuBarItem. MenuBarItem itself takes instances of MenuItem. MenuItem can define its style and action. MenuBarItem can also define a hot key which is used to active particular menu.
Unresolved include directive in modules/ROOT/pages/tui/views/menubar.adoc - include::../../../../../src/test/java/org/springframework/shell/docs/MenuBarViewSnippets.java[]