|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.data.util.MethodPropertyDescriptor<BT>
BT
- bean typepublic class MethodPropertyDescriptor<BT>
Property descriptor that is able to create simple MethodProperty
instances for a bean, using given accessors.
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 |
---|
public MethodPropertyDescriptor(String name, Class<?> propertyType, Method readMethod, Method writeMethod)
name
- of the propertypropertyType
- type (class) of the propertyreadMethod
- getter Method
for the propertywriteMethod
- setter Method
for the property or null if read-only
propertyMethod Detail |
---|
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |