com.hp.lft.sdk.winforms

Interface ToolBar

    • Method Detail

      • getTopMenuItems

        java.util.List<java.lang.String> getTopMenuItems()
                                                  throws GeneralLeanFtException
        For menu: returns the names of all top menu items; For toolbar: returns the names of all toolbar items.
        Returns:
        the names of top menu items
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • select

        void select(java.lang.String itemPath)
             throws GeneralLeanFtException
        Selects the specified item in this menu.
        Do not invoke on a toolbar.
        Only visible items can be selected. You can use showDropdown(int) or showDropdown(String) to make the button visible.
        Parameters:
        itemPath - The full path of the menu item is a list of menu button names separated by semicolons.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • showDropdown

        void showDropdown(java.lang.String itemPath)
                   throws GeneralLeanFtException
        Opens the dropdown menu associated with this menu item or toolbar item.
        Parameters:
        itemPath - The full path of the item. The full path of a menu item is a list of menu item names separated by semicolons.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • showDropdown

        void showDropdown(int index)
                   throws GeneralLeanFtException
        Opens the dropdown menu associated with this toolbar button.
        Do not invoke on a menu.
        Parameters:
        index - the 0-based index of the button
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isItemExists

        boolean isItemExists(java.lang.String itemPath)
                      throws GeneralLeanFtException
        Indicates whether the specified toolbar button or menu button exists.
        Parameters:
        itemPath - the full path of the button. The full path of a menu button is a list of menu button names separated by semicolons.
        Returns:
        true if exists
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getErrorText

        java.lang.String getErrorText()
                               throws GeneralLeanFtException
        Returns the tooltip text of the error icon associated with this object.
        Returns:
        the tooltip text
        Throws:
        GeneralLeanFtException - if an error occurs during execution.