content
protected com.vaadin.flow.component.HasComponents content
C - type of upload fieldV - value typecom.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 extends Object> com.vaadin.flow.component.HasValue.ValueChangeEvent<V extends Object>, 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>> 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.component.Componentprotected com.vaadin.flow.component.Componentprotected JmixUploadButtonprotected com.vaadin.flow.component.upload.Receiverprotected abstract Stringprotected <T extends com.vaadin.flow.component.HasComponents>
Tprotected abstract StringgetI18n()intcom.vaadin.flow.component.ComponentgetValue()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 voidonFailedEvent(com.vaadin.flow.component.upload.FailedEvent event) protected voidonFileRejectedEvent(com.vaadin.flow.component.upload.FileRejectedEvent event) protected voidonFinishedEvent(com.vaadin.flow.component.upload.FinishedEvent event) protected voidprotected voidonProgressEvent(com.vaadin.flow.component.upload.ProgressUpdateEvent event) protected voidonStartedEvent(com.vaadin.flow.component.upload.StartedEvent event) protected voidonSucceededEvent(com.vaadin.flow.component.upload.SucceededEvent event) protected voidremoveClassNames(com.vaadin.flow.component.HasElement component,
String... classNames) protected voidremoveThemeNames(com.vaadin.flow.component.Component component,
String... themeNames) voidsetAcceptedFileTypes(String... acceptedFileTypes) voidsetClearButtonAriaLabel(String ariaLabel) voidsetClearButtonVisible(boolean visible) protected voidsetComponentAriaLabel(com.vaadin.flow.component.Component component,
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(String fileNotSelectedText) voidsetI18n(JmixUploadI18N i18n) protected voidsetInternalValue(V value) protected voidsetInternalValue(V value,
boolean fromClient) voidsetMaxFileSize(int maxFileSize) protected voidsetPresentationValue(V newPresentationValue) voidsetReadOnly(boolean readOnly) voidsetUploadIcon(com.vaadin.flow.component.Component icon) voidsetUploadText(String uploadText) voidprotected voidisEmpty, setModelValue, valueEqualsaddListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttachListeneraddDetachListenergetElementisEnabledgetHelperComponent, getHelperText, setHelperComponent, setHelperTextgetLabel, setLabelgetHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameaddThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNamegetTooltip, setTooltipTextclear, getOptionalValueisReadOnly, isRequiredIndicatorVisible, setRequiredIndicatorVisiblesetValue in interface com.vaadin.flow.component.HasValue<C extends AbstractSingleUploadField<C,V>,V> setValue in class com.vaadin.flow.component.AbstractField<C extends AbstractSingleUploadField<C,V>,V> getValue in interface com.vaadin.flow.component.HasValue<C extends AbstractSingleUploadField<C,V>,V> getValue in class com.vaadin.flow.component.AbstractField<C extends AbstractSingleUploadField<C,V>,V> getEmptyValue in interface com.vaadin.flow.component.HasValue<C extends AbstractSingleUploadField<C,V>,V> getEmptyValue in class com.vaadin.flow.component.AbstractField<C extends AbstractSingleUploadField<C,V>,V> setReadOnly in interface com.vaadin.flow.component.HasValue<C extends AbstractSingleUploadField<C,V>,V> setReadOnly in interface com.vaadin.flow.component.HasValueAndElement<C extends AbstractSingleUploadField<C,V>,V> setEnabled 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 restrictionsUpload.setAcceptedFileTypes(String...)null if not seti18n - properties to setnull if not seticon - component to set as icontrue if file dropping is enabled, false otherwise.Upload.isDropAllowed()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 setaddValueChangeListener in interface com.vaadin.flow.component.HasValue<C extends AbstractSingleUploadField<C,V>,V> addValueChangeListener in class com.vaadin.flow.component.AbstractField<C extends AbstractSingleUploadField<C,V>,V> setPresentationValue in class com.vaadin.flow.component.AbstractField<C extends AbstractSingleUploadField<C,V>,V>