Class LinkPreviewView.LinkPreview

  • Enclosing class:
    LinkPreviewView

    public static class LinkPreviewView.LinkPreview
    extends java.lang.Object
    LinkPreview class
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkPreview​(java.lang.String url, java.lang.String type, java.lang.String title, java.lang.String description, int image, java.lang.String siteName)  
      LinkPreview​(java.lang.String url, java.lang.String type, java.lang.String title, java.lang.String description, java.lang.String image, java.lang.String siteName)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      int getFallbackImage()  
      java.lang.String getImage()  
      java.lang.String getSiteName()  
      java.lang.String getTitle()  
      java.lang.String getType()  
      java.lang.String getUrl()  
      void setDescription​(java.lang.String description)
      Sets the description.
      void setImage​(java.lang.String image)
      Sets the image.
      void setSiteName​(java.lang.String siteName)
      Sets the site name.
      void setTitle​(java.lang.String title)
      Sets the title.
      void setType​(java.lang.String type)
      Sets the type.
      void setUrl​(java.lang.String url)
      Sets the url string.
      boolean shouldUseFallbackImage()
      Determines whether to use the fallback image or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkPreview

        public LinkPreview​(java.lang.String url,
                           java.lang.String type,
                           java.lang.String title,
                           java.lang.String description,
                           java.lang.String image,
                           java.lang.String siteName)
        Parameters:
        url - html link
        type - type
        title - title of the link preview
        description - description of the link preview
        image - image url
        siteName - site name
      • LinkPreview

        public LinkPreview​(java.lang.String url,
                           java.lang.String type,
                           java.lang.String title,
                           java.lang.String description,
                           int image,
                           java.lang.String siteName)
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Returns:
        the url string.
      • setUrl

        public void setUrl​(java.lang.String url)
        Sets the url string.
        Parameters:
        url - url used for preview
      • getType

        public java.lang.String getType()
        Returns:
        the type.
      • setType

        public void setType​(java.lang.String type)
        Sets the type.
        Parameters:
        type - current type of link preview
      • getTitle

        public java.lang.String getTitle()
        Returns:
        the title.
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title.
        Parameters:
        title - title of link preview
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the description.
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description.
        Parameters:
        description - description of link preview
      • getImage

        public java.lang.String getImage()
        Returns:
        url of the image.
      • setImage

        public void setImage​(java.lang.String image)
        Sets the image.
        Parameters:
        image - image url to load
      • getSiteName

        public java.lang.String getSiteName()
        Returns:
        the site name.
      • setSiteName

        public void setSiteName​(java.lang.String siteName)
        Sets the site name.
        Parameters:
        siteName - name of the site
      • getFallbackImage

        public int getFallbackImage()
        Returns:
        the fallback image.
      • shouldUseFallbackImage

        public boolean shouldUseFallbackImage()
        Determines whether to use the fallback image or not.
        Returns:
        True if fallback image should be used, otherwise false.