ToolBarButton Methods

Overview | This Package | All Packages

ToolBarButton Methods

Constructors Description
ToolBarButton Creates a ToolBarButton object.

Methods Description
getDropDownMenu Retrieves the drop-down menu associated with this button.

getEnabled Retrieves a boolean value that indicates whether this button is enabled.

getImageIndex Retrieves the index of the image displayed on this button.

getItemData Retrieves the data currently associated with this button.

getPartialPush Retrieves a boolean value that indicates whether a toggle button on the toolbar is partially pushed.

getPushed Retrieves a boolean value that indicates whether a toggle button on the toolbar is pushed.

getRect Retrieves the rectangular area that this button occupies.

getStyle Retrieves the style of this button.

getText Retrieves the text that is displayed on this button.

getToolTipText Retrieves the text that is to be displayed in a ToolTip when the mouse cursor is positioned over this button.

getVisible Retrieves a boolean value that indicates whether the toolbar button is visible.

setDropDownMenu Associates a menu with this button.

setEnabled Enables or disables this button.

setImageIndex Sets the index for the image associated with this button.

setItemData Sets user-defined data on this button.

setPartialPush Specifies whether this button is partially pushed.

setPushed Specifies whether this button should be pushed.

setStyle Sets this button's style.

setText Sets the button's text.

setToolTipText Sets the text to be displayed in a ToolTip when the mouse cursor is positioned over this button.

setVisible Specifies whether this button is visible.

toString Retrieves a human-readable string representation of this object.