Class WMultiFileWidget.FileWidgetUpload
- java.lang.Object
-
- com.github.bordertech.wcomponents.WMultiFileWidget.FileWidgetUpload
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- WMultiFileWidget
public static class WMultiFileWidget.FileWidgetUpload extends Object implements Serializable
Holds the uploaded file and extra details.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileWidgetUpload(File file)Creates a FileWidgetUpload.FileWidgetUpload(String id, File file)Creates a FileWidgetUpload.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)FilegetFile()StringgetFileCacheKey()Retrieves the cache key for this file.StringgetFileId()ImagegetThumbnail()StringgetThumbnailCacheKey()Retrieves the cache key for the thumbnail.inthashCode()voidsetFileCacheKey(String cacheKey)A cache key is used to enable the caching of files on the client agent.voidsetThumbnail(Image thumbnail)voidsetThumbnailCacheKey(String cacheKey)A cache key is used to enable the caching of the thumbnail on the client agent.
-
-
-
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.
-
-