Package org.dellroad.stuff.vaadin8
Annotation Type FieldBuilder.Binding
-
@Retention(RUNTIME) @Target(METHOD) @Documented public static @interface FieldBuilder.Binding
Specifies properties of theBinderbinding itself.Properties correspond to methods in
Binder.BindingBuilder.- See Also:
FieldBuilder
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends Converter>converterGet the converter class.StringnullRepresentationGet the null representation.doubleorderGet the ordering value for this field.StringrequiredGet "as required" error message.Class<? extends ErrorMessageProvider>requiredProviderGet "as required" error message provider class.Class<? extends BindingValidationStatusHandler>validationStatusHandlerGet the validation status handler class.Class<? extends Validator>validatorGet the validator class.
-
-
-
Element Detail
-
order
double order
Get the ordering value for this field.- Returns:
- field order value
- See Also:
FieldBuilder.getPropertyNames()
- Default:
- 0.0
-
-
-
required
String required
Get "as required" error message.Either this or
requiredProvider()should be set, but not both.- Returns:
- "as required" error message
- See Also:
Binder.BindingBuilder.asRequired(String)
- Default:
- ""
-
-
-
nullRepresentation
String nullRepresentation
Get the null representation.This property only works for fields that present a
Stringvalue, such asTextField.Note: the default value is just a placeholder, indicating that no null representation should be configured.
- Returns:
- null representation
- See Also:
Binder.BindingBuilder.withNullRepresentation(TARGET)
- Default:
- "<FieldBuilderStringDefault>"
-
-
-
requiredProvider
Class<? extends ErrorMessageProvider> requiredProvider
Get "as required" error message provider class.Either this or
required()should be set, but not both.- Returns:
- "as required" error message provider class
- See Also:
Binder.BindingBuilder.asRequired(ErrorMessageProvider)
- Default:
- com.vaadin.data.ErrorMessageProvider.class
-
-
-
converter
Class<? extends Converter> converter
Get the converter class.- Returns:
- converter class
- See Also:
Binder.BindingBuilder.withConverter(Converter)
- Default:
- com.vaadin.data.Converter.class
-
-
-
validationStatusHandler
Class<? extends BindingValidationStatusHandler> validationStatusHandler
Get the validation status handler class.- Returns:
- validation status handler class
- See Also:
Binder.BindingBuilder.withValidationStatusHandler(com.vaadin.data.BindingValidationStatusHandler)
- Default:
- com.vaadin.data.BindingValidationStatusHandler.class
-
-
-
validator
Class<? extends Validator> validator
Get the validator class.- Returns:
- validator class
- See Also:
Binder.BindingBuilder.withValidator(com.vaadin.data.Validator<? super TARGET>)
- Default:
- com.vaadin.data.Validator.class
-
-