BT - bean typepublic class NestedPropertyDescriptor<BT> extends Object implements VaadinPropertyDescriptor<BT>
| Constructor and Description |
|---|
NestedPropertyDescriptor(String name,
Class<BT> beanType)
Creates a property descriptor that can create MethodProperty instances to
access the underlying bean property.
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
createProperty(BT bean)
Creates a new
Property instance for this property for a bean. |
String |
getName()
Returns the name of the property.
|
Class<?> |
getPropertyType()
Returns the type of the property.
|
public NestedPropertyDescriptor(String name, Class<BT> beanType) throws IllegalArgumentException
name - of the property in a dotted path format, e.g. "address.street"beanType - type (class) of the top-level beanIllegalArgumentException - if the property name is invalidpublic String getName()
VaadinPropertyDescriptorgetName in interface VaadinPropertyDescriptor<BT>public Class<?> getPropertyType()
VaadinPropertyDescriptorgetPropertyType in interface VaadinPropertyDescriptor<BT>public Property<?> createProperty(BT bean)
VaadinPropertyDescriptorProperty instance for this property for a bean.createProperty in interface VaadinPropertyDescriptor<BT>Copyright © 2023 Vaadin Ltd. All rights reserved.