Package org.dellroad.stuff.vaadin8
Class SimplePropertyDefinition<T,V>
- java.lang.Object
-
- org.dellroad.stuff.vaadin8.SimplePropertyDefinition<T,V>
-
- Type Parameters:
T- backing object typeV- property value type
- All Implemented Interfaces:
PropertyDefinition<T,V>,Serializable
public class SimplePropertyDefinition<T,V> extends Object implements PropertyDefinition<T,V>
StraightforwardPropertyDefinitionimplementation based on getter and setter methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyDefinition(SimplePropertySet<T> propertySet, Class<V> type, String name, String caption, Method getter, Method setter)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCaption()ValueProvider<T,V>getGetter()StringgetName()Class<T>getPropertyHolderType()PropertySet<T>getPropertySet()Optional<Setter<T,V>>getSetter()Class<V>getType()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vaadin.data.PropertyDefinition
getTopLevelName
-
-
-
-
Constructor Detail
-
SimplePropertyDefinition
public SimplePropertyDefinition(SimplePropertySet<T> propertySet, Class<V> type, String name, String caption, Method getter, Method setter)
Constructor.- Parameters:
propertySet- containing property settype- type of propertyname- name of propertycaption- property captiongetter- property gettersetter- property setter, or null for none- Throws:
IllegalArgumentException- if any parameter other thansetteris null
-
-
Method Detail
-
getPropertyHolderType
public Class<T> getPropertyHolderType()
- Specified by:
getPropertyHolderTypein interfacePropertyDefinition<T,V>
-
getPropertySet
public PropertySet<T> getPropertySet()
- Specified by:
getPropertySetin interfacePropertyDefinition<T,V>
-
getName
public String getName()
- Specified by:
getNamein interfacePropertyDefinition<T,V>
-
getCaption
public String getCaption()
- Specified by:
getCaptionin interfacePropertyDefinition<T,V>
-
getGetter
public ValueProvider<T,V> getGetter()
- Specified by:
getGetterin interfacePropertyDefinition<T,V>
-
getSetter
public Optional<Setter<T,V>> getSetter()
- Specified by:
getSetterin interfacePropertyDefinition<T,V>
-
-