com.vaadin.data.util.
Class NestedPropertyDescriptor<BT>
- java.lang.Object
-
- com.vaadin.data.util.NestedPropertyDescriptor<BT>
-
Type Parameters:
BT
- bean typeAll Implemented Interfaces:
public class NestedPropertyDescriptor<BT> extends Object implements VaadinPropertyDescriptor<BT>
Property descriptor that is able to create nested property instances for a bean. The property is specified in the dotted notation, e.g. "address.street", and can contain multiple levels of nesting.
Since:
6.6
See Also:
-
-
Constructor Summary
Constructors Constructor Description NestedPropertyDescriptor(String name, Class<BT> beanType)
Creates a property descriptor that can create MethodProperty instances to access the underlying bean property.
-
Method Summary
All Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
NestedPropertyDescriptor
public NestedPropertyDescriptor(String name, Class<BT> beanType) throws IllegalArgumentException
Creates a property descriptor that can create MethodProperty instances to access the underlying bean property.
Parameters:
name
- of the property in a dotted path format, e.g. "address.street"beanType
- type (class) of the top-level beanThrows:
IllegalArgumentException
- if the property name is invalid
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:
VaadinPropertyDescriptor
Returns the name of the property.
Specified by:
getName
in interfaceVaadinPropertyDescriptor<BT>
Returns:
-
getPropertyType
public Class<?> getPropertyType()
Description copied from interface:
VaadinPropertyDescriptor
Returns the type of the property.
Specified by:
getPropertyType
in interfaceVaadinPropertyDescriptor<BT>
Returns:
Class
-
createProperty
public Property<?> createProperty(BT bean)
Description copied from interface:
VaadinPropertyDescriptor
Creates a new
Property
instance for this property for a bean.Specified by:
createProperty
in interfaceVaadinPropertyDescriptor<BT>
Returns:
-
-