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 boolean
equals(Object o)
File
getFile()
String
getFileCacheKey()
Retrieves the cache key for this file.String
getFileId()
Image
getThumbnail()
String
getThumbnailCacheKey()
Retrieves the cache key for the thumbnail.int
hashCode()
void
setFileCacheKey(String cacheKey)
A cache key is used to enable the caching of files on the client agent.void
setThumbnail(Image thumbnail)
void
setThumbnailCacheKey(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.
-
-