| Package | Description |
|---|---|
| org.vaadin.miki.superfields.collections | |
| org.vaadin.miki.superfields.util |
| Modifier and Type | Method and Description |
|---|---|
<W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,Map.Entry<K,V>>> |
MapField.getCollectionValueComponentProvider() |
<W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
HasCollectionValueComponentProvider.getCollectionValueComponentProvider()
Returns the current provider used to generate components.
|
<W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionField.getCollectionValueComponentProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
MapField.setCollectionValueComponentProvider(CollectionValueComponentProvider<Map.Entry<K,V>,?> provider) |
void |
HasCollectionValueComponentProvider.setCollectionValueComponentProvider(CollectionValueComponentProvider<T,?> provider)
Sets the provider used to generate components for each element of the collection.
|
void |
CollectionField.setCollectionValueComponentProvider(CollectionValueComponentProvider<T,?> collectionValueComponentProvider) |
default SELF |
WithCollectionValueComponentProviderMixin.withCollectionComponentProvider(CollectionValueComponentProvider<T,?> provider)
Chains
HasCollectionValueComponentProvider.setCollectionValueComponentProvider(CollectionValueComponentProvider) and returns itself. |
| Constructor and Description |
|---|
CollectionField(com.vaadin.flow.function.SerializableSupplier<C> emptyCollectionSupplier,
CollectionLayoutProvider<?> collectionLayoutProvider,
CollectionValueComponentProvider<T,?> collectionValueComponentProvider)
Creates new field.
|
CollectionField(com.vaadin.flow.function.SerializableSupplier<C> emptyCollectionSupplier,
CollectionValueComponentProvider<T,?> collectionValueComponentProvider)
Creates new field using
CollectionField.DEFAULT_LAYOUT_PROVIDER as root layout provider. |
MapField(com.vaadin.flow.function.SerializableSupplier<Map<K,V>> emptyMapSupplier,
CollectionLayoutProvider<?> mainLayoutProvider,
CollectionValueComponentProvider<Map.Entry<K,V>,?> entryValueComponentProvider)
Creates a new
MapField using given empty map provider, and layout and entry component providers for the underlying CollectionField. |
| Modifier and Type | Method and Description |
|---|---|
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.columnWithHeaderAndFooterRows(CollectionValueComponentProvider<T,F> inner,
Collection<CollectionComponentProvider<?>> headerComponents,
Collection<CollectionComponentProvider<?>> footerComponents)
A
CollectionValueComponentProvider for a column-based HeaderFooterFieldWrapper where header and footer are row-based FlexLayouts. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T> & com.vaadin.flow.component.HasLabel> |
CollectionComponentProviders.labelledField(Supplier<F> fieldSupplier,
String label)
Returns a
CollectionValueComponentProvider that generates a given field and sets its label. |
static <K,V,C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,K>,W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,V>> |
CollectionComponentProviders.mapEntryField(com.vaadin.flow.function.SerializableSupplier<C> keyComponentSupplier,
com.vaadin.flow.function.SerializableSupplier<W> valueComponentSupplier)
A
CollectionValueComponentProvider that produces a MapEntryField with given key and value suppliers. |
static <K,V,C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasLabel & com.vaadin.flow.component.HasValue<?,K>,W extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasLabel & com.vaadin.flow.component.HasValue<?,V>> |
CollectionComponentProviders.mapEntryField(String keyLabel,
com.vaadin.flow.function.SerializableSupplier<C> keyComponentSupplier,
String valueLabel,
com.vaadin.flow.function.SerializableSupplier<W> valueComponentSupplier)
A
CollectionValueComponentProvider that produces a MapEntryField with given key and value suppliers, but also sets labels to both produced components.. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.row(CollectionValueComponentProvider<T,F> inner,
Collection<CollectionComponentProvider<?>> headerComponents,
Collection<CollectionComponentProvider<?>> footerComponents)
A
CollectionValueComponentProvider that wraps given field with a layout containing header and footer. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.rowWithRemoveButtonFirst(CollectionValueComponentProvider<T,F> inner,
String removeButtonText)
A
CollectionValueComponentProvider that wraps given field with a layout containing a header and footer. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.rowWithRemoveButtonLast(CollectionValueComponentProvider<T,F> inner,
String removeButtonText)
A
CollectionValueComponentProvider that wraps given field with a layout containing a header and footer. |
| Modifier and Type | Method and Description |
|---|---|
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.columnWithHeaderAndFooterRows(CollectionValueComponentProvider<T,F> inner,
Collection<CollectionComponentProvider<?>> headerComponents,
Collection<CollectionComponentProvider<?>> footerComponents)
A
CollectionValueComponentProvider for a column-based HeaderFooterFieldWrapper where header and footer are row-based FlexLayouts. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.row(CollectionValueComponentProvider<T,F> inner,
Collection<CollectionComponentProvider<?>> headerComponents,
Collection<CollectionComponentProvider<?>> footerComponents)
A
CollectionValueComponentProvider that wraps given field with a layout containing header and footer. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.rowWithRemoveButtonFirst(CollectionValueComponentProvider<T,F> inner,
String removeButtonText)
A
CollectionValueComponentProvider that wraps given field with a layout containing a header and footer. |
static <T,F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasValue<?,T>> |
CollectionComponentProviders.rowWithRemoveButtonLast(CollectionValueComponentProvider<T,F> inner,
String removeButtonText)
A
CollectionValueComponentProvider that wraps given field with a layout containing a header and footer. |
Copyright © 2023 Miki. All rights reserved.