Class InformationElement

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.parts.InformationElement

public class InformationElement extends Object
This class is wrapper around the *information* tag element which should javaws provide from source jnlp file
  • Field Details

  • Constructor Details

    • InformationElement

      public InformationElement()
  • Method Details

    • setTitle

      public void setTitle(String title)
    • setvendor

      public void setvendor(String vendor)
    • setHomepage

      public void setHomepage(String homepage)
    • addDescription

      public void addDescription(String description)
    • addDescription

      public void addDescription(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 String getTitle()
    • getVendor

      public String getVendor()
    • getHomepage

      public String getHomepage()
    • getDescriptions

      List<DescriptionInfoItem> getDescriptions()
    • getDescription

      public String getDescription()
    • getHeader

      public List<String> getHeader()
    • createFromJNLP

      public static InformationElement createFromJNLP(JNLPFile file)