com.hp.lft.sdk.winforms

Interface ToolBarItem



  • public interface ToolBarItem
    A single tool bar item belonging to a .NET Windows Forms tool bar.
    • Method Summary

      Modifier and TypeMethod and Description
      intgetIndex()
      Returns the 0-based index of this toolbar item.
      java.lang.StringgetName()
      Returns the name of this toolbar item.
      booleanhasEllipses()
      Indicates whether the toolbar item's text is truncated and an ellipsis (...) is displayed.
      This property is not supported for QMenuBar objects.
      booleanisChecked()
      Indicates whether a toggle push button is currently set.
      Only invoke on dual-state (toggle) push buttons.
      booleanisEnabled()
      Indicates whether this toolbar item can accept user input.
      booleanisHidden()
      Indicates whether this item is not visible and therefore cannot accept user input.
      An item can be visible and disabled for other reasons.
      booleanisHighlighted()
      Indicates whether this toolbar item is surrounded by a dotted line.
      booleanisHot()
      Indicates whether this toolbar item appears highlighted, as when the mouse hovers over it.
      This property is not supported for QMenuBar objects.
      booleanisIndeterminate()
      Indicates that this control is neither checked nor unchecked.
      booleanisMarked()
      Indicates whether this toolbar item is marked.
      booleanisPressed()
      Indicates whether the toolbar item is currently being clicked.
      booleanisWrap()
      Indicates whether this toolbar item is followed by a line break.
      Only invoke if the item is enabled.
      voidpress()
      Presses this toolbar item.
    • Method Detail

      • isHidden

        boolean isHidden()
                  throws GeneralLeanFtException
        Indicates whether this item is not visible and therefore cannot accept user input.
        An item can be visible and disabled for other reasons. See isEnabled()
        Returns:
        true if not visible
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isChecked

        boolean isChecked()
                   throws GeneralLeanFtException
        Indicates whether a toggle push button is currently set.
        Only invoke on dual-state (toggle) push buttons.
        Returns:
        true, if the toolbar is checked.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • hasEllipses

        boolean hasEllipses()
                     throws GeneralLeanFtException
        Indicates whether the toolbar item's text is truncated and an ellipsis (...) is displayed.
        This property is not supported for QMenuBar objects.
        Returns:
        true if ellipsis displayed
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isHighlighted

        boolean isHighlighted()
                       throws GeneralLeanFtException
        Indicates whether this toolbar item is surrounded by a dotted line.
        Returns:
        true if highlighted
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isHot

        boolean isHot()
               throws GeneralLeanFtException
        Indicates whether this toolbar item appears highlighted, as when the mouse hovers over it.
        This property is not supported for QMenuBar objects.
        Returns:
        true if toolbar hot
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isIndeterminate

        boolean isIndeterminate()
                         throws GeneralLeanFtException
        Indicates that this control is neither checked nor unchecked. An indeterminate control generally has a shaded appearance.
        Returns:
        true if indeterminate
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getIndex

        int getIndex()
              throws GeneralLeanFtException
        Returns the 0-based index of this toolbar item. The index does not include hidden and separator buttons.
        This property is not supported for QMenuBar objects.
        Returns:
        the index
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isMarked

        boolean isMarked()
                  throws GeneralLeanFtException
        Indicates whether this toolbar item is marked. The interpretation of a marked button is application dependent.
        This property is not supported for QMenuBar objects.
        Returns:
        true if marked
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isWrap

        boolean isWrap()
                throws GeneralLeanFtException
        Indicates whether this toolbar item is followed by a line break.
        Only invoke if the item is enabled.
        Returns:
        true if followed by line break
        Throws:
        GeneralLeanFtException - if an error occurs during execution.