D
- definition typeT
- field value typepublic abstract class AbstractFieldFactory<T,D extends FieldDefinition<T>> extends Object implements FieldFactory<T>
Modifier and Type | Field and Description |
---|---|
protected info.magnolia.objectfactory.ComponentProvider |
componentProvider |
protected D |
definition |
Constructor and Description |
---|
AbstractFieldFactory(D definition,
info.magnolia.objectfactory.ComponentProvider componentProvider) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.data.HasValue<T> |
createField() |
protected abstract com.vaadin.ui.Component |
createFieldComponent() |
protected D |
getDefinition() |
protected boolean |
isMessageKey(String key)
Field factories may use this method to check whether an @i18nText config property has an actual translation, or is a generated key.
|
protected final D extends FieldDefinition<T> definition
protected final info.magnolia.objectfactory.ComponentProvider componentProvider
@Inject public AbstractFieldFactory(D definition, info.magnolia.objectfactory.ComponentProvider componentProvider)
public com.vaadin.data.HasValue<T> createField()
createField
in interface FieldFactory<T>
protected abstract com.vaadin.ui.Component createFieldComponent()
protected D getDefinition()
protected boolean isMessageKey(String key)
By default, if no translation is found, these properties contain the longest key to provide such a translation.
Copyright © 2020 Magnolia International Ltd.. All rights reserved.