Package com.vaadin.data
Class AbstractBeanPropertyDefinition<T,V>
- java.lang.Object
-
- com.vaadin.data.AbstractBeanPropertyDefinition<T,V>
-
- Type Parameters:
T- the type of the property setV- the property type
- All Implemented Interfaces:
PropertyDefinition<T,V>,Serializable
- Direct Known Subclasses:
BeanPropertySet.NestedBeanPropertyDefinition
public abstract class AbstractBeanPropertyDefinition<T,V> extends Object implements PropertyDefinition<T,V>
Abstract base class for PropertyDefinition implementations for beans.- Since:
- 8.2
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractBeanPropertyDefinition(BeanPropertySet<T> propertySet, Class<?> propertyHolderType, PropertyDescriptor descriptor)Constructor for setting the immutable descriptor, property set and property holder type used by this instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaption()Gets the human readable caption to show for this property.protected PropertyDescriptorgetDescriptor()Gets the property descriptor of this instance.StringgetName()Gets the full name of this property.Class<?>getPropertyHolderType()Gets the type of the class containing this property.BeanPropertySet<T>getPropertySet()Gets thePropertySetthat this property belongs to.Class<V>getType()Gets the type of this property.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.data.PropertyDefinition
getGetter, getSetter, getTopLevelName
-
-
-
-
Constructor Detail
-
AbstractBeanPropertyDefinition
public AbstractBeanPropertyDefinition(BeanPropertySet<T> propertySet, Class<?> propertyHolderType, PropertyDescriptor descriptor)
Constructor for setting the immutable descriptor, property set and property holder type used by this instance.- Parameters:
propertySet- property set this property belongs topropertyHolderType- parent property for this nested propertydescriptor- property descriptor
-
-
Method Detail
-
getType
public Class<V> getType()
Description copied from interface:PropertyDefinitionGets the type of this property.- Specified by:
getTypein interfacePropertyDefinition<T,V>- Returns:
- the property type. not
null
-
getName
public String getName()
Description copied from interface:PropertyDefinitionGets the full name of this property.- Specified by:
getNamein interfacePropertyDefinition<T,V>- Returns:
- the property name, not
null
-
getCaption
public String getCaption()
Description copied from interface:PropertyDefinitionGets the human readable caption to show for this property.- Specified by:
getCaptionin interfacePropertyDefinition<T,V>- Returns:
- the caption to show, not
null
-
getPropertySet
public BeanPropertySet<T> getPropertySet()
Description copied from interface:PropertyDefinitionGets thePropertySetthat this property belongs to.- Specified by:
getPropertySetin interfacePropertyDefinition<T,V>- Returns:
- the property set, not
null
-
getDescriptor
protected PropertyDescriptor getDescriptor()
Gets the property descriptor of this instance.- Returns:
- the property descriptor
-
getPropertyHolderType
public Class<?> getPropertyHolderType()
Description copied from interface:PropertyDefinitionGets the type of the class containing this property.- Specified by:
getPropertyHolderTypein interfacePropertyDefinition<T,V>- Returns:
- the property type. not
null
-
-