Uses of Interface
com.vaadin.flow.function.SerializableConsumer
Packages that use SerializableConsumer
Package
Description
-
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. -
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 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<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 TypeMethodDescriptionvoidPendingJavaScriptInvocation.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 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.default voidPendingJavaScriptResult.then(SerializableConsumer<elemental.json.JsonValue> resultHandler) Adds an untyped handler that will be run for a successful execution.voidPendingJavaScriptResult.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> 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. -
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, 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> DomListenerRegistrationReactAdapterComponent.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> 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<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 aTreeDataProvider. -
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.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 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. -
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.