Share this page

com.hp.lft.sdk

## Interface MenuItemBase

- All Known Subinterfaces:
    MenuItem, MenuItem

      public interface MenuItemBase

  Base interface for all MenuItem interfaces in SDK.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `exists()` Indicates whether the menu item exists.
    `int` | `getIndex()` Returns the 0-based numeric index location of the menu item.
    `java.lang.String` | `getLabel()` Returns the menu item label.
    `java.lang.String` | `getPath()` Returns the path of the menu item.
    `int` | `getSubMenuCount()` The number of items contained in the specified menu item's sub-menu.
    `boolean` | `hasSubMenu()` Indicates whether the menu item has a sub-menu.
    `boolean` | `isChecked()` Indicates whether the menu item has a check mark displayed next to it.
    `boolean` | `isEnabled()` Indicates whether the menu item is enabled.

- - ### Method Detail

    - #### getPath

          java.lang.String getPath()
                            throws GeneralLeanFtException

      Returns the path of the menu item. Menu items are separated with ; character.
      Returns:
        the path of the menu item.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isChecked

          boolean isChecked()
                     throws GeneralLeanFtException

      Indicates whether the menu item has a check mark displayed next to it.
      Returns:
        true, if the menu item has a check mark displayed next to it.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isEnabled

          boolean isEnabled()
                     throws GeneralLeanFtException

      Indicates whether the menu item is enabled.
      Returns:
        true, if the menu item is enabled.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### exists

          boolean exists()
                  throws GeneralLeanFtException

      Indicates whether the menu item exists.
      Returns:
        true, if the menu item exists.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### hasSubMenu

          boolean hasSubMenu()
                      throws GeneralLeanFtException

      Indicates whether the menu item has a sub-menu.
      Returns:
        true if the menu item has a sub-menu.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getIndex

          int getIndex()
                throws GeneralLeanFtException

      Returns the 0-based numeric index location of the menu item.
      Returns:
        the 0-based numeric index location of the menu item.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getLabel

          java.lang.String getLabel()
                             throws GeneralLeanFtException

      Returns the menu item label.
      Returns:
        the menu item label.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSubMenuCount

          int getSubMenuCount()
                       throws GeneralLeanFtException

      The number of items contained in the specified menu item's sub-menu.
      Returns:
        the number of items contained in the specified menu item's sub-menu.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: