|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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(java.lang.String name,
java.lang.Class<?> propertyType,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod)
Creates a property descriptor that can create MethodProperty instances to access the underlying bean property. |
Method Summary | |
---|---|
Property<?> |
createProperty(java.lang.Object bean)
Creates a new Property instance for this property for a bean. |
java.lang.String |
getName()
Returns the name of the property. |
java.lang.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(java.lang.String name, java.lang.Class<?> propertyType, java.lang.reflect.Method readMethod, java.lang.reflect.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 java.lang.String getName()
VaadinPropertyDescriptor
getName
in interface VaadinPropertyDescriptor<BT>
public java.lang.Class<?> getPropertyType()
VaadinPropertyDescriptor
getPropertyType
in interface VaadinPropertyDescriptor<BT>
public Property<?> createProperty(java.lang.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 |