Package com.vaadin.flow.component.upload
Class UploadFileList
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.upload.UploadFileList
- 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<UploadFileListVariant>,Serializable
@Tag("vaadin-upload-file-list")
@NpmPackage(value="@vaadin/upload",
version="25.1.0-alpha8")
@JsModule("@vaadin/upload/src/vaadin-upload-file-list.js")
public class UploadFileList
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.shared.HasThemeVariant<UploadFileListVariant>, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasEnabled
A component that displays the list of files being uploaded. When linked to an
UploadManager, it automatically displays upload progress, status, and
controls for each file.
The component automatically syncs files from the manager and forwards retry/abort/start events back to the manager.
Example usage with UploadManager:
var manager = new UploadManager(uploadHandler); var fileList = new UploadFileList(manager); add(fileList);
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty file list without a manager.UploadFileList(UploadManager manager) Creates a new file list linked to the given manager. -
Method Summary
Modifier and TypeMethodDescriptiongetI18n()Get the internationalization object previously set for this component.default UploadManagerGets the upload manager that this component is linked to.voidsetI18n(UploadFileListI18N i18n) Set the internationalization properties for this component.default voidsetUploadManager(UploadManager manager) Sets the upload manager that this component is linked to.Methods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, 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, 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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, bindThemeName, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, bindThemeVariant, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariants
-
Field Details
-
ATTACH_LISTENER_REGISTRATION
- See Also:
-
CONNECTOR_ATTACH_LISTENER_REGISTRATION
- See Also:
-
-
Constructor Details
-
UploadFileList
public UploadFileList()Creates a new empty file list without a manager. The manager must be set later usingsetUploadManager(UploadManager). -
UploadFileList
Creates a new file list linked to the given manager.- Parameters:
manager- the upload manager to link to, notnull- Throws:
NullPointerException- if manager isnull
-
-
Method Details
-
setI18n
Set the internationalization properties for this component.- Parameters:
i18n- the i18n object, notnull
-
getI18n
Get the internationalization object previously set for this component.NOTE: Updating the instance that is returned from this method will not update the component if not set again using
setI18n(UploadFileListI18N)- Returns:
- the i18n object or
nullif no i18n object has been set
-
getUploadManager
Gets the upload manager that this component is linked to.- Returns:
- the upload manager, or
nullif not linked
-
setUploadManager
Sets the upload manager that this component is linked to.- Parameters:
manager- the upload manager, ornullto unlink
-