Class Addon


  • public class Addon
    extends Object
    This class defines an add-on.
    Author:
    Kai Kreuzer - Initial contribution
    • Constructor Detail

      • Addon

        public Addon​(String id,
                     String type,
                     String label,
                     String version,
                     String link,
                     boolean installed)
        Creates a new Addon instance
        Parameters:
        id - the id of the add-on
        type - the type id of the add-on
        label - the label of the add-on
        version - the version of the add-on
        link - the link to find more information about the add-on (can be null)
        installed - true, if the add-on is installed, false otherwise
      • Addon

        public Addon​(String id,
                     String type,
                     String label,
                     String version,
                     String link,
                     boolean installed,
                     String description,
                     String backgroundColor,
                     String imageLink)
        Creates a new Addon instance
        Parameters:
        id - the id of the add-on
        type - the type id of the add-on
        label - the label of the add-on
        version - the version of the add-on
        description - the detailed description of the add-on (may be null)
        backgroundColor - for displaying the add-on (may be null)
        link - the link to find more information about the add-on (may be null)
        imageLink - the link to an image (png/svg) (may be null)
        installed - true, if the add-on is installed, false otherwise
    • Method Detail

      • getType

        public String getType()
        The id of the of the add-on
      • getId

        public String getId()
        The id of the add-on
      • getLabel

        public String getLabel()
        The label of the add-on
      • getLink

        public String getLink()
        The (optional) link to find more information about the add-on
      • getVersion

        public String getVersion()
        The version of the add-on
      • isInstalled

        public boolean isInstalled()
        true, if the add-on is installed, false otherwise
      • setInstalled

        public void setInstalled​(boolean installed)
        Sets the installed state
      • getDescription

        public String getDescription()
        The description of the add-on
      • getBackgroundColor

        public String getBackgroundColor()
        The background color for rendering the add-on
      • getImageLink

        public String getImageLink()
        A link to an image (png/svg) for the add-on