Open topic with navigation

com.hp.lft.sdk.oracle

# Interface MenuItem

Note: Supported in LeanFT versions 14.52 and later.

-     public interface MenuItem

  An Oracle menu item.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<MenuItem>` | `getMenuSubItems()` Returns a list of all submenus for the specified menu item.
    `String` | `getPath()` Returns the path of the menu item.
    `boolean` | `isChecked()` Indicates whether this menu item is currently checked.
    `boolean` | `isDisabled()` Indicates whether this menu item is currently disabled.
    `boolean` | `isEnabled()` Indicates whether this menu item is currently enabled.
    `boolean` | `isShowing()` Indicates whether this menu item is currently showing.
    `boolean` | `isVisible()` Indicates whether this menu item is currently visible.

- - ### Method Detail

    - #### getPath

          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 error occurs during execution

    - #### isChecked

          boolean isChecked()
                     throws GeneralLeanFtException

      Indicates whether this menu item is currently checked.
      Returns:
        true, if this menu item is currently checked.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isEnabled

          boolean isEnabled()
                     throws GeneralLeanFtException

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

    - #### isDisabled

          boolean isDisabled()
                      throws GeneralLeanFtException

      Indicates whether this menu item is currently disabled.
      Returns:
        true, if this menu item is currently disabled.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isVisible

          boolean isVisible()
                     throws GeneralLeanFtException

      Indicates whether this menu item is currently visible.
      Returns:
        true if this menu item is currently visible.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isShowing

          boolean isShowing()
                     throws GeneralLeanFtException

      Indicates whether this menu item is currently showing.
      Returns:
        true if this menu item is currently showing.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getMenuSubItems

          List<MenuItem> getMenuSubItems()
                                  throws GeneralLeanFtException

      Returns a list of all submenus for the specified menu item.
      Returns:
        The list of all submenus for the specified menu item.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution