FormCompanionPropertyDescriptorBuilderExtensions extension
Defines convinient extension methods for PropertyDescriptorsBuilder when you use FormCompanion annotation.
Methods
-
addWithField<
P extends Object, F extends Object, TField extends FormField< (F> >{required String name, List< FormFieldValidatorFactory< ? validatorFactories, List<F> >AsyncValidatorFactory< ? asyncValidatorFactories, P? initialValue, Equality<F> >F> ? fieldValueEquality, Equality<P> ? propertyValueEquality, ValueConverter<P, F> ? valueConverter, PropertyValueTraits? valueTraits, RestorableValueFactory<F> ? restorableValueFactory}) → void -
Defines a new property with property value type
P
, form field value typeF
, and preferred form field typeTField
. -
bigIntWithField<
TField extends FormField< (BigInt> >{required String name, List< FormFieldValidatorFactory< ? validatorFactories, List<BigInt> >AsyncValidatorFactory< ? asyncValidatorFactories, BigInt? initialValue, PropertyValueTraits? valueTraits}) → voidBigInt> > -
Defines a new property with property value type BigInt
and preferred form field type
TField
for form field value type String. -
booleanWithField<
TField extends FormField< (bool> >{required String name, bool initialValue = false, PropertyValueTraits? valueTraits}) → void -
Defines a new property with bool for both of property value type and
form field value type, and preferred form field type
TField
. -
enumeratedWithField<
T extends Enum, TField extends FormField< (T> >{required String name, T? initialValue, PropertyValueTraits? valueTraits, required Iterable< T> enumValues}) → void -
Defines a new property with enum type
T
for both of property value type and form field value type, and preferred form field typeTField
. -
integerWithField<
TField extends FormField< (int> >{required String name, List< FormFieldValidatorFactory< ? validatorFactories, List<int> >AsyncValidatorFactory< ? asyncValidatorFactories, int? initialValue, PropertyValueTraits? valueTraits}) → voidint> > -
Defines a new property with property value type int
and preferred form field type
TField
for form field value type String. -
realWithField<
TField extends FormField< (double> >{required String name, List< FormFieldValidatorFactory< ? validatorFactories, List<double> >AsyncValidatorFactory< ? asyncValidatorFactories, double? initialValue, PropertyValueTraits? valueTraits}) → voiddouble> > -
Defines a new property with property value type double
and preferred form field type
TField
for form field value type String. -
stringConvertibleWithField<
P extends Object, TField extends FormField< (String> >{required String name, List< FormFieldValidatorFactory< ? validatorFactories, List<String> >AsyncValidatorFactory< ? asyncValidatorFactories, P? initialValue, required StringConverter<String> >P> ? stringConverter, PropertyValueTraits? valueTraits}) → void -
Defines a new property with property value type
P
and preferred form field typeTField
for form field value type String.