Class RelatedContentDesc


  • public class RelatedContentDesc
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String description
      A short description of the related content.
      static java.lang.String DESCRIPTION_ELEMENT  
      static java.lang.String HREF_ATTRIBUTE  
      private IconDesc icon
      The icon can be used by the JNLP Client to identify the related content to the user.
      static java.lang.String ICON_ELEMENT  
      private java.net.URL location
      The mandatory location of the content.
      static java.lang.String RELATED_CONTENT_ELEMENT  
      private java.lang.String title
      The name of the related content.
      static java.lang.String TITLE_ELEMENT  
    • Constructor Summary

      Constructors 
      Constructor Description
      RelatedContentDesc​(java.net.URL location)
      Create a related-content descriptor.
    • Field Detail

      • RELATED_CONTENT_ELEMENT

        public static final java.lang.String RELATED_CONTENT_ELEMENT
        See Also:
        Constant Field Values
      • DESCRIPTION_ELEMENT

        public static final java.lang.String DESCRIPTION_ELEMENT
        See Also:
        Constant Field Values
      • title

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

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

        private final java.net.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 Detail

      • RelatedContentDesc

        public RelatedContentDesc​(java.net.URL location)
        Create a related-content descriptor.
        Parameters:
        location - the location of the related content
    • Method Detail

      • setTitle

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

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

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

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

        public java.net.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