Uses of Class
com.vaadin.flow.component.trigger.internal.Action
Packages that use Action
Package
Description
Server-side access to the browser's clipboard — both writing (copy) and
reading (paste).
Trigger API and its internal wiring.
-
Uses of Action in com.vaadin.flow.component.clipboard
Methods in com.vaadin.flow.component.clipboard that return ActionModifier and TypeMethodDescriptionstatic ActionClipboard.writeText()Creates a clipboard write that is not bound to any component, for copy affordances rendered on the client where there is no server-side component to bind to.static ActionClipboard.writeText(SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboard.writeText()but reports the outcome of each write back to the server, so the application can confirm the copy or explain why it failed: -
Uses of Action in com.vaadin.flow.component.trigger.internal
Subclasses of Action in com.vaadin.flow.component.trigger.internalModifier and TypeClassDescriptionclassForwards a value from the trigger's handler scope back to the server and hands it to aSerializableConsumeron the UI thread.classStarts a file download in the browser when the bound trigger fires.classOpens a URL in a new browser tab or window viawindow.open(url, "_blank", features)when the bound trigger fires.classBase class for actions that run a JS expression yielding a Promise and optionally report the outcome back to the server.classReads the user's clipboard vianavigator.clipboard.read()when the bound trigger fires and delivers the textual contents to the handler on the UI thread.classAsks the browser to enter fullscreen when the bound trigger fires.classAssigns a value to a JavaScript property on a target element when the bound trigger fires.classNamedCallbackActionthat callsseton aValueSignal— the common case of bridging a client-side trigger into server-side signal state.classInvokes the browser's native share sheet vianavigator.sharewhen the bound trigger fires.classWrites aClipboardItemto the user's clipboard vianavigator.clipboard.write.Methods in com.vaadin.flow.component.trigger.internal with parameters of type ActionModifier and TypeMethodDescriptionfinal voidWires the given actions to this trigger.Method parameters in com.vaadin.flow.component.trigger.internal with type arguments of type ActionModifier and TypeMethodDescriptionfinal voidTrigger.triggers(Component attachTarget, SerializableSupplier<Action> action) Deferred variant ofTrigger.triggers(Action...): builds the action viaactionand wires it onceattachTargetis attached to a UI — immediately if it already is.