Package io.imunity.webconsole.common
Class FileUploder
- java.lang.Object
-
- pl.edu.icm.unity.webui.common.AbstractUploadReceiver
-
- io.imunity.webconsole.common.FileUploder
-
- All Implemented Interfaces:
com.vaadin.ui.Upload.FinishedListener,com.vaadin.ui.Upload.ProgressListener,com.vaadin.ui.Upload.Receiver,com.vaadin.ui.Upload.StartedListener,com.vaadin.ui.Upload.SucceededListener,java.io.Serializable
public class FileUploder extends pl.edu.icm.unity.webui.common.AbstractUploadReceiverAllows for uploading file. Show error popup if problem occurs.- Author:
- P.Piernik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUploder(com.vaadin.ui.Upload upload, com.vaadin.ui.ProgressBar progress, com.vaadin.ui.Label info, pl.edu.icm.unity.MessageSource msg, java.io.File tempDir)FileUploder(com.vaadin.ui.Upload upload, com.vaadin.ui.ProgressBar progress, com.vaadin.ui.Label info, pl.edu.icm.unity.MessageSource msg, java.io.File tempDir, java.lang.Runnable callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.io.FilegetFile()booleanisOverflow()booleanisUploading()java.io.OutputStreamreceiveUpload(java.lang.String filename, java.lang.String mimeType)voidunblock()voiduploadSucceeded(com.vaadin.ui.Upload.SucceededEvent event)
-
-
-
Constructor Detail
-
FileUploder
public FileUploder(com.vaadin.ui.Upload upload, com.vaadin.ui.ProgressBar progress, com.vaadin.ui.Label info, pl.edu.icm.unity.MessageSource msg, java.io.File tempDir, java.lang.Runnable callback)
-
FileUploder
public FileUploder(com.vaadin.ui.Upload upload, com.vaadin.ui.ProgressBar progress, com.vaadin.ui.Label info, pl.edu.icm.unity.MessageSource msg, java.io.File tempDir)
-
-
Method Detail
-
uploadSucceeded
public void uploadSucceeded(com.vaadin.ui.Upload.SucceededEvent event)
- Specified by:
uploadSucceededin interfacecom.vaadin.ui.Upload.SucceededListener- Overrides:
uploadSucceededin classpl.edu.icm.unity.webui.common.AbstractUploadReceiver
-
receiveUpload
public java.io.OutputStream receiveUpload(java.lang.String filename, java.lang.String mimeType)
-
isUploading
public boolean isUploading()
-
getFile
public java.io.File getFile()
-
unblock
public void unblock()
-
isOverflow
public boolean isOverflow()
-
clear
public void clear()
-
-