Modifier and Type | Method and Description |
---|---|
static CollaborationMessagePersister |
CollaborationMessagePersister.fromCallbacks(SerializableFunction<CollaborationMessagePersister.FetchQuery,Stream<CollaborationMessage>> fetchCallback,
SerializableConsumer<CollaborationMessagePersister.PersistRequest> persistCallback)
Creates an instance of
CollaborationMessagePersister from the
provided callbacks. |
TopicConnectionRegistration |
CollaborationEngine.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.
|
TopicConnectionRegistration |
CollaborationEngine.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.
|
<T> void |
CollaborationBinder.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.
|
<T> void |
CollaborationBinder.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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ItemLabelGenerator<T>
ItemLabelGenerator can be used to customize the string shown to the
user for an item. |
Constructor and 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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
DataProviderSeries.setClose(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
close values from the
bean provided by the data provider. |
void |
DataProviderSeries.setHigh(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
high values from the
bean provided by the data provider. |
void |
DataProviderSeries.setLow(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
low values from the
bean provided by the data provider. |
void |
DataProviderSeries.setOpen(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
open values from the
bean provided by the data provider. |
void |
DataProviderSeries.setPointName(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
name values from the
bean provided by the data provider. |
void |
DataProviderSeries.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.
|
void |
DataProviderSeries.setX(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
x values from the bean
provided by the data provider. |
void |
DataProviderSeries.setY(SerializableFunction<T,Object> callBack)
Sets the function used for retrieving
y values from the bean
provided by the data provider. |
Constructor and Description |
---|
DataProviderSeries(DataProvider<T,?> dataProvider,
SerializableFunction<T,Object> callBack)
Creates a new series using data from the given data provider and y
values.
|
Constructor and Description |
---|
GeneratedVaadinCheckbox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinCheckbox component with the given
arguments.
|
GeneratedVaadinCheckbox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinCheckbox component with the given
arguments.
|
GeneratedVaadinCheckboxGroup(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinCheckboxGroup component with the given
arguments.
|
GeneratedVaadinCheckboxGroup(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinCheckboxGroup component with the given
arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
ComboBox.setDataProvider(ComboBox.FetchItemsCallback<T> fetchItems,
SerializableFunction<String,Integer> sizeCallback)
Deprecated.
use instead
ComboBox.setItems(CallbackDataProvider.FetchCallback, CallbackDataProvider.CountCallback)
which provide access to ComboBoxLazyDataView |
<C> void |
ComboBox.setDataProvider(DataProvider<T,C> dataProvider,
SerializableFunction<String,C> filterConverter)
Deprecated.
use instead one of the
setItems methods which provide
access to either ComboBoxListDataView or
ComboBoxLazyDataView |
ComboBoxDataView<T> |
ComboBox.setItems(InMemoryDataProvider<T> inMemoryDataProvider,
SerializableFunction<String,SerializablePredicate<T>> 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<T> |
ComboBox.setItemsWithFilterConverter(CallbackDataProvider.FetchCallback<T,C> fetchCallback,
CallbackDataProvider.CountCallback<T,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<T> |
ComboBox.setItemsWithFilterConverter(CallbackDataProvider.FetchCallback<T,C> fetchCallback,
SerializableFunction<String,C> filterConverter)
Supply items lazily with a callback from a backend, using custom filter
type.
|
Constructor and Description |
---|
GeneratedVaadinComboBox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinComboBox component with the given
arguments.
|
GeneratedVaadinComboBox(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinComboBox component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinDatePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinDatePicker component with the given
arguments.
|
GeneratedVaadinDatePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinDatePicker component with the given
arguments.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SortOrderProvider
Generates the sort orders when rows are sorted by a column.
|
Modifier and Type | Method and Description |
---|---|
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.getClassNameGenerator()
Gets the function that is used for generating CSS class names for
cells in this column.
|
Modifier and Type | Method and Description |
---|---|
void |
Grid.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.
|
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.
|
void |
Grid.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.
|
Modifier and Type | Method and Description |
---|---|
void |
EditorRenderer.setComponentFunction(SerializableFunction<T,? extends Component> componentFunction)
Sets the function that creates components to be used as editors for the
column.
|
Modifier and Type | Method and Description |
---|---|
<E extends Enum<E>> |
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.
|
Constructor and Description |
---|
DependencyTreeCache(SerializableFunction<T,Collection<T>> dependencyParser)
Creates a dependency cache with the given dependency parser.
|
Constructor and Description |
---|
GeneratedVaadinRadioGroup(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinRadioGroup component with the given
arguments.
|
GeneratedVaadinRadioGroup(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinRadioGroup component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinRichTextEditor(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinRichTextEditor component with the given
arguments.
|
GeneratedVaadinRichTextEditor(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinRichTextEditor component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinSelect(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinSelect component with the given
arguments.
|
GeneratedVaadinSelect(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinSelect component with the given
arguments.
|
Constructor and 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)
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.
|
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)
Constructs a new GeneratedVaadinEmailField component with the given
arguments.
|
GeneratedVaadinEmailField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinEmailField component with the given
arguments.
|
GeneratedVaadinNumberField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinNumberField component with the given
arguments.
|
GeneratedVaadinNumberField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinNumberField component with the given
arguments.
|
GeneratedVaadinNumberField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinNumberField component with the given
arguments.
|
GeneratedVaadinNumberField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinNumberField component with the given
arguments.
|
GeneratedVaadinPasswordField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinPasswordField component with the given
arguments.
|
GeneratedVaadinPasswordField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinPasswordField component with the given
arguments.
|
GeneratedVaadinTextArea(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinTextArea component with the given
arguments.
|
GeneratedVaadinTextArea(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinTextArea component with the given
arguments.
|
GeneratedVaadinTextField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinTextField component with the given
arguments.
|
GeneratedVaadinTextField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinTextField component with the given
arguments.
|
GeneratedVaadinTextField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinTextField component with the given
arguments.
|
GeneratedVaadinTextField(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinTextField component with the given
arguments.
|
Constructor and Description |
---|
GeneratedVaadinTimePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinTimePicker component with the given
arguments.
|
GeneratedVaadinTimePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation)
Constructs a new GeneratedVaadinTimePicker component with the given
arguments.
|
GeneratedVaadinTimePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinTimePicker component with the given
arguments.
|
GeneratedVaadinTimePicker(T initialValue,
T defaultValue,
Class<P> elementPropertyType,
SerializableFunction<P,T> presentationToModel,
SerializableFunction<T,P> modelToPresentation,
boolean isInitialValueOptional)
Constructs a new GeneratedVaadinTimePicker component with the given
arguments.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ErrorMessageProvider
Provider interface for generating localizable error messages using
ValueContext . |
Modifier and Type | Method and 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> |
Result.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> void |
HasFilterableDataProvider.setDataProvider(DataProvider<T,C> dataProvider,
SerializableFunction<F,C> filterConverter)
Sets the data provider and filter converter for this listing.
|
default <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.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.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.
|
default <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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
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,Result<M>> toModel,
SerializableFunction<M,P> toPresentation)
Constructs a converter from a filter and a function.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IdentifierProvider<T>
A callback interface that is used to provide the identifier of an item.
|
Modifier and Type | Method and Description |
---|---|
static <T,C,F> F |
FilterUtils.convertFilter(SerializableFunction<C,F> filterConverter,
Query<T,C> query)
Gets the filter converted from a query filter by the
filterConverter . |
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.
|
Modifier and Type | Method and Description |
---|---|
default <C> HierarchicalDataProvider<T,C> |
HierarchicalDataProvider.withConvertedFilter(SerializableFunction<C,F> filterConverter) |
<C> HierarchicalDataProvider<T,C> |
AbstractHierarchicalDataProvider.withConvertedFilter(SerializableFunction<C,F> filterConverter) |
Constructor and 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.
|
Constructor and Description |
---|
ComponentRenderer(SerializableFunction<SOURCE,COMPONENT> componentFunction)
Creates a new ComponentRenderer that uses the componentFunction to
generate new
Component instances. |
ComponentRenderer(SerializableFunction<SOURCE,COMPONENT> componentFunction,
SerializableBiFunction<Component,SOURCE,Component> componentUpdateFunction)
|
IconRenderer(SerializableFunction<ITEM,? extends Component> iconGenerator)
Creates a new renderer instance using the default
ItemLabelGenerator : String::valueOf and the provided
iconGenerator . |
IconRenderer(SerializableFunction<ITEM,? extends Component> iconGenerator,
ItemLabelGenerator<ITEM> itemLabelGenerator)
Creates a new renderer instance using the provided
iconGenerator
and itemLabelGenerator . |
Modifier and Type | Interface and Description |
---|---|
interface |
ValueProvider<SOURCE,TARGET>
A callback interface for providing values from a given source.
|
Modifier and Type | Method and Description |
---|---|
static <T> SerializableFunction<T,T> |
SerializableFunction.identity()
Returns a function that always returns its input argument.
|
Constructor and Description |
---|
ReflectionCache(SerializableFunction<Class<C>,T> valueProvider)
Creates a new reflection cache with the given value provider.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PushConnectionFactory
Factory that produces instances of
PushConnection . |
Modifier and Type | Class and Description |
---|---|
class |
WebComponentExporterTagExtractor
Retrieves web component tag from a
WebComponentExporterFactory object. |
Copyright © 2021. All rights reserved.