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 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. -
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 extends @Nullable Object>
SignalBinding<T> Element.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.ElementStateProvider.bindPropertySignal(Element owner, String name, Signal<?> signal, SerializableConsumer<?> writeCallback) Binds the given signal to the given property.static RegistrationElementEffect.effect(Element owner, SerializableConsumer<EffectContext> effectFunction) Creates a context-aware Signal effect that is owned by a given element.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.Constructors in com.vaadin.flow.dom with parameters of type SerializableConsumerModifierConstructorDescriptionElementEffect(Element owner, SerializableConsumer<EffectContext> effectFunction) -
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
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 TypeMethodDescriptionAbstractPropertyMap.bindSignal(Element owner, String name, Signal<?> 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, Registration registration, Signal<?> signal, 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 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
Methods in com.vaadin.flow.signals with parameters of type SerializableConsumerModifier and TypeMethodDescriptionstatic <C extends Component>
RegistrationSignal.effect(C owner, SerializableConsumer<EffectContext> effectFunction) Creates a context-aware component-scoped signal effect. -
Uses of SerializableConsumer in com.vaadin.flow.signals.impl
Constructors in com.vaadin.flow.signals.impl with parameters of type SerializableConsumerModifierConstructorDescriptionEffect(SerializableConsumer<EffectContext> action) Creates a context-aware signal effect with the given action and the default dispatcher.Effect(SerializableConsumer<EffectContext> action, SerializableExecutor dispatcher) Creates a context-aware signal effect with the given action and a custom dispatcher. -
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.