Package org.dellroad.stuff.vaadin7
Annotation Type FieldBuilder.AbstractField
-
@Retention(RUNTIME) @Target(METHOD) @Documented public static @interface FieldBuilder.AbstractField
Specifies how a Java property should be edited in Vaadin using anAbstractField.- See Also:
FieldBuilder
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanbufferedGet whether this field is buffered.StringcaptionGet the caption associated with this field.StringconversionErrorGet error message when value cannot be converted to data model type.Class<? extends Converter>converterGet theConvertertype that convert field value to data model type.StringdescriptionGet the description associated with this field.booleanenabledGet whether this field is enabled.StringheightGet height.booleanimmediateGet whether this field is immediate.booleaninvalidAllowedGet whether invalid values are allowed.booleaninvalidCommittedGet whether invalid values should be committed.booleanreadOnlyGet whether this field is read-only.booleanrequiredGet whether field is required.StringrequiredErrorGet the error that is shown if this field is required, but empty.String[]styleNamesGet style names.inttabIndexGet tabular index.Class<? extends AbstractField>typeGet theFieldBuilder.AbstractFieldtype that will edit the property.booleanvalidationVisibleGet whether automatic visible validation is enabled.Class<? extends Validator>[]validatorsGetValidatortypes to add to this field.StringwidthGet width.
-
-
-
Element Detail
-
type
Class<? extends AbstractField> type
Get theFieldBuilder.AbstractFieldtype that will edit the property.Although this property has a default value, it must be overridden either in this annotation, or by also including a more specific annotation such as
FieldBuilder.TextField.- Returns:
- field type
- Default:
- com.vaadin.ui.AbstractField.class
-
-
-
styleNames
String[] styleNames
Get style names.- Returns:
- style names
- See Also:
AbstractComponent.addStyleName(java.lang.String)
- Default:
- {}
-
-
-
width
String width
Get width.- Returns:
- field width
- See Also:
AbstractComponent.setWidth(String)
- Default:
- ""
-
-
-
height
String height
Get height.- Returns:
- field height
- See Also:
AbstractComponent.setHeight(String)
- Default:
- ""
-
-
-
caption
String caption
Get the caption associated with this field.- Returns:
- field caption
- See Also:
AbstractComponent.setCaption(java.lang.String)
- Default:
- ""
-
-
-
description
String description
Get the description associated with this field.- Returns:
- field description
- See Also:
AbstractComponent.setDescription(java.lang.String)
- Default:
- ""
-
-
-
enabled
boolean enabled
Get whether this field is enabled.- Returns:
- true to enable field
- See Also:
AbstractComponent.setEnabled(boolean)
- Default:
- true
-
-
-
immediate
boolean immediate
Get whether this field is immediate.- Returns:
- true for immediate mode
- See Also:
AbstractComponent.setImmediate(boolean)
- Default:
- false
-
-
-
readOnly
boolean readOnly
Get whether this field is read-only.- Returns:
- true for read-only
- See Also:
AbstractComponent.setReadOnly(boolean)
- Default:
- false
-
-
-
converter
Class<? extends Converter> converter
Get theConvertertype that convert field value to data model type. The specified class must have a no-arg constructor and compatible type.The default value of this property is
Converter, which means do not set a specificConverteron the field.- Returns:
- field value converter
- See Also:
AbstractField.setConverter(Converter)
- Default:
- com.vaadin.data.util.converter.Converter.class
-
-
-
validators
Class<? extends Validator>[] validators
GetValidatortypes to add to this field. All such types must have no-arg constructors.- Returns:
- field validators
- See Also:
AbstractField.addValidator(com.vaadin.data.Validator)
- Default:
- {}
-
-
-
buffered
boolean buffered
Get whether this field is buffered.- Returns:
- true for buffered mode
- See Also:
AbstractField.setBuffered(boolean)
- Default:
- false
-
-
-
invalidAllowed
boolean invalidAllowed
Get whether invalid values are allowed.- Returns:
- true to allow invalid values
- See Also:
AbstractField.setInvalidAllowed(boolean)
- Default:
- true
-
-
-
invalidCommitted
boolean invalidCommitted
Get whether invalid values should be committed.- Returns:
- true to allow invalid values to be committed
- See Also:
AbstractField.setInvalidCommitted(boolean)
- Default:
- false
-
-
-
conversionError
String conversionError
Get error message when value cannot be converted to data model type.- Returns:
- error message
- See Also:
AbstractField.setConversionError(java.lang.String)
- Default:
- "Could not convert value to {0}"
-
-
-
requiredError
String requiredError
Get the error that is shown if this field is required, but empty.- Returns:
- error message
- See Also:
AbstractField.setRequiredError(java.lang.String)
- Default:
- ""
-
-
-
validationVisible
boolean validationVisible
Get whether automatic visible validation is enabled.- Returns:
- true for automatic visible validation
- See Also:
AbstractField.setValidationVisible(boolean)
- Default:
- true
-
-
-
required
boolean required
Get whether field is required.- Returns:
- true if value is required
- See Also:
AbstractField.setRequired(boolean)
- Default:
- false
-
-
-
tabIndex
int tabIndex
Get tabular index.- Returns:
- field tab index
- See Also:
AbstractField.setTabIndex(int)
- Default:
- 0
-
-