Package docking.menu
Class DockingToolBarUtils
java.lang.Object
docking.menu.DockingToolBarUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateToolTipText(JButton button, DockingActionIf action) Creates tooltip text for the given action and button.static voidsetToolTipText(JButton button, DockingActionIf action) Sets the given button's tooltip text to match that of the given action
-
Constructor Details
-
DockingToolBarUtils
public DockingToolBarUtils()
-
-
Method Details
-
setToolTipText
Sets the given button's tooltip text to match that of the given action- Parameters:
button- the buttonaction- the action
-
createToolTipText
Creates tooltip text for the given action and button. This is intended to be used for buttons that represent the given action.- Parameters:
button- the button that is the target for the textaction- the action that is the source of the button- Returns:
- the text
-