We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.data.util.
Class MethodPropertyDescriptor<BT>
java.lang.Object
com.vaadin.data.util.MethodPropertyDescriptor<BT>
Type Parameters:
BT
- bean type
All Implemented Interfaces:
- extends Object
- implements VaadinPropertyDescriptor<BT>
public class MethodPropertyDescriptor<BT>
Property descriptor that is able to create simple MethodProperty
instances for a bean, using given accessors.
Since:
6.6
See Also:
Constructor Summary | |
---|---|
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 | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
MethodPropertyDescriptor
public 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 Detail |
---|
getName
public String getName()
- Specified by:
getName
in interfaceVaadinPropertyDescriptor<BT>
- Returns:
Description copied from interface: VaadinPropertyDescriptor
Returns the name of the property.
getPropertyType
public Class<?> getPropertyType()
- Specified by:
getPropertyType
in interfaceVaadinPropertyDescriptor<BT>
- Returns:
- Class
Description copied from interface: VaadinPropertyDescriptor
Returns the type of the property.
createProperty
public Property createProperty(Object bean)
- Specified by:
createProperty
in interfaceVaadinPropertyDescriptor<BT>
- Returns:
Description copied from interface: VaadinPropertyDescriptor
Creates a new Property
instance for this property for a bean.