Uses of Interface
com.vaadin.flow.function.SerializableConsumer
Packages that use SerializableConsumer
Package
Description
Server-side access to the browser's clipboard ? both writing (copy) and
reading (paste).
Server-side access to the browser's Fullscreen API.
Server-side access to the browser's Geolocation API for reading the user's
location.
Server-side access to the browser's Screen Orientation API for observing and
locking the device's screen orientation.
Trigger API and its internal wiring.
Server-side access to the browser's Screen Wake Lock API, which keeps the
device screen from dimming or locking ? useful for dashboards, kiosks,
presentations, and recipe or workout screens.
Server-side access to the browser's Web Share API, which opens the device's
native share sheet so the user can send a title, text, and/or URL to another
app.
-
Uses of SerializableConsumer in com.vaadin.base.devserver
Constructors in com.vaadin.base.devserver with parameters of type SerializableConsumerModifierConstructorDescriptionFileWatcher(SerializableConsumer<File> onChangeConsumer, File watchDirectory) Creates an instance of the file watcher for the given directory. -
Uses of SerializableConsumer in com.vaadin.collaborationengine
Subinterfaces of SerializableConsumer in com.vaadin.collaborationengineModifier and TypeInterfaceDescriptioninterfaceDefines when to execute the connection callbackMethods in com.vaadin.collaborationengine with parameters of type SerializableConsumerModifier and TypeMethodDescriptionCollaborationMessagePersister.fromCallbacks(SerializableFunction<CollaborationMessagePersister.FetchQuery, Stream<CollaborationMessage>> fetchCallback, SerializableConsumer<CollaborationMessagePersister.PersistRequest> persistCallback) Creates an instance ofCollaborationMessagePersisterfrom the provided callbacks. -
Uses of SerializableConsumer in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return SerializableConsumerModifier and TypeMethodDescription<T> SerializableConsumer<T> UI.accessLater(SerializableConsumer<T> accessTask, SerializableRunnable detachHandler) Wraps the given access task as a consumer that passes a value to the given task with this UI locked.Methods in com.vaadin.flow.component with parameters of type SerializableConsumerModifier and TypeMethodDescription<T> SerializableConsumer<T> UI.accessLater(SerializableConsumer<T> accessTask, SerializableRunnable detachHandler) Wraps the given access task as a consumer that passes a value to the given task with this UI locked.UI.beforeClientResponse(Component component, SerializableConsumer<ExecutionContext> execution) Registers a task to be executed before the response is sent to the client.AbstractCompositeField.bindValue(Signal<T> valueSignal, SerializableConsumer<T> writeCallback) AbstractField.bindValue(Signal<T> valueSignal, SerializableConsumer<T> writeCallback) default SignalBinding<V> HasValue.bindValue(Signal<V> valueSignal, SerializableConsumer<V> writeCallback) Binds aSignal's value to the value state of this component.static <T extends @Nullable Object>
SignalPropertySupport<T> SignalPropertySupport.create(Component owner, SerializableConsumer<T> valueChangeConsumer) Creates a new instance of SignalPropertySupport for the given owner component and a value change consumer to be called when property value is updated.static voidComponentUtil.resolveOrGenerateIdLater(Element sourceElement, Component targetComponent, String generatedIdPrefix, SerializableSupplier<Optional<String>> idGetter, SerializableConsumer<String> idConsumer) ReferencestargetComponentby id, generating an id for it if needed, so that components can accept aComponentfor references such asfororaria-labelledbyinstead of requiring the caller to assign an id first. -
Uses of SerializableConsumer in com.vaadin.flow.component.ai.chart
Methods in com.vaadin.flow.component.ai.chart with parameters of type SerializableConsumerModifier and TypeMethodDescriptionChartAIController.addStateChangeListener(SerializableConsumer<ChartState> listener) Adds a listener that is notified when the chart state changes after an AI request completes successfully. -
Uses of SerializableConsumer in com.vaadin.flow.component.ai.grid
Methods in com.vaadin.flow.component.ai.grid with parameters of type SerializableConsumerModifier and TypeMethodDescriptionGridAIController.addStateChangeListener(SerializableConsumer<GridState> listener) Adds a listener that is notified when the grid state changes after an AI request completes successfully. -
Uses of SerializableConsumer in com.vaadin.flow.component.ai.ui
Methods in com.vaadin.flow.component.ai.ui with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidAIInput.addSubmitListener(SerializableConsumer<String> listener) Adds a listener for submit events. -
Uses of SerializableConsumer in com.vaadin.flow.component.applayout
Methods in com.vaadin.flow.component.applayout with parameters of type SerializableConsumerModifier and TypeMethodDescriptionAppLayout.bindDrawerOpened(Signal<Boolean> signal, SerializableConsumer<Boolean> writeCallback) Binds the drawer opened state to the given signal. -
Uses of SerializableConsumer in com.vaadin.flow.component.checkbox
Methods in com.vaadin.flow.component.checkbox with parameters of type SerializableConsumerModifier and TypeMethodDescriptionCheckbox.bindIndeterminate(Signal<Boolean> signal, SerializableConsumer<Boolean> writeCallback) Binds the indeterminate state to the given signal. -
Uses of SerializableConsumer in com.vaadin.flow.component.checkbox.dataview
Constructors in com.vaadin.flow.component.checkbox.dataview with parameters of type SerializableConsumerModifierConstructorDescriptionCheckboxGroupDataView(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback) Constructs a new DataView.CheckboxGroupListDataView(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, CheckboxGroup<T> checkboxGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for Checkbox Group and verifies the passed data provider is compatible with this data view implementation. -
Uses of SerializableConsumer in com.vaadin.flow.component.clipboard
Methods in com.vaadin.flow.component.clipboard with parameters of type SerializableConsumerModifier and TypeMethodDescriptionPasteFileHandler.BatchBuilder.onComplete(SerializableConsumer<PasteComplete> handler) Registers theonCompletestep, fired once after the paste's declared file count has been delivered toonFile.PasteFileHandler.BatchBuilder.onFile(SerializableConsumer<PasteFile> handler) Registers theonFilestep, fired once per accepted file with the file's bytes and metadata.static RegistrationClipboard.onPaste(Component component, PasteOptions options, SerializableConsumer<PasteEvent> listener) Registers a listener for browserpasteevents on the given component with the givenPasteOptions.static RegistrationClipboard.onPaste(Component component, SerializableConsumer<PasteEvent> listener) Registers a listener for browserpasteevents on the given component.PasteFileHandler.BatchBuilder.onStart(SerializableConsumer<PasteStart> handler) Registers theonStartstep, fired once per paste before the paste's firstPasteFileis delivered.static UploadHandlerPasteFileHandler.perFile(SerializableConsumer<PasteFile> consumer) Builds anUploadHandlerthat reads each upload fully into memory, packages it as aPasteFile, and delivers it to the supplied consumer on the UI thread.voidClipboardBinding.read(SerializableConsumer<@Nullable ClipboardPayload> onPayload, SerializableConsumer<PromiseAction.Error> onError) Reads the user's clipboard vianavigator.clipboard.read()when the underlying trigger fires and delivers the contents toonPayload, or routes any failure toonError.voidClipboardBinding.readHtml(SerializableConsumer<@Nullable String> onHtml, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.read(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.clipboard.ClipboardPayload>, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.trigger.internal.PromiseAction.Error>)but delivers only thetext/htmlfield of the clipboard payload toonHtml.voidClipboardBinding.readText(SerializableConsumer<@Nullable String> onText, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.read(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.clipboard.ClipboardPayload>, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.trigger.internal.PromiseAction.Error>)but delivers only thetext/plainfield of the clipboard payload toonText.voidClipboardBinding.write(ClipboardContent content, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.write(ClipboardContent)but reports the outcome back to the server.voidClipboardBinding.writeHtml(String literal, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.writeHtml(String)but reports the outcome back to the server.voidClipboardBinding.writeImage(Component source, SerializableRunnable onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.writeImage(Component)but reports the outcome back to the server.voidClipboardBinding.writeImage(DownloadHandler handler, SerializableRunnable onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.writeImage(DownloadHandler)but reports the outcome back to the server.ClipboardBinding.writeText(C source, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.writeText(Component)but reports the outcome back to the server.voidClipboardBinding.writeText(String literal, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) LikeClipboardBinding.writeText(String)but reports the outcome of the write promise back to the server. -
Uses of SerializableConsumer in com.vaadin.flow.component.combobox
Methods in com.vaadin.flow.component.combobox with parameters of type SerializableConsumerModifier and TypeMethodDescriptionprotected voidComboBoxBase.runBeforeClientResponse(SerializableConsumer<UI> command) Helper for running a command in the before client response hookConstructors in com.vaadin.flow.component.combobox with parameters of type SerializableConsumerModifierConstructorDescriptionComboBoxDataCommunicator(ComboBoxBase<?, TItem, ?> comboBox, DataGenerator<TItem> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<tools.jackson.databind.node.ArrayNode> dataUpdater, StateNode stateNode, boolean fetchEnabled) -
Uses of SerializableConsumer in com.vaadin.flow.component.fullscreen
Methods in com.vaadin.flow.component.fullscreen with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidFullscreenBinding.enter(Component component, SerializableRunnable onSuccess, SerializableConsumer<PromiseAction.Error> onError) LikeFullscreenBinding.enter(Component)but reports the outcome back to the server.voidFullscreenBinding.enter(SerializableRunnable onSuccess, SerializableConsumer<PromiseAction.Error> onError) LikeFullscreenBinding.enter()but reports the outcome back to the server. -
Uses of SerializableConsumer in com.vaadin.flow.component.geolocation
Methods in com.vaadin.flow.component.geolocation with parameters of type SerializableConsumerModifier and TypeMethodDescriptionGeolocationWatcher.addPositionListener(SerializableConsumer<GeolocationPosition> onPosition, SerializableConsumer<GeolocationError> onError) Subscribes to position and error pushes from the watch.static voidGeolocation.getPosition(SerializableConsumer<GeolocationPosition> onSuccess, SerializableConsumer<GeolocationError> onError) Requests the user's current position once, using the current UI.static voidGeolocation.getPosition(SerializableConsumer<GeolocationPosition> onSuccess, SerializableConsumer<GeolocationError> onError, GeolocationOptions options) Requests the user's current position once, using the current UI, with tuning options.static voidGeolocation.getPosition(SerializableConsumer<GeolocationPosition> onSuccess, SerializableConsumer<GeolocationError> onError, GeolocationOptions options, UI ui) Requests the user's current position once on the given UI with tuning options.static voidGeolocation.getPosition(SerializableConsumer<GeolocationPosition> onSuccess, SerializableConsumer<GeolocationError> onError, UI ui) Requests the user's current position once on the given UI.GeolocationClient.startWatch(Component owner, GeolocationOptions options, SerializableConsumer<GeolocationResult> onUpdate) Starts a watch session bound toowner.GeolocationClient.subscribeAvailability(SerializableConsumer<GeolocationAvailability> onChange) Subscribes to availability changes. -
Uses of SerializableConsumer in com.vaadin.flow.component.html
Methods in com.vaadin.flow.component.html with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidNativeDetails.bindOpen(Signal<Boolean> signal, SerializableConsumer<Boolean> writeCallback) Binds the open state to the given signal. -
Uses of SerializableConsumer in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal with parameters of type SerializableConsumerModifier and TypeMethodDescriptionAbstractFieldSupport.bindValue(Signal<T> valueSignal, SerializableConsumer<T> writeCallback) Binds aSignal's value to the value state of the field and keeps the state synchronized with the signal value while the element is in attached state.voidPendingJavaScriptInvocation.then(SerializableConsumer<tools.jackson.databind.JsonNode> successHandler, SerializableConsumer<String> errorHandler) Constructors in com.vaadin.flow.component.internal with parameters of type SerializableConsumerModifierConstructorDescriptionAbstractFieldSupport(C component, T defaultValue, SerializableBiPredicate<T, T> valueEquals, SerializableConsumer<T> setPresentationValue) Creates a new field support. -
Uses of SerializableConsumer in com.vaadin.flow.component.page
Methods in com.vaadin.flow.component.page with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidPage.fetchCurrentURL(SerializableConsumer<URL> callback) Retrieves the current url from the browser.voidPage.fetchPageDirection(SerializableConsumer<Direction> callback) Retrievesdocument.dirof the current UI from the browser and passes it to thecallbackparameter.voidExtendedClientDetails.refresh(SerializableConsumer<ExtendedClientDetails> callback) Refreshes the browser details by fetching updated values from the browser.default voidPendingJavaScriptResult.then(SerializableConsumer<tools.jackson.databind.JsonNode> resultHandler) Adds an untyped handler that will be run for a successful execution.voidPendingJavaScriptResult.then(SerializableConsumer<tools.jackson.databind.JsonNode> resultHandler, SerializableConsumer<String> errorHandler) Adds an untyped handler that will be run for a successful execution and a handler that will be run for a failed execution.default <T> voidPendingJavaScriptResult.then(Class<T> targetType, SerializableConsumer<T> resultHandler) Adds a typed handler that will be run for a successful execution.default <T> voidPendingJavaScriptResult.then(Class<T> targetType, SerializableConsumer<T> resultHandler, SerializableConsumer<String> errorHandler) Adds a typed handler that will be run for a successful execution and a handler that will be run for a failed execution.default <T> voidPendingJavaScriptResult.then(tools.jackson.core.type.TypeReference<T> typeReference, SerializableConsumer<T> resultHandler) Adds a typed handler that will be run for a successful execution.default <T> voidPendingJavaScriptResult.then(tools.jackson.core.type.TypeReference<T> typeReference, SerializableConsumer<T> resultHandler, SerializableConsumer<String> errorHandler) Adds a typed handler that will be run for a successful execution and a handler that will be run for a failed execution. -
Uses of SerializableConsumer in com.vaadin.flow.component.radiobutton.dataview
Constructors in com.vaadin.flow.component.radiobutton.dataview with parameters of type SerializableConsumerModifierConstructorDescriptionRadioButtonGroupDataView(SerializableSupplier<? extends DataProvider<T, ?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback) Constructs a new DataView.RadioButtonGroupListDataView(SerializableSupplier<? extends DataProvider<T, ?>> dataProviderSupplier, RadioButtonGroup radioButtonGroup, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for RadioButtonGroup and verifies the passed data provider is compatible with this data view implementation. -
Uses of SerializableConsumer in com.vaadin.flow.component.react
Methods in com.vaadin.flow.component.react with parameters of type SerializableConsumerModifier and TypeMethodDescriptionprotected <T> DomListenerRegistrationReactAdapterComponent.addStateChangeListener(String stateName, Class<T> typeClass, SerializableConsumer<T> listener) Adds the specified listener for the state change event in the React adapter.protected <T> DomListenerRegistrationReactAdapterComponent.addStateChangeListener(String stateName, tools.jackson.core.type.TypeReference<T> typeReference, SerializableConsumer<T> listener) Adds the specified listener for the state change event in the React adapter. -
Uses of SerializableConsumer in com.vaadin.flow.component.screenorientation
Methods in com.vaadin.flow.component.screenorientation with parameters of type SerializableConsumerModifier and TypeMethodDescriptionstatic voidScreenOrientation.lock(ScreenOrientationType orientation, SerializableRunnable onSuccess, SerializableConsumer<ScreenOrientationLockError> onError) Locks the screen orientation to the given type and notifies the matching callback when the browser resolves the request. -
Uses of SerializableConsumer in com.vaadin.flow.component.select.data
Constructors in com.vaadin.flow.component.select.data with parameters of type SerializableConsumerModifierConstructorDescriptionSelectDataView(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, Select<T> select, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback) Constructs a new DataView.SelectListDataView(SerializableSupplier<DataProvider<T, ?>> dataProviderSupplier, Select<T> select, SerializableConsumer<IdentifierProvider<T>> identifierChangedCallback, SerializableBiConsumer<SerializablePredicate<T>, SerializableComparator<T>> filterOrSortingChangedCallback) Creates a new in-memory data view for Select and verifies the passed data provider is compatible with this data view implementation. -
Uses of SerializableConsumer in com.vaadin.flow.component.trigger.internal
Constructors in com.vaadin.flow.component.trigger.internal with parameters of type SerializableConsumerModifierConstructorDescriptionCallbackAction(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.protectedPromiseAction(Class<T> payloadType, SerializableConsumer<@Nullable T> onSuccess, SerializableConsumer<PromiseAction.Error> onError) Creates an action whose promise outcome is reported back to the server.ReadFromClipboardAction(SerializableConsumer<@Nullable ClipboardPayload> onPayload, SerializableConsumer<PromiseAction.Error> onError) Creates an action that reads the user's clipboard and delivers the contents toonPayload, or routes any failure toonError.RequestFullscreenAction(Component target, SerializableRunnable onSuccess, SerializableConsumer<PromiseAction.Error> onError) Creates a component-level fullscreen action whose outcome is reported back to the server.RequestFullscreenAction(SerializableRunnable onSuccess, SerializableConsumer<PromiseAction.Error> onError) Creates a page-level fullscreen action whose outcome is reported back to the server.ShareAction(@Nullable Action.Input<String> titleInput, @Nullable Action.Input<String> textInput, @Nullable Action.Input<String> urlInput, SerializableRunnable onShared, SerializableConsumer<PromiseAction.Error> onError) Creates a share action whose outcome is reported back to the server.WriteToClipboardAction(@Nullable Action.Input<String> textInput, @Nullable Action.Input<String> htmlInput, @Nullable Action.Input<?> imageInput, SerializableConsumer<@Nullable String> onCopied, SerializableConsumer<PromiseAction.Error> onError) Creates a multi-format clipboard-copy action whose outcome is reported back to the server.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, SerializableRunnable onCopied, SerializableConsumer<PromiseAction.Error> onError) Creates an image clipboard-copy action whose outcome is reported back to the server. -
Uses of SerializableConsumer in com.vaadin.flow.component.virtuallist.paging
Constructors in com.vaadin.flow.component.virtuallist.paging with parameters of type SerializableConsumerModifierConstructorDescriptionPagelessDataCommunicator(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<tools.jackson.databind.node.ArrayNode> dataUpdater, StateNode stateNode) -
Uses of SerializableConsumer in com.vaadin.flow.component.wakelock
Methods in com.vaadin.flow.component.wakelock with parameters of type SerializableConsumerModifier and TypeMethodDescriptionstatic voidWakeLock.request(SerializableConsumer<WakeLockError> onError) Asks the browser to acquire a screen wake lock for the current UI, with an error callback for persistent failures.static voidWakeLock.request(SerializableConsumer<WakeLockError> onError, UI ui) Same asWakeLock.request(SerializableConsumer)on the given UI. -
Uses of SerializableConsumer in com.vaadin.flow.data.binder
Methods in com.vaadin.flow.data.binder with parameters of type SerializableConsumerModifier and TypeMethodDescriptionprotected <T> RegistrationBinder.addListener(Class<T> eventType, SerializableConsumer<T> method) Adds a listener to the binder.voidResult.handle(SerializableConsumer<R> ifOk, SerializableConsumer<String> ifError) Invokes either the first callback or the second one, depending on whether this Result denotes a success or a failure, respectively.default voidResult.ifError(SerializableConsumer<String> consumer) Applies theconsumerif result is an error.default voidResult.ifOk(SerializableConsumer<R> consumer) Applies theconsumerif result is not an error.Constructors in com.vaadin.flow.data.binder with parameters of type SerializableConsumerModifierConstructorDescriptionReadOnlyHasValue(SerializableConsumer<V> valueProcessor) Creates newReadOnlyHasValuewithnullas an empty value.ReadOnlyHasValue(SerializableConsumer<V> valueProcessor, V emptyValue) Creates newReadOnlyHasValue -
Uses of SerializableConsumer in com.vaadin.flow.data.provider
Methods in com.vaadin.flow.data.provider that return SerializableConsumerModifier and TypeMethodDescription<F> SerializableConsumer<F> DataCommunicator.setDataProvider(DataProvider<T, F> dataProvider, F initialFilter) Sets the current data provider for this DataCommunicator.DataCommunicator.setDataProvider(DataProvider<T, F> dataProvider, F initialFilter, boolean notifiesOnChange) Sets the current data provider for this DataCommunicator.Methods in com.vaadin.flow.data.provider with parameters of type SerializableConsumerModifier and TypeMethodDescriptionprotected <E> RegistrationAbstractDataProvider.addListener(Class<E> eventType, SerializableConsumer<E> method) Registers a new listener with the specified activation method to listen events generated by this component.Constructors in com.vaadin.flow.data.provider with parameters of type SerializableConsumerModifierConstructorDescriptionDataCommunicator(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<tools.jackson.databind.node.ArrayNode> dataUpdater, StateNode stateNode) Creates a new instance.DataCommunicator(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<tools.jackson.databind.node.ArrayNode> dataUpdater, StateNode stateNode, boolean fetchEnabled) Creates a new instance. -
Uses of SerializableConsumer in com.vaadin.flow.data.provider.hierarchy
Methods in com.vaadin.flow.data.provider.hierarchy that return SerializableConsumerModifier and TypeMethodDescription<F> SerializableConsumer<F> HierarchicalDataCommunicator.setDataProvider(DataProvider<T, F> dataProvider, F initialFilter) <F> SerializableConsumer<F> HierarchicalDataCommunicator.setDataProvider(HierarchicalDataProvider<T, F> dataProvider, F initialFilter) Sets the hierarchical data provider for this communicator. -
Uses of SerializableConsumer in com.vaadin.flow.data.renderer
Methods in com.vaadin.flow.data.renderer with parameters of type SerializableConsumerModifier and TypeMethodDescriptionLitRenderer.withFunction(String functionName, SerializableConsumer<SOURCE> handler) Adds a function that can be called from within the template expression. -
Uses of SerializableConsumer in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom with parameters of type SerializableConsumerModifier and TypeMethodDescription<T extends @Nullable Object>
SignalBinding<T> Element.bindProperty(String name, Signal<T> signal, SerializableConsumer<T> writeCallback) Binds aSignal's value to the given property.ElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) Binds the given signal to the given property.SignalBinding.onChange(SerializableConsumer<BindingContext<T>> action) Registers a callback that is invoked every time the bound signal value changes and the binding updates the element. -
Uses of SerializableConsumer in com.vaadin.flow.dom.impl
Methods in com.vaadin.flow.dom.impl with parameters of type SerializableConsumerModifier and TypeMethodDescriptionAbstractTextElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) BasicElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) ShadowRootStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) -
Uses of SerializableConsumer in com.vaadin.flow.internal
Subinterfaces of SerializableConsumer in com.vaadin.flow.internalModifier and TypeInterfaceDescriptioninterfaceAn execution registered throughStateTree.beforeClientResponse(StateNode, SerializableConsumer)that wants to know when the tree stops and starts waiting to run it.Methods in com.vaadin.flow.internal that return SerializableConsumerMethods in com.vaadin.flow.internal with parameters of type SerializableConsumerModifier and TypeMethodDescriptionStateTree.beforeClientResponse(StateNode context, SerializableConsumer<ExecutionContext> execution) Registers a task to be executed before the response is sent to the client.voidStateNode.runWhenAttached(SerializableConsumer<UI> command) Runs the command when the node is attached to a UI. -
Uses of SerializableConsumer in com.vaadin.flow.internal.nodefeature
Methods in com.vaadin.flow.internal.nodefeature that return SerializableConsumerModifier and TypeMethodDescription<T> @Nullable SerializableConsumer<T> SignalBindingFeature.getWriteCallback(String key) Gets the write callback for the given key.NodeMap.InternalSignalBinding.writeCallback()Returns the value of thewriteCallbackrecord component.Methods in com.vaadin.flow.internal.nodefeature with parameters of type SerializableConsumerModifier and TypeMethodDescription<T> SignalBinding<T> AbstractPropertyMap.bindSignal(Element owner, String name, Signal<T> signal, SerializableConsumer<?> writeCallback) Binds the given signal to the given property with a write callback.protected <T extends @Nullable Object>
SignalBinding<T> NodeMap.bindSignal(Element owner, String key, Signal<T> signal, SerializableBiConsumer<Element, T> setter, SerializableConsumer<?> writeCallback) Binds a signal to a given key using a setter function and stores the writeCallback in SignalBindingFeature.ReturnChannelMap.registerChannel(SerializableConsumer<tools.jackson.databind.node.ArrayNode> handler) Registers a new channel based on a callback that receives the provided arguments when a message is passed to the channel.voidSignalBindingFeature.setBinding(String key, Signal<?> signal, @Nullable SerializableConsumer<?> writeCallback) Sets a binding for the given key with a write callback.<T extends @Nullable Object>
booleanSignalBindingFeature.updateSignalByWriteCallback(String key, T oldValue, T newValue, SerializableBiPredicate<T, T> valueEquals, SerializableConsumer<T> revertCallback) Updates the signal value by invoking the write callback for the given key.Constructors in com.vaadin.flow.internal.nodefeature with parameters of type SerializableConsumerModifierConstructorDescriptionInternalSignalBinding(Signal<?> signal, Serializable value, SerializableConsumer<?> writeCallback) Creates an instance of aInternalSignalBindingrecord class. -
Uses of SerializableConsumer in com.vaadin.flow.server
Methods in com.vaadin.flow.server that return types with arguments of type SerializableConsumerModifier and TypeMethodDescription<E extends EventObject>
Collection<SerializableConsumer<E>> VaadinServiceEventBus.getListeners(Class<E> eventType) Gets the listeners registered for the given event type, in registration order.Methods in com.vaadin.flow.server with parameters of type SerializableConsumerModifier and TypeMethodDescription<E extends EventObject>
RegistrationVaadinServiceEventBus.addListener(Class<E> eventType, SerializableConsumer<E> listener) Adds a listener for the given event type. -
Uses of SerializableConsumer in com.vaadin.flow.server.streams
Methods in com.vaadin.flow.server.streams with parameters of type SerializableConsumerModifier and TypeMethodDescriptionTransferProgressAwareHandler.whenComplete(SerializableConsumer<Boolean> completeOrTerminateHandler) Adds a listener to be notified when the transfer is completed successfully or with an error.TransferProgressAwareHandler.whenStart(SerializableConsumer<TransferContext> startHandler) Adds a listener to be notified when the transfer starts that receives the transfer context as input. -
Uses of SerializableConsumer in com.vaadin.flow.signals.local
Methods in com.vaadin.flow.signals.local that return SerializableConsumerModifier and TypeMethodDescription<C> SerializableConsumer<C> ValueSignal.modifier(SignalModifier<T, C> modifier) Creates a callback that modifies this signal's mutable value in place using the provided modifier function.<C> SerializableConsumer<C> ValueSignal.updater(ValueMerger<T, C> merger) Creates a callback that updates this signal value using the provided merger function.