Uses of Interface
com.vaadin.flow.function.SerializableConsumer
Packages that use SerializableConsumer
Package
Description
-
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.voidAbstractCompositeField.bindValue(Signal<T> valueSignal, SerializableConsumer<T> writeCallback) voidAbstractField.bindValue(Signal<T> valueSignal, SerializableConsumer<T> writeCallback) default voidHasValue.bindValue(Signal<V> valueSignal, SerializableConsumer<V> writeCallback) Binds aSignal's value to the value state of this component and keeps the state synchronized with the signal value while the element is in attached state.static <T> 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. -
Uses of SerializableConsumer in com.vaadin.flow.component.geolocation
Methods in com.vaadin.flow.component.geolocation with parameters of type SerializableConsumerModifier and TypeMethodDescriptionstatic voidGeolocation.get(GeolocationOptions options, SerializableConsumer<GeolocationPosition> onSuccess) Requests the current position from the browser's Geolocation API with the given options.static voidGeolocation.get(GeolocationOptions options, SerializableConsumer<GeolocationPosition> onSuccess, SerializableConsumer<GeolocationError> onError) Requests the current position from the browser's Geolocation API with the given options.static voidGeolocation.get(SerializableConsumer<GeolocationPosition> onSuccess) Requests the current position from the browser's Geolocation API.static voidGeolocation.get(SerializableConsumer<GeolocationPosition> onSuccess, SerializableConsumer<GeolocationError> onError) Requests the current position from the browser's Geolocation API. -
Uses of SerializableConsumer in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidAbstractFieldSupport.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.dom
Methods in com.vaadin.flow.dom with parameters of type SerializableConsumerModifier and TypeMethodDescription<T> voidElement.bindProperty(String name, Signal<T> signal, SerializableConsumer<T> writeCallback) Binds aSignal's value to the given property and keeps the property value synchronized with the signal value while the element is in attached state.voidElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) Binds the given signal to the given property. -
Uses of SerializableConsumer in com.vaadin.flow.dom.impl
Methods in com.vaadin.flow.dom.impl with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidAbstractTextElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) voidBasicElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) voidShadowRootStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) -
Uses of SerializableConsumer in com.vaadin.flow.internal
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> SerializableConsumer<T> SignalBindingFeature.getWriteCallback(String key) Gets the write callback for the given key.NodeMap.SignalBinding.writeCallback()Returns the value of thewriteCallbackrecord component.Methods in com.vaadin.flow.internal.nodefeature with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoidAbstractPropertyMap.bindSignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) Binds the given signal to the given property with a write callback.protected <T> voidNodeMap.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, Registration registration, Signal<?> signal, SerializableConsumer<?> writeCallback) Sets a binding for the given key with a write callback.<T> 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 SerializableConsumerModifierConstructorDescriptionSignalBinding(Signal<?> signal, Registration registration, Serializable value, SerializableConsumer<?> writeCallback) Creates an instance of aSignalBindingrecord class. -
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.