Class FieldBuilderContextImpl
java.lang.Object
org.dellroad.stuff.vaadin24.field.FieldBuilderContextImpl
- All Implemented Interfaces:
Serializable
,FieldBuilderContext
Straightforward implementation of the
FieldBuilderContext
interface.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFieldBuilderContextImpl
(AbstractFieldBuilder<?, ?>.BindingInfo bindingInfo) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.dellroad.stuff.vaadin24.field.FieldBuilderContext
getMethod, inferDataModelType
-
Field Details
-
bindingInfo
-
-
Constructor Details
-
FieldBuilderContextImpl
Constructor.- Parameters:
bindingInfo
- static information for the bean property- Throws:
IllegalArgumentException
- ifbindingInfo
is null
-
-
Method Details
-
getBindingInfo
Description copied from interface:FieldBuilderContext
Get the static information (annotations, annotated method, etc.) associated with this context.- Specified by:
getBindingInfo
in interfaceFieldBuilderContext
- Returns:
- builder
-
getBeanType
Description copied from interface:FieldBuilderContext
Get the bean type for which the field is being built.This will either be the declaring class (or interface) of the annotated method, or possibly a subclass of that class if the annotated method is declared in a supertype.
- Specified by:
getBeanType
in interfaceFieldBuilderContext
- Returns:
- the method having the annotation on which the new field is based
-
toString
-