| Package | Description |
|---|---|
| org.vaadin.miki.superfields.object | |
| org.vaadin.miki.superfields.object.builder | |
| org.vaadin.miki.superfields.util.factory |
| Modifier and Type | Field and Description |
|---|---|
static com.vaadin.flow.function.SerializableSupplier<PropertyComponentBuilder> |
ObjectField.DEFAULT_COMPONENT_BUILDER |
| Modifier and Type | Method and Description |
|---|---|
PropertyComponentBuilder |
ObjectField.getPropertyComponentBuilder()
Returns the current
PropertyComponentBuilder. |
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectField.setPropertyComponentBuilder(PropertyComponentBuilder builder)
Sets the new
PropertyComponentBuilder. |
ObjectField<T> |
ObjectField.withPropertyComponentBuilder(PropertyComponentBuilder builder)
Chains
ObjectField.setPropertyComponentBuilder(PropertyComponentBuilder) and returns itself. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimplePropertyComponentBuilder
Reference implementation of
PropertyComponentBuilder. |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyComponentBuilder |
ObjectFieldFactory.buildAndConfigureComponentBuilder()
Builds a
SimplePropertyComponentBuilder and configures it for building most default components:
properties marked with MetadataProperties.SHOW_AS_COMPONENT_METADATA_PROPERTY as requested
boolean properties as SuperCheckbox
integer properties as SuperIntegerField
long properties as SuperLongField
double properties as SuperDoubleField
BigDecimal properties as SuperBigDecimalField
LocalDate properties as SuperDatePicker
LocalDateTime properties as SuperDateTimePicker
String properties as either SuperTextField or SuperTextArea (depending on MetadataProperties.MULTILINE_METADATA_PROPERTY)
registered collection (lists and sets) properties as CollectionField
map properties as MapField
ObjectField using this factory as default (that falls back to LabelField)
|
| Modifier and Type | Method and Description |
|---|---|
protected <T,C extends Collection<T>> |
ObjectFieldFactory.buildCollectionField(Property<?,T> elementProperty,
Class<? extends Collection<?>> collectionType,
PropertyComponentBuilder callbackFactory)
Builds a collection field.
|
protected <K,V> MapField<K,V> |
ObjectFieldFactory.buildMapField(Property<?,K> keyProperty,
Property<?,V> valueProperty,
PropertyComponentBuilder callbackFactory)
Builds a map field.
|
Copyright © 2024 Miki. All rights reserved.