Class OpenFileHandler
java.lang.Object
com.levigo.jadice.web.demo.common.client.util.OpenFileHandler
- Direct Known Subclasses:
EnterpriseFileHandler
,OpenFileHandler.DefaultOpenFileHandler
Handler called when the user wants to open a File
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Source
createSource
(String uploadFileUUID) static OpenFileHandler
abstract void
onFileOpen
(PageView pageView, String filename, String data, String mimeType, long size) Called when a file should be opened in the Viewerstatic void
setHandler
(OpenFileHandler handler) final String
upload
(String url, String data, OpenFileHandler.UploadFinishedHandler finish, OpenFileHandler.UploadErroredHandler error)
-
Constructor Details
-
OpenFileHandler
public OpenFileHandler()
-
-
Method Details
-
createSource
-
upload
public final String upload(String url, String data, OpenFileHandler.UploadFinishedHandler finish, OpenFileHandler.UploadErroredHandler error) -
setHandler
-
getHandler
-
onFileOpen
public abstract void onFileOpen(PageView pageView, String filename, String data, String mimeType, long size) Called when a file should be opened in the Viewer- Parameters:
pageView
- the PageView the File should show infilename
- the name of the File (Filesystem of the User)data
- the file encoded as DataUrlmimeType
- the MIME/content type of the filesize
- the size of the file
-