Uses of Interface
com.vaadin.flow.function.SerializableConsumer
-
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 TypeInterfaceDescriptioninterface
Defines when to execute the connection callback
Methods 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 of
CollaborationMessagePersister
from 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.
-
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.combobox
Methods in com.vaadin.flow.component.combobox with parameters of type SerializableConsumerModifier and TypeMethodDescriptionprotected void
ComboBoxBase.runBeforeClientResponse
(SerializableConsumer<UI> command) Helper for running a command in the before client response hook
Constructors in com.vaadin.flow.component.combobox with parameters of type SerializableConsumerModifierConstructorDescriptionComboBoxDataCommunicator
(ComboBoxBase<?, TItem, ?> comboBox, DataGenerator<TItem> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, boolean fetchEnabled) -
Uses of SerializableConsumer in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal with parameters of type SerializableConsumerModifier and TypeMethodDescriptionvoid
PendingJavaScriptInvocation.then
(SerializableConsumer<elemental.json.JsonValue> 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 TypeMethodDescriptionvoid
Page.fetchCurrentURL
(SerializableConsumer<URL> callback) Retrieves the current url from the browser.
void
Page.fetchPageDirection
(SerializableConsumer<Direction> callback) Retrieves
document.dir
of the current UI from the browser and passes it to thecallback
parameter.default void
PendingJavaScriptResult.then
(SerializableConsumer<elemental.json.JsonValue> resultHandler) Adds an untyped handler that will be run for a successful execution.
void
PendingJavaScriptResult.then
(SerializableConsumer<elemental.json.JsonValue> 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> void
PendingJavaScriptResult.then
(Class<T> targetType, SerializableConsumer<T> resultHandler) Adds a typed handler that will be run for a successful execution.
default <T> void
PendingJavaScriptResult.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.
-
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> DomListenerRegistration
ReactAdapterComponent.addStateChangeListener
(String stateName, com.fasterxml.jackson.core.type.TypeReference<T> typeReference, SerializableConsumer<T> listener) Adds the specified listener for the state change event in the React adapter.
protected <T> DomListenerRegistration
ReactAdapterComponent.addStateChangeListener
(String stateName, Class<T> typeClass, SerializableConsumer<T> listener) Adds the specified listener for the state change event in the React adapter.
-
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.virtuallist.paging
Constructors in com.vaadin.flow.component.virtuallist.paging with parameters of type SerializableConsumerModifierConstructorDescriptionPagelessDataCommunicator
(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode) -
Uses of SerializableConsumer in com.vaadin.flow.data.binder
Methods in com.vaadin.flow.data.binder with parameters of type SerializableConsumerModifier and TypeMethodDescriptionprotected <T> Registration
Binder.addListener
(Class<T> eventType, SerializableConsumer<T> method) Adds a listener to the binder.
void
Result.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 void
Result.ifError
(SerializableConsumer<String> consumer) Applies the
consumer
if result is an error.default void
Result.ifOk
(SerializableConsumer<R> consumer) Applies the
consumer
if result is not an error.Constructors in com.vaadin.flow.data.binder with parameters of type SerializableConsumerModifierConstructorDescriptionReadOnlyHasValue
(SerializableConsumer<V> valueProcessor) Creates new
ReadOnlyHasValue
withnull
as an empty value.ReadOnlyHasValue
(SerializableConsumer<V> valueProcessor, V emptyValue) Creates new
ReadOnlyHasValue
-
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> Registration
AbstractDataProvider.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<elemental.json.JsonArray> dataUpdater, StateNode stateNode) Creates a new instance.
DataCommunicator
(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> 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) Set the current hierarchical data provider for this communicator.
<F> SerializableConsumer<F>
HierarchicalDataCommunicator.setDataProvider
(HierarchicalDataProvider<T, F> dataProvider, F initialFilter) Set the current hierarchical data provider for this communicator.
Constructors in com.vaadin.flow.data.provider.hierarchy with parameters of type SerializableConsumerModifierConstructorDescriptionHierarchicalDataCommunicator
(CompositeDataGenerator<T> dataGenerator, HierarchicalArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, SerializableSupplier<ValueProvider<T, String>> uniqueKeyProviderSupplier) Construct a new hierarchical data communicator backed by a
TreeDataProvider
. -
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.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.
void
StateNode.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 with parameters of type SerializableConsumerModifier and TypeMethodDescriptionReturnChannelMap.registerChannel
(SerializableConsumer<elemental.json.JsonArray> handler) Registers a new channel based on a callback that receives the provided arguments when a message is passed to the channel.