Class MenuItem



  • public class MenuItem
    extends java.lang.Object
    Model for the menu item.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MenuItem(int itemId, int labelId) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getItemId()
      Gets the identifier of this menu item.
      int getLabelId()
      Gets the label of this menu item.
      • Methods inherited from class java.lang.Object

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

      • MenuItem

        public MenuItem(int itemId,
                        int labelId)
    • Method Detail

      • getItemId

        public int getItemId()
        Gets the identifier of this menu item.
        Returns:
        int value guaranteed to be unique for each menu item.
      • getLabelId

        public int getLabelId()
        Gets the label of this menu item.
        Returns:
        The string resource identifier