Uses of Class
com.vaadin.flow.component.clipboard.ClipboardContent
Packages that use ClipboardContent
Package
Description
Trigger API and its internal wiring.
-
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. -
Uses of ClipboardContent in com.vaadin.flow.component.trigger.internal
Constructors in com.vaadin.flow.component.trigger.internal with parameters of type ClipboardContentModifierConstructorDescriptionWriteToClipboardAction(ClipboardContent content) Creates a fire-and-forget multi-format clipboard-copy action from aClipboardContentdescribing the payload.WriteToClipboardAction(ClipboardContent content, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) Creates a multi-format clipboard-copy action from aClipboardContentwhose outcome is reported back to the server.