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:
AttachNotifier
,DetachNotifier
,HasElement
,HasStyle
,Serializable
@Deprecated @Tag("vaadin-upload-file") @NpmPackage(value="@vaadin/polymer-legacy-adapter", version="23.5.12") @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 Component implements 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 row
File container info
Container for file status icon, file name, status and error messages done-icon
File done status icon warning-icon
File warning status icon meta
Container for file name, status and error messages name
File name error
Error message, shown when error happens status
Status message commands
Container for file command icons start-button
Start file upload button retry-button
Retry file upload button clear-button
Clear file button progress
Progress bar The following state attributes are available for styling:
Attribute Description Part name error
An error has happened during uploading :host
indeterminate
Uploading is in progress, but the progress value is unknown :host
uploading
Uploading is in progress :host
complete
Uploading has finished successfully :host
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeneratedVaadinUploadFile.FileAbortEvent<R extends GeneratedVaadinUploadFile<R>>
Deprecated.since v23.3, generated classes will be removed in v24.static class
GeneratedVaadinUploadFile.FileRemoveEvent<R extends GeneratedVaadinUploadFile<R>>
Deprecated.since v23.3, generated classes will be removed in v24.static class
GeneratedVaadinUploadFile.FileRetryEvent<R extends GeneratedVaadinUploadFile<R>>
Deprecated.since v23.3, generated classes will be removed in v24.static class
GeneratedVaadinUploadFile.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 Registration
addFileAbortListener(ComponentEventListener<GeneratedVaadinUploadFile.FileAbortEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.protected Registration
addFileRemoveListener(ComponentEventListener<GeneratedVaadinUploadFile.FileRemoveEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.protected Registration
addFileRetryListener(ComponentEventListener<GeneratedVaadinUploadFile.FileRetryEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.protected Registration
addFileStartListener(ComponentEventListener<GeneratedVaadinUploadFile.FileStartEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.protected elemental.json.JsonObject
getFileJsonObject()
Deprecated.since v23.3, generated classes will be removed in v24.protected void
setFile(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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
-
-
-
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
file
property 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 Registration addFileAbortListener(ComponentEventListener<GeneratedVaadinUploadFile.FileAbortEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-abort
events fired by the webcomponent.- Parameters:
listener
- the listener- Returns:
- a
Registration
for removing the event listener
-
addFileRemoveListener
@Deprecated protected Registration addFileRemoveListener(ComponentEventListener<GeneratedVaadinUploadFile.FileRemoveEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-remove
events fired by the webcomponent.- Parameters:
listener
- the listener- Returns:
- a
Registration
for removing the event listener
-
addFileRetryListener
@Deprecated protected Registration addFileRetryListener(ComponentEventListener<GeneratedVaadinUploadFile.FileRetryEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-retry
events fired by the webcomponent.- Parameters:
listener
- the listener- Returns:
- a
Registration
for removing the event listener
-
addFileStartListener
@Deprecated protected Registration addFileStartListener(ComponentEventListener<GeneratedVaadinUploadFile.FileStartEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forfile-start
events fired by the webcomponent.- Parameters:
listener
- the listener- Returns:
- a
Registration
for removing the event listener
-
-