content
protected com.vaadin.flow.component.HasComponents content
C - the type of the component implementing this fieldV - the value type of the upload fieldEV - the value type of the FileUploadSucceededEventcom.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasHelper, com.vaadin.flow.component.HasLabel, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>,V> , com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>,V> , com.vaadin.flow.component.shared.HasTooltip, SerializableJmixFileStorageUploadField, JmixFileUploadFieldcom.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V> com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>protected static final Stringprotected static final Stringprotected booleanprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.HasComponentsprotected static final Stringprotected static final Stringprotected static final Stringprotected com.vaadin.flow.component.Componentprotected booleanprotected Stringprotected static final Stringprotected static final Stringprotected Vprotected static final Stringprotected static final Stringprotected JmixUploadButtonprotected Stringprotected voidaddClassNames(com.vaadin.flow.component.HasElement component,
String... classNames) com.vaadin.flow.shared.RegistrationaddFileUploadFailedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadFailedEvent<C>> listener) com.vaadin.flow.shared.RegistrationaddFileUploadFileRejectedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadFileRejectedEvent<C>> listener) setMaxFileSize(int)
setAcceptedFileTypes(String...)
com.vaadin.flow.shared.RegistrationaddFileUploadFinishedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadFinishedEvent<C>> listener) com.vaadin.flow.shared.RegistrationaddFileUploadProgressListener(com.vaadin.flow.component.ComponentEventListener<FileUploadProgressEvent<C>> listener) com.vaadin.flow.shared.RegistrationaddFileUploadStartedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadStartedEvent<C>> listener) com.vaadin.flow.shared.RegistrationaddFileUploadSucceededListener(com.vaadin.flow.component.ComponentEventListener<FileUploadSucceededEvent<C,EV>> listener) protected voidaddThemeNames(com.vaadin.flow.component.Component component,
String... themeNames) com.vaadin.flow.shared.RegistrationaddValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>> listener) protected voidattachContent(com.vaadin.flow.component.HasComponents content) protected voidattachUploadEvents(JmixUploadButton upload) protected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.HasComponentsprotected com.vaadin.flow.server.streams.TransferProgressListenerprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.Componentprotected JmixUploadButtonprotected abstract com.vaadin.flow.server.streams.UploadHandlerprotected abstract String@Nullable Stringprotected <T extends com.vaadin.flow.component.HasComponents>
Tprotected abstract StringgetContentType(String fileName) protected abstract String@Nullable V@Nullable String@Nullable JmixUploadI18NgetI18n()int@Nullable com.vaadin.flow.component.Component@Nullable String@Nullable VgetValue()protected voidhandleJmixUploadInternalError(String fileName) protected voidinitClearComponent(com.vaadin.flow.component.Component clearComponent) protected voidinitContentComponent(com.vaadin.flow.component.HasComponents component) protected voidinitFileNameComponent(com.vaadin.flow.component.Component fileNameComponent) protected voidinitUploadButtonComponent(com.vaadin.flow.component.Component component) protected voidinitUploadComponent(JmixUploadButton upload) booleanbooleanbooleanprotected voidonClearButtonClick(com.vaadin.flow.component.ClickEvent<?> clickEvent) protected voidonFailed(com.vaadin.flow.server.streams.TransferContext context,
IOException reason) protected voidonFileRejectedEvent(com.vaadin.flow.component.upload.FileRejectedEvent event) protected voidonFinished(com.vaadin.flow.server.streams.TransferContext context,
long transferredBytes) protected voidprotected voidonProgressUpdate(com.vaadin.flow.server.streams.TransferContext context,
long transferredBytes,
long totalBytes) protected voidonStarted(com.vaadin.flow.server.streams.TransferContext context) protected voidprotected voidremoveClassNames(com.vaadin.flow.component.HasElement component,
String... classNames) protected voidremoveThemeNames(com.vaadin.flow.component.Component component,
String... themeNames) voidsetAcceptedFileTypes(String... acceptedFileTypes) voidsetClearButtonAriaLabel(@Nullable String ariaLabel) voidsetClearButtonVisible(boolean visible) protected voidsetComponentAriaLabel(com.vaadin.flow.component.Component component,
@Nullable String ariaLabel) protected voidsetComponentClickListener(com.vaadin.flow.component.Component component,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<?>> listener) protected voidsetComponentEnabled(com.vaadin.flow.component.Component component,
boolean enabled) protected voidsetComponentText(com.vaadin.flow.component.Component component,
String text) voidsetDropAllowed(boolean allowed) voidsetEnabled(boolean enabled) voidsetFileNameVisible(boolean visible) voidsetFileNotSelectedText(@Nullable String fileNotSelectedText) voidsetI18n(JmixUploadI18N i18n) protected voidsetInternalValue(@Nullable V value) protected voidsetInternalValue(@Nullable V value,
boolean fromClient) voidsetMaxFileSize(int maxFileSize) protected voidsetPresentationValue(@Nullable V newPresentationValue) voidsetReadOnly(boolean readOnly) voidsetUploadIcon(@Nullable com.vaadin.flow.component.Component icon) voidsetUploadText(@Nullable String uploadText) voidprotected voidbindValue, isEmpty, setModelValue, valueEqualsaddListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttachListeneraddDetachListenergetElementbindEnabled, isEnabledbindHelperText, getHelperComponent, getHelperText, setHelperComponent, setHelperTextgetLabel, setLabelbindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameaddThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNamegetTooltip, setTooltipMarkdown, setTooltipTextclear, getOptionalValuebindReadOnly, bindRequiredIndicatorVisible, isReadOnly, isRequiredIndicatorVisible, setRequiredIndicatorVisiblesetEnabled in interface com.vaadin.flow.component.HasEnabledlistener - progress listener to addlistener - listener to addlistener - listener to addlistener - listener to addlistener - listener to addlistener - listener to addExample: "video/*","image/tiff" or ".pdf","audio/mp3"
acceptedFileTypes - the allowed file types to be uploaded, or null to clear any restrictionsnull if not seti18n - properties to setnull if not seticon - component to set as icontrue if file dropping is enabled, false otherwise.true.
See Upload.setDropAllowed(boolean) for details.
allowed - true to enable droppingnull if not setuploadText - text to setnull if not setfileNotSelectedText - text to settrue if name of uploaded file is shown
The default value is false.
visible - whether file name should be showntrue if clear button is shown
The default value is false.
visible - whether clear button should be shownnull if not setariaLabel - aria-label to set