Uses of Interface
com.vaadin.flow.function.SerializableFunction
- 
- 
Uses of SerializableFunction in com.vaadin.collaborationengine
Methods in com.vaadin.collaborationengine with parameters of type SerializableFunction 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.protected voidAbstractCollaborationManager. openTopicConnection(ConnectionContext context, SerializableFunction<TopicConnection,Registration> connectionActivationCallback)Opens a connection to the topic of this manager using the provided context and activation callback.TopicConnectionRegistrationCollaborationEngine. openTopicConnection(ConnectionContext context, String topicId, UserInfo localUser, SerializableFunction<TopicConnection,Registration> connectionActivationCallback)Opens a connection to the collaboration topic with the provided id based on a generic context definition.TopicConnectionRegistrationCollaborationEngine. openTopicConnection(Component component, String topicId, UserInfo localUser, SerializableFunction<TopicConnection,Registration> connectionActivationCallback)Opens a connection to the collaboration topic with the provided id based on a component instance.<T> voidCollaborationBinder. setSerializer(Class<T> type, SerializableFunction<T,String> serializer, SerializableFunction<String,T> deserializer)Sets a custom serializer and deserializer to use for a specific value type. - 
Uses of SerializableFunction in com.vaadin.flow.component
Subinterfaces of SerializableFunction in com.vaadin.flow.component Modifier and Type Interface Description interfaceItemLabelGenerator<T>ItemLabelGeneratorcan be used to customize the string shown to the user for an item.Constructors in com.vaadin.flow.component with parameters of type SerializableFunction Constructor Description AbstractSinglePropertyField(String propertyName, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Creates a new field that uses a property value with the given stateless converters for producing a model value. - 
Uses of SerializableFunction in com.vaadin.flow.component.charts.model
Methods in com.vaadin.flow.component.charts.model with parameters of type SerializableFunction Modifier and Type Method Description voidDataProviderSeries. setClose(SerializableFunction<T,Object> callBack)Sets the function used for retrievingclosevalues from the bean provided by the data provider.voidDataProviderSeries. setHigh(SerializableFunction<T,Object> callBack)Sets the function used for retrievinghighvalues from the bean provided by the data provider.voidDataProviderSeries. setLow(SerializableFunction<T,Object> callBack)Sets the function used for retrievinglowvalues from the bean provided by the data provider.voidDataProviderSeries. setOpen(SerializableFunction<T,Object> callBack)Sets the function used for retrievingopenvalues from the bean provided by the data provider.voidDataProviderSeries. setPointName(SerializableFunction<T,Object> callBack)Sets the function used for retrievingnamevalues from the bean provided by the data provider.voidDataProviderSeries. setProperty(String propertyName, SerializableFunction<T,Object> callBack)Sets the function used for retrieving the value for the given property name from the given data provider.voidDataProviderSeries. setX(SerializableFunction<T,Object> callBack)Sets the function used for retrievingxvalues from the bean provided by the data provider.voidDataProviderSeries. setY(SerializableFunction<T,Object> callBack)Sets the function used for retrievingyvalues from the bean provided by the data provider.Constructors in com.vaadin.flow.component.charts.model with parameters of type SerializableFunction Constructor Description DataProviderSeries(DataProvider<T,?> dataProvider, SerializableFunction<T,Object> callBack)Creates a new series using data from the given data provider and y values. - 
Uses of SerializableFunction in com.vaadin.flow.component.checkbox
Constructors in com.vaadin.flow.component.checkbox with parameters of type SerializableFunction Constructor Description GeneratedVaadinCheckbox(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinCheckboxGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.component.combobox
Methods in com.vaadin.flow.component.combobox with parameters of type SerializableFunction Modifier and Type Method Description voidComboBoxBase. setDataProvider(ComboBox.FetchItemsCallback<TItem> fetchItems, SerializableFunction<String,Integer> sizeCallback)Deprecated.use insteadComboBoxBase.setItems(CallbackDataProvider.FetchCallback, CallbackDataProvider.CountCallback)which provide access toComboBoxLazyDataView<C> voidComboBoxBase. setDataProvider(DataProvider<TItem,C> dataProvider, SerializableFunction<String,C> filterConverter)Deprecated.use instead one of thesetItemsmethods which provide access to eitherComboBoxListDataVieworComboBoxLazyDataViewComboBoxDataView<TItem>ComboBoxBase. setItems(InMemoryDataProvider<TItem> inMemoryDataProvider, SerializableFunction<String,SerializablePredicate<TItem>> filterConverter)Sets an in-memory data provider for the combo box to use, taking into account both in-memory filtering from data provider and combo box's text filter.<C> ComboBoxLazyDataView<TItem>ComboBoxBase. setItemsWithFilterConverter(CallbackDataProvider.FetchCallback<TItem,C> fetchCallback, CallbackDataProvider.CountCallback<TItem,C> countCallback, SerializableFunction<String,C> filterConverter)Supply items lazily with callbacks: the first one fetches the items based on offset, limit and an optional filter, the second provides the exact count of items in the backend.<C> ComboBoxLazyDataView<TItem>ComboBoxBase. setItemsWithFilterConverter(CallbackDataProvider.FetchCallback<TItem,C> fetchCallback, SerializableFunction<String,C> filterConverter)Supply items lazily with a callback from a backend, using custom filter type. - 
Uses of SerializableFunction in com.vaadin.flow.component.datepicker
Constructors in com.vaadin.flow.component.datepicker with parameters of type SerializableFunction Constructor Description GeneratedVaadinDatePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.component.grid
Subinterfaces of SerializableFunction in com.vaadin.flow.component.grid Modifier and Type Interface Description interfaceSortOrderProviderGenerates the sort orders when rows are sorted by a column.Methods in com.vaadin.flow.component.grid that return SerializableFunction Modifier and Type Method Description SerializableFunction<T,String>Grid.Column. getClassNameGenerator()Gets the function that is used for generating CSS class names for cells in this column.SerializableFunction<T,String>Grid. getClassNameGenerator()Gets the function that is used for generating CSS class names for rows in this grid.SerializableFunction<T,String>Grid.Column. getTooltipGenerator()Methods in com.vaadin.flow.component.grid with parameters of type SerializableFunction Modifier and Type Method Description Grid.Column<T>Grid.Column. setClassNameGenerator(SerializableFunction<T,String> classNameGenerator)Sets the function that is used for generating CSS class names for cells in this column.voidGrid. setClassNameGenerator(SerializableFunction<T,String> classNameGenerator)Sets the function that is used for generating CSS class names for all the cells in the rows in this grid.voidGrid. setDragDataGenerator(String type, SerializableFunction<T,String> dragDataGenerator)Sets a generator function for customizing drag data.Grid.Column<T>Grid.Column. setEditorComponent(SerializableFunction<T,? extends Component> componentCallback)Sets a function that returns the editor component to be used for an specific item in the editor row.Grid.Column<T>Grid.Column. setTooltipGenerator(SerializableFunction<T,String> tooltipGenerator)Sets the function that is used for generating tooltip text for cells in this column. - 
Uses of SerializableFunction in com.vaadin.flow.component.grid.editor
Methods in com.vaadin.flow.component.grid.editor with parameters of type SerializableFunction Modifier and Type Method Description voidEditorRenderer. setComponentFunction(SerializableFunction<T,? extends Component> componentFunction)Sets the function that creates components to be used as editors for the column. - 
Uses of SerializableFunction in com.vaadin.flow.component.gridpro
Methods in com.vaadin.flow.component.gridpro with parameters of type SerializableFunction Modifier and Type Method Description <E extends Enum<E>>
Grid.Column<T>EditColumnConfigurator. select(ItemUpdater<T,E> itemUpdater, Class<E> enumType, SerializableFunction<E,String> getStringRepresentation)Configures the column to have a select editor with the given item updater, enum type and string representation callback. - 
Uses of SerializableFunction in com.vaadin.flow.component.internal
Constructors in com.vaadin.flow.component.internal with parameters of type SerializableFunction Constructor Description DependencyTreeCache(SerializableFunction<T,Collection<T>> dependencyParser)Creates a dependency cache with the given dependency parser. - 
Uses of SerializableFunction in com.vaadin.flow.component.radiobutton
Constructors in com.vaadin.flow.component.radiobutton with parameters of type SerializableFunction Constructor Description GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.component.richtexteditor
Constructors in com.vaadin.flow.component.richtexteditor with parameters of type SerializableFunction Constructor Description GeneratedVaadinRichTextEditor(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.component.select.generated
Constructors in com.vaadin.flow.component.select.generated with parameters of type SerializableFunction Constructor Description GeneratedVaadinSelect(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.component.textfield
Constructors in com.vaadin.flow.component.textfield with parameters of type SerializableFunction Constructor Description AbstractNumberField(SerializableFunction<String,T> parser, SerializableFunction<T,String> formatter, double absoluteMin, double absoluteMax)Sets up the common logic for number fields.AbstractNumberField(SerializableFunction<String,T> parser, SerializableFunction<T,String> formatter, double absoluteMin, double absoluteMax, boolean isInitialValueOptional)Sets up the common logic for number fields.GeneratedVaadinEmailField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinNumberField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinPasswordField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinTextArea(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinTextField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinTextField(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.component.timepicker
Constructors in com.vaadin.flow.component.timepicker with parameters of type SerializableFunction Constructor Description GeneratedVaadinTimePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinTimePicker(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation, boolean isInitialValueOptional)Deprecated.since v23.3, generated classes will be removed in v24. - 
Uses of SerializableFunction in com.vaadin.flow.data.binder
Subinterfaces of SerializableFunction in com.vaadin.flow.data.binder Modifier and Type Interface Description interfaceErrorMessageProviderProvider interface for generating localizable error messages usingValueContext.Methods in com.vaadin.flow.data.binder with parameters of type SerializableFunction Modifier and Type Method Description <S> Result<S>Result. flatMap(SerializableFunction<R,Result<S>> mapper)If this Result has a value, applies the given Result-returning function to the value.<X extends Throwable>
RResult. getOrThrow(SerializableFunction<String,? extends X> exceptionProvider)Return the value, if the result denotes success, otherwise throw an exception to be created by the provided supplier.default <S> Result<S>Result. map(SerializableFunction<R,S> mapper)If this Result has a value, returns a Result of applying the given function to the value.static <R> Result<R>Result. of(SerializableSupplier<R> supplier, SerializableFunction<Exception,String> onError)Returns a Result representing the result of invoking the given supplier.<C> voidHasFilterableDataProvider. setDataProvider(DataProvider<T,C> dataProvider, SerializableFunction<F,C> filterConverter)Sets the data provider and filter converter for this listing.default <NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET>Binder.BindingBuilder. withConverter(SerializableFunction<TARGET,NEWTARGET> toModel, SerializableFunction<NEWTARGET,TARGET> toPresentation)Maps the binding to another data type using the mapping functions and a possible exception as the error message.default <NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET>Binder.BindingBuilder. withConverter(SerializableFunction<TARGET,NEWTARGET> toModel, SerializableFunction<NEWTARGET,TARGET> toPresentation, String errorMessage)Maps the binding to another data type using the mapping functions and the given error error message if a value cannot be converted to the new target type. - 
Uses of SerializableFunction in com.vaadin.flow.data.converter
Methods in com.vaadin.flow.data.converter with parameters of type SerializableFunction Modifier and Type Method Description static <P,M>
Converter<P,M>Converter. from(SerializableFunction<P,Result<M>> toModel, SerializableFunction<M,P> toPresentation)Constructs a converter from a filter and a function.static <P,M>
Converter<P,M>Converter. from(SerializableFunction<P,M> toModel, SerializableFunction<M,P> toPresentation, SerializableFunction<Exception,String> onError)Constructs a converter from two functions. - 
Uses of SerializableFunction in com.vaadin.flow.data.provider
Subinterfaces of SerializableFunction in com.vaadin.flow.data.provider Modifier and Type Interface Description interfaceIdentifierProvider<T>A callback interface that is used to provide the identifier of an item.Methods in com.vaadin.flow.data.provider with parameters of type SerializableFunction Modifier and Type Method Description static <T,C,F>
FFilterUtils. convertFilter(SerializableFunction<C,F> filterConverter, Query<T,C> query)Gets the filter converted from a query filter by thefilterConverter.default <C> DataProvider<T,C>DataProvider. withConvertedFilter(SerializableFunction<C,F> filterConverter)Wraps this data provider to create a data provider that uses a different filter type. - 
Uses of SerializableFunction in com.vaadin.flow.data.provider.hierarchy
Methods in com.vaadin.flow.data.provider.hierarchy with parameters of type SerializableFunction Modifier and Type Method Description <C> HierarchicalDataProvider<T,C>AbstractHierarchicalDataProvider. withConvertedFilter(SerializableFunction<C,F> filterConverter)default <C> HierarchicalDataProvider<T,C>HierarchicalDataProvider. withConvertedFilter(SerializableFunction<C,F> filterConverter)Constructors in com.vaadin.flow.data.provider.hierarchy with parameters of type SerializableFunction Constructor Description HierarchicalCommunicationController(String parentKey, DataKeyMapper<T> keyMapper, HierarchyMapper<T,?> mapper, DataGenerator<T> dataGenerator, SerializableFunction<Integer,HierarchicalArrayUpdater.HierarchicalUpdate> startUpdate, SerializableBiFunction<String,Range,Stream<T>> fetchItems)Constructs communication controller with support for hierarchical data structure. - 
Uses of SerializableFunction in com.vaadin.flow.data.renderer
Constructors in com.vaadin.flow.data.renderer with parameters of type SerializableFunction Constructor Description ComponentRenderer(SerializableFunction<SOURCE,COMPONENT> componentFunction)Creates a new ComponentRenderer that uses the componentFunction to generate newComponentinstances.ComponentRenderer(SerializableFunction<SOURCE,COMPONENT> componentFunction, SerializableBiFunction<Component,SOURCE,Component> componentUpdateFunction)IconRenderer(SerializableFunction<ITEM,? extends Component> iconGenerator)Creates a new renderer instance using the defaultItemLabelGenerator:String::valueOfand the providediconGenerator.IconRenderer(SerializableFunction<ITEM,? extends Component> iconGenerator, ItemLabelGenerator<ITEM> itemLabelGenerator)Creates a new renderer instance using the providediconGeneratoranditemLabelGenerator. - 
Uses of SerializableFunction in com.vaadin.flow.function
Subinterfaces of SerializableFunction in com.vaadin.flow.function Modifier and Type Interface Description interfaceValueProvider<SOURCE,TARGET>A callback interface for providing values from a given source.Methods in com.vaadin.flow.function that return SerializableFunction Modifier and Type Method Description static <T> SerializableFunction<T,T>SerializableFunction. identity()Returns a function that always returns its input argument. - 
Uses of SerializableFunction in com.vaadin.flow.internal
Constructors in com.vaadin.flow.internal with parameters of type SerializableFunction Constructor Description ReflectionCache(SerializableFunction<Class<C>,T> valueProvider)Creates a new reflection cache with the given value provider. - 
Uses of SerializableFunction in com.vaadin.flow.server.communication
Subinterfaces of SerializableFunction in com.vaadin.flow.server.communication Modifier and Type Interface Description interfacePushConnectionFactoryFactory that produces instances ofPushConnection. - 
Uses of SerializableFunction in com.vaadin.flow.server.webcomponent
Classes in com.vaadin.flow.server.webcomponent that implement SerializableFunction Modifier and Type Class Description classWebComponentExporterTagExtractorRetrieves web component tag from aWebComponentExporterFactoryobject. 
 -