Package com.hp.lft.sdk.powerbuilder
Interface ToolBarButton
public interface ToolBarButton
A single tool bar button in a PowerBuilder tool bar.
- 
Method SummaryModifier and TypeMethodDescriptionintgetIndex()The 0-based index number of the toolbar button.getName()Returns the name of the toolbar button.booleanIndicates whether the toolbar button's text is truncated and an ellipsis (...) is displayed.
 Note: This property is not supported for QMenuBar objects.booleanIndicates whether the toolbar button is a dual-state (toggle) push button and is currently selected (pushed).booleanIndicates whether the toolbar button is enabled.booleanIndicates whether the toolbar button is highlighted (surrounded by a dotted line).booleanisHot()Indicates whether the toolbar button is "hot".booleanIndicates whether the toolbar button is disabled.booleanisMarked()Indicates whether the toolbar button is marked.booleanIndicates whether the toolbar button was clicked.booleanIndicates whether the toolbar button is currently either pressed (currently being clicked) or checked (a dual-state push button that is currently selected).booleanisWrap()Indicates whether the toolbar button is enabled and followed by a line break.voidpress()Presses the specified toolbar button.voidpress(MouseButton button) Presses the specified toolbar button.voidOpens the drop down menu associated with this toolbar button by clicking the arrow part of the button.
- 
Method Details- 
isCheckedIndicates whether the toolbar button is a dual-state (toggle) push button and is currently selected (pushed).- Returns:
- true when checked.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
hasEllipsesIndicates whether the toolbar button's text is truncated and an ellipsis (...) is displayed.
 Note: This property is not supported for QMenuBar objects.- Returns:
- true when the toolbar button's text is truncated and an ellipsis (...) is displayed.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isEnabledIndicates whether the toolbar button is enabled.- Returns:
- true when enabled.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isHighlightedIndicates whether the toolbar button is highlighted (surrounded by a dotted line).- Returns:
- true when highlighted.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isHotIndicates whether the toolbar button is "hot". A hot toolbar button appears highlighted when the mouse pointer is over it.
 Note: This property is not supported for QMenuBar objects.- Returns:
- true when the toolbar is "hot".
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isIndeterminateIndicates whether the toolbar button is disabled.- Returns:
- true when disabled.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getIndexThe 0-based index number of the toolbar button. The index does not include hidden and separator buttons.
 Note: This property is not supported for QMenuBar objects.- Returns:
- the index number of the toolbar button.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isMarkedIndicates whether the toolbar button is marked. The interpretation of a marked button is application dependent.
 Note: This property is not supported for QMenuBar objects.- Returns:
- true when the toolbar button is marked.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getNameReturns the name of the toolbar button.- Returns:
- the name of the toolbar button.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isPressedIndicates whether the toolbar button was clicked.- Returns:
- true when the toolbar button was clicked.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isSelectedIndicates whether the toolbar button is currently either pressed (currently being clicked) or checked (a dual-state push button that is currently selected).- Returns:
- true, if the toolbar button is currently either pressed or checked.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isWrapIndicates whether the toolbar button is enabled and followed by a line break.- Returns:
- true when the toolbar button is enabled and followed by a line break.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
showDropdownOpens the drop down menu associated with this toolbar button by clicking the arrow part of the button.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
pressPresses the specified toolbar button.- Parameters:
- button- the mouse button used to press on the toolbar button. Possible values:- MouseButton
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
pressPresses the specified toolbar button.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-