Package org.dellroad.stuff.vaadin24.data
Class SimplePropertySet.Definition<V>
java.lang.Object
org.dellroad.stuff.vaadin24.data.SimplePropertySet.Definition<V>
- Type Parameters:
V
- property value type
- All Implemented Interfaces:
PropertyDefinition<T,
,V> Serializable
- Enclosing class:
- SimplePropertySet<T>
A
PropertyDefinition
within a SimplePropertySet
.
Instances provide SimplePropertySet<T>.Definition<V>.Getter
s that allow recovery of the originating instance; see
SimplePropertySet.propertyDefinitionForBinding()
.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.data.binder.PropertyDefinition
getTopLevelName, isSubProperty
-
Constructor Details
-
Definition
public Definition(String name, Class<V> type, String caption, ValueProvider<? super T, ? extends V> getter, Setter<? super T, ? super V> setter) Constructor.- Parameters:
name
- property nametype
- property typecaption
- property captiongetter
- getter methodsetter
- setter method, or null for none- Throws:
IllegalArgumentException
- if any parameter other thansetter
is null
-
-
Method Details
-
getCaption
- Specified by:
getCaption
in interfacePropertyDefinition<T,
V>
-
getGetter
- Specified by:
getGetter
in interfacePropertyDefinition<T,
V>
-
getName
- Specified by:
getName
in interfacePropertyDefinition<T,
V>
-
getParent
- Specified by:
getParent
in interfacePropertyDefinition<T,
V>
-
getPropertyHolderType
- Specified by:
getPropertyHolderType
in interfacePropertyDefinition<T,
V>
-
getPropertySet
- Specified by:
getPropertySet
in interfacePropertyDefinition<T,
V>
-
getSetter
- Specified by:
getSetter
in interfacePropertyDefinition<T,
V>
-
getType
- Specified by:
getType
in interfacePropertyDefinition<T,
V>
-
isGenericType
public boolean isGenericType()- Specified by:
isGenericType
in interfacePropertyDefinition<T,
V>
-