com.hp.lft.sdk.sap.gui

Interface ToolBar

    • Method Detail

      • buildMenuPath

        java.lang.String buildMenuPath(java.lang.Object... menuPathParts)
                                throws GeneralLeanFtException
        Returns the path of the specified menu item.
        Parameters:
        menuPathParts - the menu path parts can be: logical name(String), full path(String), or 1-based index(Integer).
        Returns:
        the path of the specified menu item.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • pressButton

        void pressButton(java.lang.String buttonId)
                  throws GeneralLeanFtException
        Presses the specified toolbar button.
        Parameters:
        buttonId - the button's ID in text format.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • pressContextButton

        void pressContextButton(java.lang.String buttonId)
                         throws GeneralLeanFtException
        Presses the specified toolbar button to open the button's context menu.
        Parameters:
        buttonId - the button's ID in text format.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • selectMenuItem

        void selectMenuItem(java.lang.String path)
                     throws GeneralLeanFtException
        Selects the specified menu item from the toolbar button context menu. You can use buildMenuPath(Object...) to build the item path string to be used as the itemPath argument for this method.
        Parameters:
        path - the menu item name
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • selectMenuItem

        void selectMenuItem(int index)
                     throws GeneralLeanFtException
        Selects the specified menu item from the toolbar button context menu.
        Parameters:
        index - 1-based.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • selectMenuItemById

        void selectMenuItemById(java.lang.String id)
                         throws GeneralLeanFtException
        Selects the specified menu item from the toolbar button context menu by SAP ID.
        Parameters:
        id - the SAP ID of the context menu item.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.