Class RelatedContentDesc

java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.information.RelatedContentDesc

public class RelatedContentDesc extends Object
The optional related-content element describes an additional piece of related content, such as a readme file, help pages, or links to registration pages, as a hint to the JNLP Client. The application is asking that this content be included in its desktop integration. The related-content element has a mandatory href attribute.
  • Field Details

    • HREF_ATTRIBUTE

      public static final String HREF_ATTRIBUTE
      See Also:
    • TITLE_ELEMENT

      public static final String TITLE_ELEMENT
      See Also:
    • DESCRIPTION_ELEMENT

      public static final String DESCRIPTION_ELEMENT
      See Also:
    • ICON_ELEMENT

      public static final String ICON_ELEMENT
      See Also:
    • title

      private String title
      The name of the related content.
    • description

      private String description
      A short description of the related content.
    • location

      private final URL location
      The mandatory location of the content.
    • icon

      private IconDesc icon
      The icon can be used by the JNLP Client to identify the related content to the user.
  • Constructor Details

    • RelatedContentDesc

      public RelatedContentDesc(URL location)
      Create a related-content descriptor.
      Parameters:
      location - the location of the related content
  • Method Details

    • setTitle

      public void setTitle(String title)
      Set the title of this content.
      Parameters:
      title - the title of this content
    • getTitle

      public String getTitle()
      Returns:
      the title of this content.
    • setDescription

      public void setDescription(String description)
      Set the description of this related content.
      Parameters:
      description - to be set
    • getDescription

      public String getDescription()
      Returns:
      the description of the related content
    • getLocation

      public URL getLocation()
      Returns:
      the mandatory location of the related content.
    • setIconDesc

      public void setIconDesc(IconDesc icon)
      Set the icon for this related content
      Parameters:
      icon - set to be used
    • getIcon

      public IconDesc getIcon()
      Returns:
      the icon descriptor for the related content