java.lang.Object
org.springframework.shell.component.view.control.MenuView.MenuItem
org.springframework.shell.component.view.control.MenuView.Menu
Enclosing class:
MenuView

public static class MenuView.Menu extends MenuView.MenuItem
MenuView.Menu represents an item in a MenuView being a specialisation of MenuView.MenuItem indicating it having a sub-menu.
See Also:
  • Constructor Details

    • Menu

      public Menu(String title)
      Construct menu with a title.
      Parameters:
      title - the title
    • Menu

      public Menu(String title, MenuView.MenuItem[] items)
      Construct menu with a title and a menu items.
      Parameters:
      title - the title
      items - the menu items
    • Menu

      public Menu(String title, List<MenuView.MenuItem> items)
      Construct menu with a title and a menu items.
      Parameters:
      title - the title
      items - the menu items
  • Method Details