T
- item type.public interface FieldDefinition<T> extends EditorPropertyDefinition
FormDefinition
,
FieldValidatorDefinition
Modifier and Type | Method and Description |
---|---|
String |
getConversionErrorMessage()
Message text displayed in case of conversion error.
|
Class<? extends com.vaadin.data.Converter<T,?>> |
getConverterClass()
Converts the model type returned by
getType() into a presentation type, in case the two differ. |
T |
getDefaultValue()
Pre-filled value displayed in the field.
|
Class<? extends FieldFactory<T>> |
getFactoryClass() |
Class<? extends FieldBinder<T>> |
getFieldBinderClass() |
String |
getRequiredErrorMessage()
Error message text displayed in case of required = true.
|
Class<?> |
getType()
The type of this field, i.e. the model type.
|
List<FieldValidatorDefinition> |
getValidators() |
boolean |
isI18n()
Enables i18n authoring support.
|
boolean |
isReadOnly()
Determines if a Field Property can be changed.
|
boolean |
isRequired()
Makes the field mandatory.
|
getDescription, getLabel, getStyleName
boolean isRequired()
String getRequiredErrorMessage()
Class<?> getType()
T getDefaultValue()
boolean isReadOnly()
List<FieldValidatorDefinition> getValidators()
Class<? extends com.vaadin.data.Converter<T,?>> getConverterClass()
getType()
into a presentation type, in case the two differ.
For instance, a text field will likely use String but the model may be a Long. The converter will then handle
the conversion between those two types.getType()
,
Converter
String getConversionErrorMessage()
boolean isI18n()
isI18n
in interface EditorPropertyDefinition
Class<? extends FieldFactory<T>> getFactoryClass()
Class<? extends FieldBinder<T>> getFieldBinderClass()
Copyright © 2019 Magnolia International Ltd.. All rights reserved.