Class FButtonLink

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

public class FButtonLink extends FButton
Button able to launch an URL.
See Also:
  • Field Details

  • Constructor Details

    • FButtonLink

      public FButtonLink(String name, FPanel p, String url, Image image)
      Create a new button that can open a link.
      Parameters:
      name - the name of the button
      p - panel that contain this
      url - the url to open
      image - image to represent the button
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Component
    • mouseReleased

      public void mouseReleased(MouseEvent event)
      Open the corresponding URL.
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class FButton
    • setSelected

      public void setSelected(boolean selected)
      Set the button selected or not.
      Desc are print on the button (mouse located).
      Overrides:
      setSelected in class FButton
      Parameters:
      selected - true if button is selected.
    • getDesc

      public String getDesc()
      Return a description of the button.
      Overrides:
      getDesc in class FButton