Package editor

Class ToggleToolBarButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class ToggleToolBarButton extends JToggleButton
See Also:
  • Field Details

    • _activeBorder

      private Border _activeBorder
    • _bRollover

      private boolean _bRollover
    • _bMenu

      private boolean _bMenu
    • XP_BORDER_COLOR

      public static final Color XP_BORDER_COLOR
    • XP_TOGGLE_ROLLOVER_COLOR

      private static final Color XP_TOGGLE_ROLLOVER_COLOR
    • XP_TOGGLE_SELECTED_COLOR

      private static final Color XP_TOGGLE_SELECTED_COLOR
    • _bShowText

      private boolean _bShowText
  • Constructor Details

    • ToggleToolBarButton

      public ToggleToolBarButton(String text, Icon icon)
      Creates a button with an icon.
      Parameters:
      icon - The icon that should be display for this button.
    • ToggleToolBarButton

      public ToggleToolBarButton(Icon icon)
    • ToggleToolBarButton

      public ToggleToolBarButton(String text)
    • ToggleToolBarButton

      public ToggleToolBarButton()
    • ToggleToolBarButton

      public ToggleToolBarButton(Action action)
      Creates a button from an action and displays only the action's icon, not the name (unless the icon is null, in which case the name will be displayed).
      Parameters:
      action - the Action associated with this button
  • Method Details