Class PToolBarToggleButton

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

public class PToolBarToggleButton extends JToggleButton
An implementation of a JToggleButon for use on a toolbar. The UI delegate, PortalToolBarToggleButtonUI implements a specific border, which only paints itself upon a rollover.
See Also:
  • Constructor Details

    • PToolBarToggleButton

      public PToolBarToggleButton()
      Creates a button with no set text or icon.
    • PToolBarToggleButton

      public PToolBarToggleButton(Icon icon)
      Creates a button with an icon.
      Parameters:
      icon - the Icon image to display on the button
    • PToolBarToggleButton

      public PToolBarToggleButton(String text)
      Creates a button with text.
      Parameters:
      text - the text of the button
    • PToolBarToggleButton

      public PToolBarToggleButton(Action a)
      Creates a button where properties are taken from the Action supplied.
      Since:
      1.3
    • PToolBarToggleButton

      public PToolBarToggleButton(String text, Icon icon)
      Creates a button with initial text and an icon.
      Parameters:
      text - the text of the button.
      icon - the Icon image to display on the button
  • Method Details

    • updateUI

      public void updateUI()
      Notification from the UIFactory that the Linvalid input: '&F' has changed.
      Overrides:
      updateUI in class JToggleButton
      See Also:
    • setUI

      public void setUI(PortalToolBarToggleButtonUI ui)
      Sets the Linvalid input: '&F' object that renders this component.
      Parameters:
      ui - the PortalToolBarButtonUI Linvalid input: '&F' object
    • getUIClassID

      public String getUIClassID()
      Returns a string that specifies the name of the Linvalid input: '&F' class that renders this component.
      Overrides:
      getUIClassID in class JToggleButton
      Returns:
      "PortalToolBarButtonUI"
      See Also: