Class AbstractGridFieldBuilder<S extends AbstractGridFieldBuilder<S,T> , T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FieldBuilder
AbstractFieldBuilder that adds the @FieldBuilder.GridSingleSelect
and @FieldBuilder.GridMultiSelect annotations.
These annotations require special handling because they are not normal fields.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceSpecifies how a Java bean property should be edited using aGridconverted to a multi-select field viaGrid.asMultiSelect().static @interfaceSpecifies how a Java bean property should be edited using aGridconverted to a single-select field viaGrid.asSingleSelect().Nested classes/interfaces inherited from class AbstractFieldBuilder
AbstractFieldBuilder.Binding, AbstractFieldBuilder.BindingInfo, AbstractFieldBuilder.DefaultInfo, AbstractFieldBuilder.EnabledBy, AbstractFieldBuilder.FieldDefault, AbstractFieldBuilder.FormLayout, AbstractFieldBuilder.NullifyCheckbox, AbstractFieldBuilder.ProvidesField -
Field Summary
Fields inherited from class AbstractFieldBuilder
DEFAULT_ANNOTATION_DEFAULTS_METHOD_NAME, DEFAULT_IMPLEMENTATION_PROPERTY_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGridFieldBuilder(Class<T> type) Constructor.protectedAbstractGridFieldBuilder(AbstractGridFieldBuilder<S, T> original) Static information copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<Class<? extends Annotation>, Annotation> Get all of the declarative widget annotation types defined for this class and their default values.protected FieldComponent<?> buildDeclarativeField(AbstractFieldBuilder<S, T>.BindingInfo bindingInfo) Construct and configure a field based on a@FieldBuilder.Foodeclarative annotation.protected Grid<?> buildGrid(AbstractFieldBuilder<S, T>.BindingInfo bindingInfo, GridColumn column) Methods inherited from class AbstractFieldBuilder
addFieldComponents, applyFieldDefaultAnnotations, bindFields, buildProvidedField, createBindingInfo, getFieldComponents, getImplementationPropertyName, getScannedFieldDefaults, getScannedProperties, getType, instantiate, instantiate, newFieldBuilderContext, scanForAnnotations, scanForFieldDefaultAnnotations
-
Constructor Details
-
AbstractGridFieldBuilder
-
AbstractGridFieldBuilder
Static information copy constructor.Only the static information gathered by this instance by scanning for annotations is copied. Any previously bound fields are not copied.
- Parameters:
original- original instance- Throws:
IllegalArgumentException- iforiginalis null
-
-
Method Details
-
buildDeclarativeAnnotationsMap
Get all of the declarative widget annotation types defined for this class and their default values.The implementation in
AbstractFieldBuildergleans this information using reflection by looking for a method named "annotationDefaultsMethod"<S extends AbstractFieldBuilder<S,T>, T> taking zero parameters declared by this class or some superclass and returning all annotations on that method. Subclasses may override this method to augment or modify this information. Entries in the map may have null values if defaults are handled differently in a subclass' overridden
buildDeclarativeField().The implementation in
AbstractGridFieldBuilderadds@FieldBuilder.GridSingleSelectand@FieldBuilder.GridMultiSelect.- Overrides:
buildDeclarativeAnnotationsMapin classAbstractFieldBuilder<S extends AbstractGridFieldBuilder<S,T>, T> - Returns:
- widget annotation types
-
buildDeclarativeField
protected FieldComponent<?> buildDeclarativeField(AbstractFieldBuilder<S, T>.BindingInfo bindingInfo) Description copied from class:AbstractFieldBuilderConstruct and configure a field based on a@FieldBuilder.Foodeclarative annotation.- Overrides:
buildDeclarativeFieldin classAbstractFieldBuilder<S extends AbstractGridFieldBuilder<S,T>, T> - Parameters:
bindingInfo- field binding context- Returns:
- new field
-
buildGrid
-