Class MenuDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.menu.MenuDescriptor

public class MenuDescriptor extends Object
Encapsulates information and actions for displaying a context menu to the user.
  • Constructor Details

    • MenuDescriptor

      public MenuDescriptor(List<MenuItem> menuItems, boolean includeDefaultItems)
  • Method Details

    • isIncludeDefaultItems

      public boolean isIncludeDefaultItems()
      Indicates if the default menu items should be included when the context menu is displayed.
      Returns:
      true if the default menu items (copy/delete etc) should be included in the context menu
    • getMenuItems

      public List<MenuItem> getMenuItems()
      Gets the list of menu items to add to the context menu
      Returns:
      list of menu items to add to the context menu