Class UriLabel

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

public class UriLabel extends ActionLabel
An ActionLabel which opens a browser when clicked.
See Also:
  • Constructor Details

    • UriLabel

      public UriLabel()
      Constructs an UriLabel instance. The label is aligned against the leading edge of its display area, and centered vertically.
    • UriLabel

      public UriLabel(URI uri)
      Constructs an UriLabel instance with the specified URI. The label is aligned against the leading edge of its display area, and centered vertically.
      Parameters:
      uri - The URI to open in the browser.
    • UriLabel

      public UriLabel(String text, URI uri)
      Constructs an UriLabel instance with the specified text and URI. The label is aligned against the leading edge of its display area, and centered vertically.
      Parameters:
      text - The text to be displayed by the label.
      uri - The URI to open in the browser.
  • Method Details

    • getUri

      public URI getUri()
    • setUri

      public void setUri(URI uri)
    • setUri

      public void setUri(String uriString)