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
, Serializable
JmixFileStorageUploadField
, JmixFileUploadField
com.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 String
protected static final String
protected boolean
protected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.HasComponents
protected static final String
protected static final String
protected static final String
protected com.vaadin.flow.component.Component
protected boolean
protected String
protected static final String
protected static final String
protected V
protected static final String
protected static final String
protected JmixUploadButton
protected String
protected void
addClassNames(com.vaadin.flow.component.HasElement component,
String... classNames)
com.vaadin.flow.shared.Registration
addFileUploadFailedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadFailedEvent<C>> listener)
com.vaadin.flow.shared.Registration
addFileUploadFileRejectedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadFileRejectedEvent<C>> listener)
setMaxFileSize(int)
setAcceptedFileTypes(String...)
com.vaadin.flow.shared.Registration
addFileUploadFinishedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadFinishedEvent<C>> listener)
com.vaadin.flow.shared.Registration
addFileUploadProgressListener(com.vaadin.flow.component.ComponentEventListener<FileUploadProgressEvent<C>> listener)
com.vaadin.flow.shared.Registration
addFileUploadStartedListener(com.vaadin.flow.component.ComponentEventListener<FileUploadStartedEvent<C>> listener)
com.vaadin.flow.shared.Registration
addFileUploadSucceededListener(com.vaadin.flow.component.ComponentEventListener<FileUploadSucceededEvent<C>> listener)
protected void
addThemeNames(com.vaadin.flow.component.Component component,
String... themeNames)
com.vaadin.flow.shared.Registration
addValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C,V>> listener)
protected void
attachContent(com.vaadin.flow.component.HasComponents content)
protected void
attachUploadEvents(JmixUploadButton upload)
protected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.HasComponents
protected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.Component
protected JmixUploadButton
protected com.vaadin.flow.component.upload.Receiver
protected abstract String
protected <T extends com.vaadin.flow.component.HasComponents>
T
protected abstract String
getI18n()
int
com.vaadin.flow.component.Component
getValue()
protected void
handleJmixUploadInternalError(String fileName)
protected void
initClearComponent(com.vaadin.flow.component.Component clearComponent)
protected void
initContentComponent(com.vaadin.flow.component.HasComponents component)
protected void
initFileNameComponent(com.vaadin.flow.component.Component fileNameComponent)
protected void
initUploadButtonComponent(com.vaadin.flow.component.Component component)
protected void
initUploadComponent(JmixUploadButton upload)
boolean
boolean
boolean
protected void
onClearButtonClick(com.vaadin.flow.component.ClickEvent<?> clickEvent)
protected void
onFailedEvent(com.vaadin.flow.component.upload.FailedEvent event)
protected void
onFileRejectedEvent(com.vaadin.flow.component.upload.FileRejectedEvent event)
protected void
onFinishedEvent(com.vaadin.flow.component.upload.FinishedEvent event)
protected void
protected void
onProgressEvent(com.vaadin.flow.component.upload.ProgressUpdateEvent event)
protected void
onStartedEvent(com.vaadin.flow.component.upload.StartedEvent event)
protected void
onSucceededEvent(com.vaadin.flow.component.upload.SucceededEvent event)
protected void
removeClassNames(com.vaadin.flow.component.HasElement component,
String... classNames)
protected void
removeThemeNames(com.vaadin.flow.component.Component component,
String... themeNames)
void
setAcceptedFileTypes(String... acceptedFileTypes)
void
setClearButtonAriaLabel(String ariaLabel)
void
setClearButtonVisible(boolean visible)
protected void
setComponentAriaLabel(com.vaadin.flow.component.Component component,
String ariaLabel)
protected void
setComponentClickListener(com.vaadin.flow.component.Component component,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<?>> listener)
protected void
setComponentEnabled(com.vaadin.flow.component.Component component,
boolean enabled)
protected void
setComponentText(com.vaadin.flow.component.Component component,
String text)
void
setDropAllowed(boolean allowed)
void
setEnabled(boolean enabled)
void
setFileNameVisible(boolean visible)
void
setFileNotSelectedText(String fileNotSelectedText)
void
setI18n(JmixUploadI18N i18n)
protected void
setInternalValue(V value)
protected void
setInternalValue(V value,
boolean fromClient)
void
setMaxFileSize(int maxFileSize)
protected void
setPresentationValue(V newPresentationValue)
void
setReadOnly(boolean readOnly)
void
setUploadIcon(com.vaadin.flow.component.Component icon)
void
setUploadText(String uploadText)
void
protected void
isEmpty, setModelValue, valueEquals
addListener, 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, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttachListener
addDetachListener
getElement
isEnabled
getHelperComponent, getHelperText, setHelperComponent, setHelperText
getLabel, setLabel
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
getTooltip, setTooltipText
clear, getOptionalValue
isReadOnly, isRequiredIndicatorVisible, setRequiredIndicatorVisible
setValue
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.HasEnabled
listener
- 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>