Class MenuView.Menu
java.lang.Object
org.springframework.shell.component.view.control.MenuView.MenuItem
org.springframework.shell.component.view.control.MenuView.Menu
- Enclosing class:
- MenuView
MenuView.Menu
represents an item in a MenuView
being a specialisation
of MenuView.MenuItem
indicating it having a sub-menu.- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct menu with a title.Menu
(String title, List<MenuView.MenuItem> items) Construct menu with a title and a menu items.Menu
(String title, MenuView.MenuItem[] items) Construct menu with a title and a menu items. -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuView.Menu
of
(String title, MenuView.MenuItem... items) Methods inherited from class org.springframework.shell.component.view.control.MenuView.MenuItem
getAction, getCheckStyle, getItems, getTitle, isInitialCheckState, of, of, of, of, setAction
-
Constructor Details
-
Menu
Construct menu with a title.- Parameters:
title
- the title
-
Menu
Construct menu with a title and a menu items.- Parameters:
title
- the titleitems
- the menu items
-
Menu
Construct menu with a title and a menu items.- Parameters:
title
- the titleitems
- the menu items
-
-
Method Details
-
of
- Parameters:
title
- the titleitems
- the menu items- Returns:
- a menu
-