Class ClipboardPasteStartEvent
java.lang.Object
com.vaadin.flow.component.clipboard.ClipboardPasteStartEvent
- All Implemented Interfaces:
Serializable
Fired by the server-side paste pipeline before any pasted file is uploaded.
Carries the text/HTML payload and metadata for each pasted file (name, MIME
type, size) but no bytes — file content is delivered later via the
addPasteListener flow once uploads complete.
Use this hook to show a progress indicator the moment the user pastes, before the network round-trip for the file bytes finishes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetFiles()Returns metadata for each pasted file in the order the browser reported them.@Nullable StringgetHtml()Returns the HTML payload, ornullif the paste carried none.@Nullable StringgetText()Returns the plain-text payload, ornullif the paste carried none.
-
Method Details
-
getText
Returns the plain-text payload, ornullif the paste carried none.- Returns:
- the plain text, or
null
-
getHtml
Returns the HTML payload, ornullif the paste carried none.- Returns:
- the HTML, or
null
-
getFiles
Returns metadata for each pasted file in the order the browser reported them. The list is empty for text-only pastes.- Returns:
- an unmodifiable list of file metadata
-