java.lang.Object
com.motivewave.platform.sdk.common.menu.MenuItem
com.motivewave.platform.sdk.common.menu.Menu

public class Menu extends MenuItem
Use this class to implement a sub menu that has its own set of menu items
  • Constructor Details

    • Menu

      public Menu(String text)
      Constructor. Creates a sub menu with the given text label.
    • Menu

      public Menu(String text, List<MenuItem> items)
      Constructor. Creates a sub menu with the given text label and list of menu items.
  • Method Details

    • getItems

      public List<MenuItem> getItems()
      Gets the list of menu items that are displayed in this sub menu
      Returns:
      list of menu items displayed in this sub menu
    • setItems

      public void setItems(List<MenuItem> items)
      Sets the list of menu items that are displayed in this sub menu.
      Parameters:
      items - list of menu items displayed in this sub menu