com.vaadin.data.util.
Class MethodPropertyDescriptor<BT>
- java.lang.Object
-
- com.vaadin.data.util.MethodPropertyDescriptor<BT>
-
Type Parameters:
BT
- bean typeAll Implemented Interfaces:
public class MethodPropertyDescriptor<BT> extends Object implements VaadinPropertyDescriptor<BT>
Property descriptor that is able to create simple
MethodProperty
instances for a bean, using given accessors.Since:
6.6
See Also:
-
-
Constructor Summary
Constructors Constructor and Description MethodPropertyDescriptor(String name, Class<?> propertyType, Method readMethod, Method writeMethod)
Creates a property descriptor that can create MethodProperty instances to access the underlying bean property.
-
Method Summary
All Methods Modifier and Type Method and Description Property<?>
createProperty(Object 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
-
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(Object bean)
Description copied from interface:
VaadinPropertyDescriptor
Creates a new
Property
instance for this property for a bean.Specified by:
createProperty
in interfaceVaadinPropertyDescriptor<BT>
Returns:
-
-