Class BeanPropertyDefinition<T,V>
java.lang.Object
com.flowingcode.vaadin.addons.easygrid.BeanPropertyDefinition<T,V>
- Type Parameters:
T- the bean typeV- the property value type
- All Implemented Interfaces:
PropertyDefinition<T,,V> Serializable
A
PropertyDefinition that additionally exposes the introspected
PropertyDescriptor for the underlying bean property.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns thePropertyDescriptorfor the underlying bean property, ornullif no descriptor supplier was provided.getName()Class<?>getType()booleanbooleanstatic <T> BeanPropertyDefinition<T,?> of(PropertySet<T> propertySet, Class<?> beanType, String propertyName) Returns aBeanPropertyDefinitionfor the given property, combining thePropertySetentry with thePropertyDescriptorobtained via introspection.
-
Constructor Details
-
BeanPropertyDefinition
public BeanPropertyDefinition()
-
-
Method Details
-
of
public static <T> BeanPropertyDefinition<T,?> of(PropertySet<T> propertySet, Class<?> beanType, String propertyName) Returns aBeanPropertyDefinitionfor the given property, combining thePropertySetentry with thePropertyDescriptorobtained via introspection.- Type Parameters:
T- the bean type- Parameters:
propertySet- the property set to look up the property inbeanType- the bean class, used for introspectionpropertyName- the name of the property- Returns:
- the resolved
BeanPropertyDefinition - Throws:
IllegalArgumentException- if the property cannot be resolved
-
getDescriptor
Returns thePropertyDescriptorfor the underlying bean property, ornullif no descriptor supplier was provided.- Returns:
- the
PropertyDescriptor, ornullif no descriptor supplier was provided
-
getGetter
- Specified by:
getGetterin interfacePropertyDefinition<T,V>
-
getSetter
- Specified by:
getSetterin interfacePropertyDefinition<T,V>
-
getType
- Specified by:
getTypein interfacePropertyDefinition<T,V>
-
getPropertyHolderType
- Specified by:
getPropertyHolderTypein interfacePropertyDefinition<T,V>
-
getName
- Specified by:
getNamein interfacePropertyDefinition<T,V>
-
getTopLevelName
- Specified by:
getTopLevelNamein interfacePropertyDefinition<T,V>
-
getCaption
- Specified by:
getCaptionin interfacePropertyDefinition<T,V>
-
getPropertySet
- Specified by:
getPropertySetin interfacePropertyDefinition<T,V>
-
getParent
- Specified by:
getParentin interfacePropertyDefinition<T,V>
-
isSubProperty
public boolean isSubProperty()- Specified by:
isSubPropertyin interfacePropertyDefinition<T,V>
-
isGenericType
public boolean isGenericType()- Specified by:
isGenericTypein interfacePropertyDefinition<T,V>
-