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)
Sets a CallbackDataProvider using the given fetch items callback and a
size callback.
|
<C> void |
ComboBox.setDataProvider(DataProvider<T,C> dataProvider,
SerializableFunction<String,C> filterConverter)
Sets the data provider and filter converter for this listing.
|
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)
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)
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 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.
|
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 |
---|
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.
|
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.
|
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.
|
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 | 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 . |
Copyright © 2019. All rights reserved.