Class WMultiFileWidget.FileWidgetUpload

    • Constructor Detail

      • FileWidgetUpload

        public FileWidgetUpload​(File file)
        Creates a FileWidgetUpload.
        Parameters:
        file - the file to hold
      • FileWidgetUpload

        public FileWidgetUpload​(String id,
                                File file)
        Creates a FileWidgetUpload.
        Parameters:
        id - the file id
        file - the file to hold
    • Method Detail

      • getFileId

        public String getFileId()
        Returns:
        the file identifier
      • getFile

        public File getFile()
        Returns:
        the file
      • setThumbnail

        public void setThumbnail​(Image thumbnail)
        Parameters:
        thumbnail - the files thumbnail
      • getThumbnail

        public Image getThumbnail()
        Returns:
        the files thumbnail, or null
      • getFileCacheKey

        public String getFileCacheKey()
        Retrieves the cache key for this file.
        Returns:
        the cacheKey
      • setFileCacheKey

        public void setFileCacheKey​(String cacheKey)
        A cache key is used to enable the caching of files on the client agent.
        Parameters:
        cacheKey - the cacheKey to set.
      • getThumbnailCacheKey

        public String getThumbnailCacheKey()
        Retrieves the cache key for the thumbnail.
        Returns:
        the cacheKey
      • setThumbnailCacheKey

        public void setThumbnailCacheKey​(String cacheKey)
        A cache key is used to enable the caching of the thumbnail on the client agent.
        Parameters:
        cacheKey - the cacheKey to set.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object