| Package | Description |
|---|---|
| com.vaadin.data | |
| com.vaadin.data.provider | |
| com.vaadin.server | |
| com.vaadin.ui |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RequiredFieldConfigurator
This interface represents a predicate which returns
true if bound
field should be configured to have required indicator via
HasValue.setRequiredIndicatorVisible(boolean). |
| Modifier and Type | Method and Description |
|---|---|
static <T> Validator<T> |
Validator.from(SerializablePredicate<T> guard,
ErrorMessageProvider errorMessageProvider)
Builds a validator out of a conditional function and an error message
provider.
|
static <T> Validator<T> |
Validator.from(SerializablePredicate<T> guard,
ErrorMessageProvider errorMessageProvider,
ErrorLevel errorLevel)
Builds a validator out of a conditional function and an error message
provider.
|
static <T> Validator<T> |
Validator.from(SerializablePredicate<T> guard,
String errorMessage)
Builds a validator out of a conditional function and an error message.
|
static <T> Validator<T> |
Validator.from(SerializablePredicate<T> guard,
String errorMessage,
ErrorLevel errorLevel)
Builds a validator out of a conditional function and an error message.
|
void |
BinderValidationStatus.notifyBindingValidationStatusHandlers(SerializablePredicate<BindingValidationStatus<?>> filter)
Notifies validation status handlers for bindings that pass given filter.
|
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
ErrorMessageProvider errorMessageProvider)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, ErrorMessageProvider)
factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
ErrorMessageProvider errorMessageProvider,
ErrorLevel errorLevel)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, ErrorMessageProvider, ErrorLevel)
factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
String message)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, String) factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
String message,
ErrorLevel errorLevel)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, String, ErrorLevel)
factory method. |
Binder<BEAN> |
Binder.withValidator(SerializablePredicate<BEAN> predicate,
ErrorMessageProvider errorMessageProvider)
A convenience method to add a validator to this binder using the
Validator.from(SerializablePredicate, ErrorMessageProvider)
factory method. |
Binder<BEAN> |
Binder.withValidator(SerializablePredicate<BEAN> predicate,
String message)
A convenience method to add a validator to this binder using the
Validator.from(SerializablePredicate, String) factory method. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> SerializablePredicate<T> |
InMemoryDataProviderHelpers.createEqualsFilter(ValueProvider<T,V> valueProvider,
V requiredValue)
Creates a predicate that compares equality of the given required value to
the value the given value provider obtains.
|
static <T,V> SerializablePredicate<T> |
InMemoryDataProviderHelpers.createValueProviderFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Creates a new predicate from the given predicate and value provider.
|
SerializablePredicate<T> |
TreeDataProvider.getFilter() |
SerializablePredicate<T> |
ListDataProvider.getFilter() |
SerializablePredicate<T> |
InMemoryDataProvider.getFilter()
Gets the current filter of this data provider.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
InMemoryDataProvider.addFilter(SerializablePredicate<T> filter)
Adds a filter to be applied to all queries.
|
default <V> void |
InMemoryDataProvider.addFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Adds a filter for an item property.
|
static <T,V> SerializablePredicate<T> |
InMemoryDataProviderHelpers.createValueProviderFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Creates a new predicate from the given predicate and value provider.
|
void |
TreeDataProvider.setFilter(SerializablePredicate<T> filter) |
void |
ListDataProvider.setFilter(SerializablePredicate<T> filter) |
void |
InMemoryDataProvider.setFilter(SerializablePredicate<T> filter)
Sets a filter to be applied to all queries.
|
default <V> void |
InMemoryDataProvider.setFilter(ValueProvider<T,V> valueProvider,
SerializablePredicate<V> valueFilter)
Sets a filter for an item property.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<T> |
ListDataProvider.fetch(Query<T,SerializablePredicate<T>> query) |
Stream<T> |
TreeDataProvider.fetchChildren(HierarchicalQuery<T,SerializablePredicate<T>> query) |
int |
TreeDataProvider.getChildCount(HierarchicalQuery<T,SerializablePredicate<T>> query) |
int |
ListDataProvider.size(Query<T,SerializablePredicate<T>> query) |
<C> DataProvider<T,C> |
TreeDataProvider.withConvertedFilter(SerializableFunction<C,SerializablePredicate<T>> filterConverter) |
| Modifier and Type | Method and Description |
|---|---|
default SerializablePredicate<T> |
SerializablePredicate.and(SerializablePredicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
static <T> SerializablePredicate<T> |
SerializablePredicate.isEqual(Serializable targetRef)
Returns a predicate that tests if two arguments are equal according to
Objects.equals(Object, Object). |
default SerializablePredicate<T> |
SerializablePredicate.negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default SerializablePredicate<T> |
SerializablePredicate.or(SerializablePredicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
| Modifier and Type | Method and Description |
|---|---|
default SerializablePredicate<T> |
SerializablePredicate.and(SerializablePredicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default SerializablePredicate<T> |
SerializablePredicate.or(SerializablePredicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ItemCollapseAllowedProvider<T>
A callback interface for resolving whether client-side collapsing should be
allowed for an item in a listing component that displays hierarchical data,
such as
TreeGrid. |
| Modifier and Type | Method and Description |
|---|---|
SerializablePredicate<T> |
RadioButtonGroup.getItemEnabledProvider()
Returns the item enabled predicate.
|
SerializablePredicate<T> |
CheckBoxGroup.getItemEnabledProvider() |
protected SerializablePredicate<T> |
AbstractMultiSelect.getItemEnabledProvider()
Returns the item enabled provider for this multiselect.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RadioButtonGroup.setItemEnabledProvider(SerializablePredicate<T> itemEnabledProvider)
Sets the item enabled predicate for this radiobutton group.
|
void |
CheckBoxGroup.setItemEnabledProvider(SerializablePredicate<T> itemEnabledProvider) |
protected void |
AbstractMultiSelect.setItemEnabledProvider(SerializablePredicate<T> itemEnabledProvider)
Sets the item enabled predicate for this multiselect.
|
Copyright © 2021 Vaadin Ltd. All rights reserved.