ButtonView
ButtonView 是一个基本实现,提供了绘制按钮的功能。继承 BoxView。
ButtonView is a base implementation providing functionality to draw a button. Inherits BoxView.
┌──────┐
│ text │
└──────┘
您可以为按钮设置一段文字,以及在按钮被选中时要执行的操作。
You can set a text for a button and action to do when button is selected.
Unresolved include directive in modules/ROOT/pages/tui/views/button.adoc - include::../../../../../src/test/java/org/springframework/shell/docs/ButtonViewSnippets.java[]