Package 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 TypeMethodDescriptionint
getIndex()
Returns the 0-based index of this toolbar item.getName()
Returns the name of this toolbar item.boolean
Indicates whether the toolbar item's text is truncated and an ellipsis (...) is displayed.
This property is not supported for QMenuBar objects.boolean
Indicates whether a toggle push button is currently set.
Only invoke on dual-state (toggle) push buttons.boolean
Indicates whether this toolbar item can accept user input.boolean
isHidden()
Indicates whether this item is not visible and therefore cannot accept user input.
An item can be visible and disabled for other reasons.boolean
Indicates whether this toolbar item is surrounded by a dotted line.boolean
isHot()
Indicates whether this toolbar item appears highlighted, as when the mouse hovers over it.
This property is not supported for QMenuBar objects.boolean
Indicates that this control is neither checked nor unchecked.boolean
isMarked()
Indicates whether this toolbar item is marked.boolean
Indicates whether the toolbar item is currently being clicked.boolean
isWrap()
Indicates whether this toolbar item is followed by a line break.
Only invoke if the item is enabled.void
press()
Presses this toolbar item.
-
Method Details
-
isHidden
Indicates whether this item is not visible and therefore cannot accept user input.
An item can be visible and disabled for other reasons. SeeisEnabled()
- Returns:
- true if not visible
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isChecked
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 error occurs during execution
-
hasEllipses
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 error occurs during execution
-
isEnabled
Indicates whether this toolbar item can accept user input.- Returns:
- true if enabled
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isHighlighted
Indicates whether this toolbar item is surrounded by a dotted line.- Returns:
- true if highlighted
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isHot
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 error occurs during execution
-
isIndeterminate
Indicates that this control is neither checked nor unchecked. An indeterminate control generally has a shaded appearance.- Returns:
- true if indeterminate
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getIndex
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 error occurs during execution
-
isMarked
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 error occurs during execution
-
getName
Returns the name of this toolbar item.- Returns:
- the name
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isPressed
Indicates whether the toolbar item is currently being clicked.- Returns:
- true if being clicked
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isWrap
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 error occurs during execution
-
press
Presses this toolbar item.- Throws:
GeneralLeanFtException
- if error occurs during execution
-