Class InformationElement
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.client.parts.splashscreen.parts.InformationElement
-
public class InformationElement extends java.lang.ObjectThis class is wrapper around the *information* tag element which should javaws provide from source jnlp file
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<DescriptionInfoItem>descriptionsprivate InfoItemhomepageprivate static LoggerLOGprivate InfoItemtitleprivate InfoItemvendor
-
Constructor Summary
Constructors Constructor Description InformationElement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescription(java.lang.String description)voidaddDescription(java.lang.String description, DescriptionKind kind)Just one description of each kind (4 including null) are allowed in information element.static InformationElementcreateFromJNLP(JNLPFile file)InfoItemgetBestMatchingDescriptionForSplash()java.lang.StringgetDescription()(package private) java.util.List<DescriptionInfoItem>getDescriptions()java.util.List<java.lang.String>getHeader()java.lang.StringgetHomepage()InfoItemgetLongestDescriptionForSplash()java.lang.StringgetTitle()java.lang.StringgetVendor()voidsetHomepage(java.lang.String homepage)voidsetTitle(java.lang.String title)voidsetvendor(java.lang.String vendor)
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
title
private InfoItem title
-
vendor
private InfoItem vendor
-
homepage
private InfoItem homepage
-
descriptions
private java.util.List<DescriptionInfoItem> descriptions
-
-
Method Detail
-
setTitle
public void setTitle(java.lang.String title)
-
setvendor
public void setvendor(java.lang.String vendor)
-
setHomepage
public void setHomepage(java.lang.String homepage)
-
addDescription
public void addDescription(java.lang.String description)
-
addDescription
public void addDescription(java.lang.String description, DescriptionKind kind)Just one description of each kind (4 including null) are allowed in information element. This method should throw exception when trying to add second description of same kind But I do not consider it as good idea to force this behaviour for something like splash screen, so I just replace the previous one with new one. without any warning
-
getBestMatchingDescriptionForSplash
public InfoItem getBestMatchingDescriptionForSplash()
-
getLongestDescriptionForSplash
public InfoItem getLongestDescriptionForSplash()
-
getTitle
public java.lang.String getTitle()
-
getVendor
public java.lang.String getVendor()
-
getHomepage
public java.lang.String getHomepage()
-
getDescriptions
java.util.List<DescriptionInfoItem> getDescriptions()
-
getDescription
public java.lang.String getDescription()
-
getHeader
public java.util.List<java.lang.String> getHeader()
-
createFromJNLP
public static InformationElement createFromJNLP(JNLPFile file)
-
-