Package io.jmix.ui.app.file
Class FileUploadDialog
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.app.file.FileUploadDialog
- All Implemented Interfaces:
FrameOwner
@UiController("singleFileUploadDialog")
@UiDescriptor("file-upload-dialog.xml")
@DialogMode(forceDialog=true)
public class FileUploadDialog
extends Screen
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected HBoxLayout
protected InputStream
protected String
protected FileUploadField
protected MessageBundle
protected Notifications
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
fileUpload
-
dropZone
-
notifications
-
messageBundle
-
fileContent
-
fileName
-
-
Constructor Details
-
FileUploadDialog
public FileUploadDialog()
-
-
Method Details
-
getFileContent
-
getFileName
-
onFileUploadSucceedEvent
@Subscribe("fileUpload") protected void onFileUploadSucceedEvent(SingleFileUploadField.FileUploadSucceedEvent event) -
onFileUploadErrorEvent
@Subscribe("fileUpload") protected void onFileUploadErrorEvent(UploadField.FileUploadErrorEvent event)
-