BT
- bean typepublic class MethodPropertyDescriptor<BT> extends Object implements VaadinPropertyDescriptor<BT>
MethodProperty
instances for a bean, using given accessors.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.
|
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.
|
public String getName()
VaadinPropertyDescriptor
getName
in interface VaadinPropertyDescriptor<BT>
public Class<?> getPropertyType()
VaadinPropertyDescriptor
getPropertyType
in interface VaadinPropertyDescriptor<BT>
public Property<?> createProperty(Object bean)
VaadinPropertyDescriptor
Property
instance for this property for a bean.createProperty
in interface VaadinPropertyDescriptor<BT>
Copyright © 2016 Vaadin Ltd. All rights reserved.