Class RelatedContentDesc
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.jnlp.element.information.RelatedContentDesc
-
public class RelatedContentDesc extends java.lang.ObjectThe 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.StringdescriptionA short description of the related content.static java.lang.StringDESCRIPTION_ELEMENTstatic java.lang.StringHREF_ATTRIBUTEprivate IconDesciconThe icon can be used by the JNLP Client to identify the related content to the user.static java.lang.StringICON_ELEMENTprivate java.net.URLlocationThe mandatory location of the content.static java.lang.StringRELATED_CONTENT_ELEMENTprivate java.lang.StringtitleThe name of the related content.static java.lang.StringTITLE_ELEMENT
-
Constructor Summary
Constructors Constructor Description RelatedContentDesc(java.net.URL location)Create a related-content descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()IconDescgetIcon()java.net.URLgetLocation()java.lang.StringgetTitle()voidsetDescription(java.lang.String description)Set the description of this related content.voidsetIconDesc(IconDesc icon)Set the icon for this related contentvoidsetTitle(java.lang.String title)Set the title of this content.
-
-
-
Field Detail
-
RELATED_CONTENT_ELEMENT
public static final java.lang.String RELATED_CONTENT_ELEMENT
- See Also:
- Constant Field Values
-
HREF_ATTRIBUTE
public static final java.lang.String HREF_ATTRIBUTE
- See Also:
- Constant Field Values
-
TITLE_ELEMENT
public static final java.lang.String TITLE_ELEMENT
- See Also:
- Constant Field Values
-
DESCRIPTION_ELEMENT
public static final java.lang.String DESCRIPTION_ELEMENT
- See Also:
- Constant Field Values
-
ICON_ELEMENT
public static final java.lang.String ICON_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.
-
-
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
-
-