Class JmixUploadButton
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.upload.Upload
io.jmix.flowui.kit.component.upload.JmixUploadButton
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.upload.UploadVariant>,Serializable
@Tag("jmix-upload-button")
@JsModule("./src/upload-button/jmix-upload-button.js")
public class JmixUploadButton
extends com.vaadin.flow.component.upload.Upload
A custom upload button component that extends the Vaadin
Upload.
This component provides additional functionality, including integration
with JmixUploadI18N and support for internal error handling.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixUploadI18Nprotected static final Stringprotected com.vaadin.flow.server.streams.UploadHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.shared.RegistrationaddUploadInternalError(com.vaadin.flow.component.ComponentEventListener<JmixUploadButton.JmixUploadInternalErrorEvent> listener) com.vaadin.flow.server.streams.UploadHandlerReturns the upload handler to be used for this upload component.voidsetI18n(com.vaadin.flow.component.upload.UploadI18N i18n) voidsetUploadHandler(com.vaadin.flow.server.streams.UploadHandler handler) Methods inherited from class com.vaadin.flow.component.upload.Upload
addAllFinishedListener, addFailedListener, addFileRejectedListener, addFileRemovedListener, addFinishedListener, addProgressListener, addStartedListener, addSucceededListener, clearFileList, fireUpdateProgress, fireUpdateProgress, getAcceptedFileTypes, getDropLabel, getDropLabelIcon, getI18n, getMaxFiles, getMaxFileSize, getReceiver, getUploadButton, interruptUpload, isAutoUpload, isDropAllowed, isUploading, setAcceptedFileTypes, setAutoUpload, setDropAllowed, setDropLabel, setDropLabelIcon, setMaxFiles, setMaxFileSize, setReceiver, setUploadButton, setUploadFormat, setUploadHandlerMethods inherited from class com.vaadin.flow.component.Component
addListener, 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, bindThemeVariant, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariants
-
Field Details
-
i18n
-
JMIX_UPLOAD_BUTTON_CLASS_NAME
- See Also:
-
uploadHandler
protected com.vaadin.flow.server.streams.UploadHandler uploadHandler
-
-
Constructor Details
-
JmixUploadButton
public JmixUploadButton()
-
-
Method Details
-
setI18n
public void setI18n(com.vaadin.flow.component.upload.UploadI18N i18n) - Overrides:
setI18nin classcom.vaadin.flow.component.upload.Upload
-
addUploadInternalError
protected com.vaadin.flow.shared.Registration addUploadInternalError(com.vaadin.flow.component.ComponentEventListener<JmixUploadButton.JmixUploadInternalErrorEvent> listener) -
getUploadHandler
public com.vaadin.flow.server.streams.UploadHandler getUploadHandler()Returns the upload handler to be used for this upload component.- Returns:
- the upload handler to be used for this upload component
-
setUploadHandler
public void setUploadHandler(com.vaadin.flow.server.streams.UploadHandler handler) - Overrides:
setUploadHandlerin classcom.vaadin.flow.component.upload.Upload
-