Package com.vaadin.flow.component.upload
Class GeneratedVaadinUploadFile<R extends GeneratedVaadinUploadFile<R>>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.upload.GeneratedVaadinUploadFile<R>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
@Deprecated @Tag("vaadin-upload-file") @NpmPackage(value="@vaadin/polymer-legacy-adapter", version="23.6.2") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/upload/src/vaadin-upload-file.js") public abstract class GeneratedVaadinUploadFile<R extends GeneratedVaadinUploadFile<R>> extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasStyle
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
<vaadin-upload-file>element represents a file in the file list of<vaadin-upload>.Styling
The following shadow DOM parts are available for styling:
Part name Description rowFile container infoContainer for file status icon, file name, status and error messages done-iconFile done status icon warning-iconFile warning status icon metaContainer for file name, status and error messages nameFile name errorError message, shown when error happens statusStatus message commandsContainer for file command icons start-buttonStart file upload button retry-buttonRetry file upload button clear-buttonClear file button progressProgress bar The following state attributes are available for styling:
Attribute Description Part name errorAn error has happened during uploading :hostindeterminateUploading is in progress, but the progress value is unknown :hostuploadingUploading is in progress :hostcompleteUploading has finished successfully :host- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratedVaadinUploadFile.FileAbortEvent<R extends GeneratedVaadinUploadFile<R>>Deprecated.since v23.3, generated classes will be removed in v24.static classGeneratedVaadinUploadFile.FileRemoveEvent<R extends GeneratedVaadinUploadFile<R>>Deprecated.since v23.3, generated classes will be removed in v24.static classGeneratedVaadinUploadFile.FileRetryEvent<R extends GeneratedVaadinUploadFile<R>>Deprecated.since v23.3, generated classes will be removed in v24.static classGeneratedVaadinUploadFile.FileStartEvent<R extends GeneratedVaadinUploadFile<R>>Deprecated.since v23.3, generated classes will be removed in v24.
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinUploadFile()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.vaadin.flow.shared.RegistrationaddFileAbortListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileAbortEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected com.vaadin.flow.shared.RegistrationaddFileRemoveListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileRemoveEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected com.vaadin.flow.shared.RegistrationaddFileRetryListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileRetryEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected com.vaadin.flow.shared.RegistrationaddFileStartListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileStartEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected elemental.json.JsonObjectgetFileJsonObject()Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetFile(elemental.json.JsonObject file)Deprecated.since v23.3, generated classes will be removed in v24.-
Methods inherited from class com.vaadin.flow.component.Component
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, scrollIntoView, set, setElement, setId, setVisible
-
-
-
-
Method Detail
-
getFileJsonObject
@Deprecated protected elemental.json.JsonObject getFileJsonObject()
Deprecated.since v23.3, generated classes will be removed in v24.This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.- Returns:
- the
fileproperty from the webcomponent
-
setFile
@Deprecated protected void setFile(elemental.json.JsonObject file)
Deprecated.since v23.3, generated classes will be removed in v24.- Parameters:
file- the JsonObject value to set
-
addFileAbortListener
@Deprecated protected com.vaadin.flow.shared.Registration addFileAbortListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileAbortEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-abortevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
addFileRemoveListener
@Deprecated protected com.vaadin.flow.shared.Registration addFileRemoveListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileRemoveEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-removeevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
addFileRetryListener
@Deprecated protected com.vaadin.flow.shared.Registration addFileRetryListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileRetryEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-retryevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
addFileStartListener
@Deprecated protected com.vaadin.flow.shared.Registration addFileStartListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinUploadFile.FileStartEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-startevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
-