Uses of Class
org.springframework.shell.component.view.control.MenuView.MenuItem
Packages that use MenuView.MenuItem
-
Uses of MenuView.MenuItem in org.springframework.shell.component.view.control
Subclasses of MenuView.MenuItem in org.springframework.shell.component.view.controlModifier and TypeClassDescriptionstatic class
MenuView.Menu
represents an item in aMenuView
being a specialisation ofMenuView.MenuItem
indicating it having a sub-menu.Methods in org.springframework.shell.component.view.control that return MenuView.MenuItemModifier and TypeMethodDescriptionMenuView.MenuViewItemEventArgs.item()
Returns the value of theitem
record component.static MenuView.MenuItem
Return aMenuView.MenuItem
with a giventitle
.static MenuView.MenuItem
MenuView.MenuItem.of
(String title, MenuView.MenuItemCheckStyle checkStyle) static MenuView.MenuItem
MenuView.MenuItem.of
(String title, MenuView.MenuItemCheckStyle checkStyle, Runnable action) static MenuView.MenuItem
MenuView.MenuItem.of
(String title, MenuView.MenuItemCheckStyle checkStyle, Runnable action, boolean initialCheckState) Methods in org.springframework.shell.component.view.control that return types with arguments of type MenuView.MenuItemModifier and TypeMethodDescriptionMenuBarView.MenuBarItem.getItems()
MenuView.getItems()
Gets a menu items.MenuView.MenuItem.getItems()
Gets sub menu items.Methods in org.springframework.shell.component.view.control with parameters of type MenuView.MenuItemModifier and TypeMethodDescriptionstatic MenuBarView.MenuBarItem
MenuBarView.MenuBarItem.of
(String title, MenuView.MenuItem... items) static MenuView.Menu
MenuView.Menu.of
(String title, MenuView.MenuItem... items) MenuView.MenuViewItemEventArgs.of
(MenuView.MenuItem item) MenuView.MenuViewOpenSelectedItemEvent.of
(View view, MenuView.MenuItem item) MenuView.MenuViewSelectedItemChangedEvent.of
(View view, MenuView.MenuItem item) void
MenuView.toggle
(MenuView.MenuItem item) ToggleMenuView.MenuItem
checked state.Method parameters in org.springframework.shell.component.view.control with type arguments of type MenuView.MenuItemModifier and TypeMethodDescriptionvoid
MenuView.setItems
(List<MenuView.MenuItem> items) Sets a new menu items.Constructors in org.springframework.shell.component.view.control with parameters of type MenuView.MenuItemModifierConstructorDescriptionMenu
(String title, MenuView.MenuItem[] items) Construct menu with a title and a menu items.MenuBarItem
(String title, MenuView.MenuItem[] items) protected
MenuItem
(String title, MenuView.MenuItem[] items) MenuView
(MenuView.MenuItem[] items) Construct menu view with menu items.Creates an instance of aMenuViewItemEventArgs
record class.Constructor parameters in org.springframework.shell.component.view.control with type arguments of type MenuView.MenuItemModifierConstructorDescriptionMenu
(String title, List<MenuView.MenuItem> items) Construct menu with a title and a menu items.protected
MenuItem
(String title, List<MenuView.MenuItem> items) MenuView
(List<MenuView.MenuItem> items) Construct menu view with menu items.