D
- definition typeT
- field value typeF
- field component typepublic abstract class AbstractFieldFactory<D extends FieldDefinition<T>,T,F extends com.vaadin.ui.Component & com.vaadin.data.HasValue<T>> extends Object implements FieldFactory<T>
Constructor and Description |
---|
AbstractFieldFactory(D definition,
info.magnolia.objectfactory.ComponentProvider componentProvider,
Locale locale,
info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
F |
createField() |
protected abstract F |
createFieldComponent() |
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 abstract F createFieldComponent()
public F createField()
createField
in interface FieldFactory<T>
protected boolean isMessageKey(String key)
By default, if no translation is found, these properties contain the longest key to provide such a translation.
Copyright © 2018 Magnolia International Ltd.. All rights reserved.