Uses of Class
com.vaadin.flow.component.trigger.internal.Action.Input
Packages that use Action.Input
Package
Description
Trigger API and its internal wiring.
-
Uses of Action.Input in com.vaadin.flow.component.clipboard
Methods in com.vaadin.flow.component.clipboard that return Action.InputModifier and TypeMethodDescription@Nullable Action.Input<String> ClipboardContent.getHtmlInput()@Nullable Action.Input<?> ClipboardContent.getImageInput()@Nullable Action.Input<String> ClipboardContent.getTextInput() -
Uses of Action.Input in com.vaadin.flow.component.trigger.internal
Subclasses of Action.Input in com.vaadin.flow.component.trigger.internalModifier and TypeClassDescriptionclassInput that produces the source<img>element of a component, for use as the image slot ofWriteToClipboardAction.final classLiteralInput<T>Input backed by a server-side literal that is captured into the renderedJsFunctionand Jackson-encoded into a JS value on the client.classReads a JavaScript property from a target component's root element at the moment a trigger fires.classSignalInput<T>Reads the current value of a server-sideSignalat the moment a trigger fires.Fields in com.vaadin.flow.component.trigger.internal declared as Action.InputModifier and TypeFieldDescriptionstatic final Action.Input<Boolean> KeyboardEventTrigger.EventData.altKeyevent.altKey— whether alt was held during the event.static final Action.Input<Boolean> MouseEventTrigger.EventData.altKeyevent.altKey— whether alt was held during the event.static final Action.Input<Integer> MouseEventTrigger.EventData.buttonevent.button— which mouse button changed state:0main (usually left),1auxiliary (usually middle),2secondary (usually right),3/4fourth (back) / fifth (forward) browser buttons.static final Action.Input<Integer> MouseEventTrigger.EventData.clientXevent.clientX— X coordinate relative to the viewport.static final Action.Input<Integer> MouseEventTrigger.EventData.clientYevent.clientY— Y coordinate relative to the viewport.static final Action.Input<String> KeyboardEventTrigger.EventData.codeevent.code— the physical key on the keyboard, independent of layout or modifiers (e.g.static final Action.Input<Boolean> KeyboardEventTrigger.EventData.ctrlKeyevent.ctrlKey— whether ctrl was held during the event.static final Action.Input<Boolean> MouseEventTrigger.EventData.ctrlKeyevent.ctrlKey— whether ctrl was held during the event.static final Action.Input<Boolean> KeyboardEventTrigger.EventData.isComposingevent.isComposing—truewhile the event is part of an IME composition session (betweencompositionstartandcompositionend).static final Action.Input<String> KeyboardEventTrigger.EventData.keyevent.key— the value of the key pressed, accounting for the keyboard layout and modifiers (e.g.static final Action.Input<Boolean> KeyboardEventTrigger.EventData.metaKeyevent.metaKey— whether meta was held during the event.static final Action.Input<Boolean> MouseEventTrigger.EventData.metaKeyevent.metaKey— whether meta was held during the event.static final Action.Input<Boolean> KeyboardEventTrigger.EventData.repeatevent.repeat—truewhen the event is fired by the OS auto-repeat while the key is held down.static final Action.Input<Integer> MouseEventTrigger.EventData.screenXevent.screenX— X coordinate relative to the screen.static final Action.Input<Integer> MouseEventTrigger.EventData.screenYevent.screenY— Y coordinate relative to the screen.static final Action.Input<Boolean> KeyboardEventTrigger.EventData.shiftKeyevent.shiftKey— whether shift was held during the event.static final Action.Input<Boolean> MouseEventTrigger.EventData.shiftKeyevent.shiftKey— whether shift was held during the event.Methods in com.vaadin.flow.component.trigger.internal that return Action.InputModifier and TypeMethodDescriptionSizeTrigger.height()event.height— the element's rounded content-box height in pixels.SizeTrigger.size()The synthetic event object as a whole, shaped as{width, height}— Jackson-deserialisable into theSizerecord when consumed by an action that decodes its input on the server.SizeTrigger.width()event.width— the element's rounded content-box width in pixels.Constructors in com.vaadin.flow.component.trigger.internal with parameters of type Action.InputModifierConstructorDescriptionCallbackAction(Class<T> valueType, SerializableConsumer<T> callback, Action.Input<? extends T> source) Creates an action that, when the trigger fires, evaluatessourceon the client, sends the value to the server, decodes it asvalueType, and hands it tocallbackon the UI thread.CallMethodAction(Component target, String methodName, Action.Input<?>... arguments) Creates an action that, when the trigger fires, evaluates each input on the client and callstarget[methodName](...)with those values.DownloadAction(Action.Input<String> url) Downloads from a URL resolved on the client at fire time.DownloadAction(Action.Input<String> url, Action.Input<String> filename) LikeDownloadAction(Action.Input)but also resolves the suggested filename on the client.Opens a URL resolved on the client at fire time, with the default features ("noopener,noreferrer").OpenInNewTabAction(Action.Input<String> url, Action.Input<String> features) Opens a URL resolved on the client at fire time, with features also resolved on the client.SetAttributeAction(Component target, String attributeName, Action.Input<? extends T> source) Creates an action that assigns the value produced bysourceto the given attribute ontargetwhen the trigger fires.SetPropertyAction(Component target, String propertyName, Action.Input<? extends T> source) Creates an action that assigns the value produced bysourceto the given JS property ontargetwhen the trigger fires.SetSignalAction(ValueSignal<? super T> signal, Class<T> valueType, Action.Input<? extends T> source) Creates an action that, when the trigger fires, evaluatessourceon the client, sends the value to the server, decodes it asvalueType, and assigns it tosignalviaValueSignal.set(Object).WriteToClipboardAction(@Nullable Action.Input<String> textInput, @Nullable Action.Input<String> htmlInput) Creates a fire-and-forget text/HTML clipboard-copy action.WriteToClipboardAction(@Nullable Action.Input<String> textInput, @Nullable Action.Input<String> htmlInput, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) Creates a text/HTML clipboard-copy action whose outcome is reported back to the server.WriteToClipboardAction(Action.Input<?> imageInput) Creates a fire-and-forget image clipboard-copy action.WriteToClipboardAction(Action.Input<?> imageInput, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) Creates an image clipboard-copy action whose outcome is reported back to the server.