Class MenuDesc


  • public class MenuDesc
    extends java.lang.Object
    The optional menu element can be used to indicate an application's preference for putting a menu item in the users start menus. The menu element can have a sub-menu attribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String subMenu
      The optional submenu attribute can be used to indicate an application's preference for where to place the menu item, and can contain any string value.
      static java.lang.String SUBMENU_ATTRIBUTE  
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuDesc​(java.lang.String subMenu)
      Create a new menu descriptor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSubMenu()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUBMENU_ATTRIBUTE

        public static final java.lang.String SUBMENU_ATTRIBUTE
        See Also:
        Constant Field Values
      • subMenu

        private final java.lang.String subMenu
        The optional submenu attribute can be used to indicate an application's preference for where to place the menu item, and can contain any string value.
    • Constructor Detail

      • MenuDesc

        public MenuDesc​(java.lang.String subMenu)
        Create a new menu descriptor
        Parameters:
        subMenu - sub-menu of this menu if any or null.
    • Method Detail

      • getSubMenu

        public java.lang.String getSubMenu()
        Returns:
        the submenu for this menu entry.