|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileItemWrapper
Used by Upload fields to handle Items and perform the bridge between a Vaadin Item and a UploadReceiver
FileItemWrapper is used by :
- Implementation class of AbstractUploadField
in order to display File information's: newly Uploaded File or already Stored File by using the getter's
- AbstractUploadField
in order to update the Item based on the Uploaded File (Dropped File): This is done during handling of events like UploadFinished or UploadFailed...
Method Summary | |
---|---|
void |
clearProperties()
Clear all properties. |
String |
getExtension()
|
File |
getFile()
|
String |
getFileName()
|
long |
getFileSize()
|
String |
getMimeType()
|
boolean |
isEmpty()
Return true if the binaryData is not empty. |
void |
populateFromItem(com.vaadin.data.Item item)
Populate the FileItemWrapper with the provided Item .Generally done in the constructor (in Builder). |
void |
populateFromReceiver(UploadReceiver receiver)
Populate the FileItemWrapper with the provided UploadReceiver . |
void |
reloadPrevious()
Used to restore the previous Uploaded File if existing. |
Method Detail |
---|
void populateFromItem(com.vaadin.data.Item item)
Item
.
void populateFromReceiver(UploadReceiver receiver)
UploadReceiver
.
void clearProperties()
void reloadPrevious()
boolean isEmpty()
long getFileSize()
String getMimeType()
String getExtension()
String getFileName()
File getFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |