Uses of Interface
com.vaadin.flow.function.SerializableConsumer
-
-
Uses of SerializableConsumer in com.vaadin.collaborationengine
Methods in com.vaadin.collaborationengine with parameters of type SerializableConsumer Modifier and Type Method Description static CollaborationMessagePersisterCollaborationMessagePersister. 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 SerializableConsumer Modifier and Type Method Description <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 SerializableConsumer Modifier and Type Method Description <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.StateTree.ExecutionRegistrationUI. 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 SerializableConsumer Constructor Description CheckboxGroupDataView(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 SerializableConsumer Modifier and Type Method Description protected 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 SerializableConsumer Constructor Description ComboBoxDataCommunicator(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 SerializableConsumer Modifier and Type Method Description voidPendingJavaScriptInvocation. then(SerializableConsumer<elemental.json.JsonValue> successHandler, SerializableConsumer<String> errorHandler)Constructors in com.vaadin.flow.component.internal with parameters of type SerializableConsumer Constructor Description AbstractFieldSupport(C component, T defaultValue, SerializableBiPredicate<T,T> valueEquals, SerializableConsumer<T> setPresentationValue)Creates a new field support. -
Uses of SerializableConsumer in com.vaadin.flow.component.ironlist.paging
Constructors in com.vaadin.flow.component.ironlist.paging with parameters of type SerializableConsumer Constructor Description PagelessDataCommunicator(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode) -
Uses of SerializableConsumer in com.vaadin.flow.component.page
Methods in com.vaadin.flow.component.page with parameters of type SerializableConsumer Modifier and Type Method Description voidPage. fetchCurrentURL(SerializableConsumer<URL> callback)Retrieves the current url from the browser.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 SerializableConsumer Constructor Description RadioButtonGroupDataView(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.select.data
Constructors in com.vaadin.flow.component.select.data with parameters of type SerializableConsumer Constructor Description SelectDataView(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 SerializableConsumer Constructor Description PagelessDataCommunicator(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 SerializableConsumer Modifier and Type Method Description protected <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 SerializableConsumer Constructor Description ReadOnlyHasValue(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 SerializableConsumer Modifier and Type Method Description <F> SerializableConsumer<F>DataCommunicator. setDataProvider(DataProvider<T,F> dataProvider, F initialFilter)Sets the current data provider for this DataCommunicator.<F> SerializableConsumer<DataCommunicator.Filter<F>>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 SerializableConsumer Modifier and Type Method Description protected <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 SerializableConsumer Constructor Description DataCommunicator(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 SerializableConsumer Modifier and Type Method Description <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 SerializableConsumer Constructor Description HierarchicalDataCommunicator(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 that return types with arguments of type SerializableConsumer Modifier and Type Method Description Map<String,SerializableConsumer<SOURCE>>LitRenderer. getEventHandlers()Deprecated.LitRenderer doesn't support getting the event handlers.Map<String,SerializableConsumer<SOURCE>>Renderer. getEventHandlers()Deprecated.since Vaadin 22Methods in com.vaadin.flow.data.renderer with parameters of type SerializableConsumer Modifier and Type Method Description protected voidRenderer. setEventHandler(String handlerName, SerializableConsumer<SOURCE> handler)Deprecated.since Vaadin 22LitRenderer<SOURCE>LitRenderer. withEventHandler(String eventHandlerName, SerializableConsumer<SOURCE> handler)Deprecated.TemplateRenderer<SOURCE>TemplateRenderer. withEventHandler(String handlerName, SerializableConsumer<SOURCE> handler)Deprecated.Sets an event handler for events from elements inside the template.LitRenderer<SOURCE>LitRenderer. 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 SerializableConsumer Modifier and Type Method Description SerializableConsumer<ExecutionContext>StateTree.BeforeClientResponseEntry. getExecution()Methods in com.vaadin.flow.internal with parameters of type SerializableConsumer Modifier and Type Method Description StateTree.ExecutionRegistrationStateTree. 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 SerializableConsumer Modifier and Type Method Description ReturnChannelRegistrationReturnChannelMap. 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.
-