Class HTMLLinkBean

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, Scrollable

public class HTMLLinkBean extends JList implements Serializable, PropertyChangeListener
Display the links from a URL.
Author:
Derrick Oswald Created on December 24, 2002, 3:49 PM
See Also:
  • Field Details

    • mBean

      protected LinkBean mBean
      The underlying bean that provides our htmlparser specific properties.
  • Constructor Details

    • HTMLLinkBean

      public HTMLLinkBean()
      Creates a new HTMLTextBean. This uses an underlying StringBean and displays the text.
  • Method Details

    • getBean

      protected LinkBean getBean()
      Return the underlying bean object. Creates a new one if it hasn't been initialized yet.
      Returns:
      The StringBean this bean uses to fetch text.
    • getMinimumSize

      public Dimension getMinimumSize()
      Return the minimum dimension for this visible bean.
      Overrides:
      getMinimumSize in class JComponent
      Returns:
      a minimum bounding box for this bean.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Add a PropertyChangeListener to the listener list. The listener is registered for all properties.

      Delegates to the underlying StringBean

      Overrides:
      addPropertyChangeListener in class Container
      Parameters:
      listener - The PropertyChangeListener to be added.
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Remove a PropertyChangeListener from the listener list. This removes a registered PropertyChangeListener.

      Delegates to the underlying StringBean

      Overrides:
      removePropertyChangeListener in class Component
      Parameters:
      listener - The PropertyChangeListener to be removed.
    • getLinks

      public URL[] getLinks()
      Getter for property links.

      Delegates to the underlying StringBean

      Returns:
      Value of property links.
    • getURL

      public String getURL()
      Getter for property URL.

      Delegates to the underlying StringBean

      Returns:
      Value of property URL.
    • setURL

      public void setURL(String url)
      Setter for property URL.

      Delegates to the underlying StringBean

      Parameters:
      url - New value of property URL.
    • getConnection

      public URLConnection getConnection()
      Getter for property Connection.
      Returns:
      Value of property Connection.
    • setConnection

      public void setConnection(URLConnection connection)
      Setter for property Connection.
      Parameters:
      connection - New value of property Connection.
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Responds to changes in the underlying bean's properties.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      event - The event triggering this listener method call.