Uses of Class
com.vaadin.flow.component.clipboard.ClipboardContent
Packages that use ClipboardContent
Package
Description
Server-side access to the browser's clipboard ? both writing (copy) and
reading (paste).
-
Uses of ClipboardContent in com.vaadin.flow.component.clipboard
Methods in com.vaadin.flow.component.clipboard that return ClipboardContentModifier and TypeMethodDescriptionstatic ClipboardContentClipboardContent.create()Creates a new empty content builder.Sets the HTML to be written to the clipboard.Sets theimage/pngpayload to a PNG re-encoding of the given component's root<img>element, produced on the client when the trigger fires.<C extends Component & HasValue<?,String>>
ClipboardContentClipboardContent.text(C source) Sets the plain text to be written to the clipboard, taken from thevalueproperty of the given component (typically an input field).Sets the plain text to be written to the clipboard.Methods in com.vaadin.flow.component.clipboard with parameters of type ClipboardContentModifier and TypeMethodDescriptionvoidClipboardBinding.write(ClipboardContent content) Copies a multi-format payload to the clipboard, packed into a singleClipboardItem.voidClipboardBinding.write(ClipboardContent content, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.write(ClipboardContent)but reports the outcome back to the server.