Package docking.menu

# Class DockingToolBarUtils

java.lang.Object
docking.menu.DockingToolBarUtils

public class DockingToolBarUtils extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DockingToolBarUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `createToolTipText(JButton button, DockingActionIf action)`
  Creates tooltip text for the given action and button.
  `static void`
  `setToolTipText(JButton button, DockingActionIf action)`
  Sets the given button's tooltip text to match that of the given action

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DockingToolBarUtils

    public DockingToolBarUtils()

- ## Method Details

  - ### setToolTipText

    public static void setToolTipText(JButton button, DockingActionIf action)
    Sets the given button's tooltip text to match that of the given action
    Parameters:
      `button` - the button
      `action` - the action

  - ### createToolTipText

    public static String createToolTipText(JButton button, DockingActionIf action)
    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 text
      `action` - the action that is the source of the button
    Returns:
      the text