Class VUpload

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.flow.component.upload.GeneratedVaadinUpload

        com.vaadin.flow.component.upload.GeneratedVaadinUpload.FileRejectEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.FilesChangeEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.MaxFilesReachedChangeEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadAbortEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadBeforeEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadErrorEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadProgressEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadRequestEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadResponseEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadRetryEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadStartEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>, com.vaadin.flow.component.upload.GeneratedVaadinUpload.UploadSuccessEvent<R extends com.vaadin.flow.component.upload.GeneratedVaadinUpload<R>>
    • Constructor Summary

      Constructors 
      Constructor Description
      VUpload()  
      VUpload​(com.vaadin.flow.component.upload.Receiver receiver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      VUpload withAcceptedFileTypes​(String... acceptedFileTypes)  
      VUpload withAllFinishedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.AllFinishedEvent> listener)  
      VUpload withAutoUpload​(boolean autoUpload)  
      VUpload withDropAllowed​(boolean dropAllowed)  
      VUpload withDropLabel​(com.vaadin.flow.component.Component dropLabel)  
      VUpload withDropLabelIcon​(com.vaadin.flow.component.Component dropLabelIcon)  
      VUpload withFailedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.FailedEvent> listener)  
      VUpload withFileRejectedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.FileRejectedEvent> listener)  
      VUpload withFinishedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.FinishedEvent> listener)  
      VUpload withI18n​(com.vaadin.flow.component.upload.UploadI18N i18n)  
      VUpload withMaxFiles​(int maxFiles)  
      VUpload withMaxFileSize​(int maxFileSize)  
      VUpload withProgressListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.ProgressUpdateEvent> listener)  
      VUpload withStartedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.StartedEvent> listener)  
      VUpload withSucceededListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.SucceededEvent> listener)  
      VUpload withUploadButton​(com.vaadin.flow.component.Component uploadButton)  
      • Methods inherited from class com.vaadin.flow.component.upload.Upload

        addAllFinishedListener, addFailedListener, addFileRejectedListener, addFinishedListener, addProgressListener, addStartedListener, addSucceededListener, fireUpdateProgress, getAcceptedFileTypes, getDropLabel, getDropLabelIcon, getI18n, getMaxFiles, getMaxFileSize, getReceiver, getUploadButton, interruptUpload, isAutoUpload, isDropAllowed, isUploading, setAcceptedFileTypes, setAutoUpload, setDropAllowed, setDropLabel, setDropLabelIcon, setI18n, setMaxFiles, setMaxFileSize, setReceiver, setUploadButton
      • Methods inherited from class com.vaadin.flow.component.upload.GeneratedVaadinUpload

        addFileRejectListener, addFilesChangeListener, addMaxFilesReachedChangeListener, addToAddButton, addToDropLabel, addToDropLabelIcon, addToFileList, addUploadAbortListener, addUploadBeforeListener, addUploadErrorListener, addUploadProgressListener, addUploadRequestListener, addUploadResponseListener, addUploadRetryListener, addUploadStartListener, addUploadSuccessListener, getAcceptString, getCaptureString, getFilesJsonArray, getFormDataNameString, getHeadersJsonObject, getI18nJsonObject, getMaxFilesDouble, getMaxFileSizeDouble, getMethodString, getTargetString, getTimeoutDouble, isMaxFilesReachedBoolean, isNoAutoBoolean, isNodropBoolean, isWithCredentialsBoolean, remove, removeAll, setAccept, setCapture, setFiles, setFormDataName, setHeaders, setI18n, setMaxFiles, setMaxFileSize, setMethod, setNoAuto, setNodrop, setTarget, setTimeout, setWithCredentials, uploadFiles
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • VUpload

        public VUpload()
      • VUpload

        public VUpload​(com.vaadin.flow.component.upload.Receiver receiver)
    • Method Detail

      • withMaxFiles

        public VUpload withMaxFiles​(int maxFiles)
      • withMaxFileSize

        public VUpload withMaxFileSize​(int maxFileSize)
      • withAutoUpload

        public VUpload withAutoUpload​(boolean autoUpload)
      • withDropAllowed

        public VUpload withDropAllowed​(boolean dropAllowed)
      • withAcceptedFileTypes

        public VUpload withAcceptedFileTypes​(String... acceptedFileTypes)
      • withUploadButton

        public VUpload withUploadButton​(com.vaadin.flow.component.Component uploadButton)
      • withDropLabel

        public VUpload withDropLabel​(com.vaadin.flow.component.Component dropLabel)
      • withDropLabelIcon

        public VUpload withDropLabelIcon​(com.vaadin.flow.component.Component dropLabelIcon)
      • withI18n

        public VUpload withI18n​(com.vaadin.flow.component.upload.UploadI18N i18n)
      • withAllFinishedListener

        public VUpload withAllFinishedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.AllFinishedEvent> listener)
      • withProgressListener

        public VUpload withProgressListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.ProgressUpdateEvent> listener)
      • withFailedListener

        public VUpload withFailedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.FailedEvent> listener)
      • withFinishedListener

        public VUpload withFinishedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.FinishedEvent> listener)
      • withStartedListener

        public VUpload withStartedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.StartedEvent> listener)
      • withSucceededListener

        public VUpload withSucceededListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.SucceededEvent> listener)
      • withFileRejectedListener

        public VUpload withFileRejectedListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.upload.FileRejectedEvent> listener)