D
- definition typepublic class SystemLanguagesFieldFactory<D extends SystemLanguagesFieldDefinition> extends SelectFieldFactory<D>
CONFIG:/server/i18n/system/languages
.initializeProperty
SelectFieldFactory.DefaultOptionComparator
select
definition, field, item
Constructor and Description |
---|
SystemLanguagesFieldFactory(D definition,
com.vaadin.v7.data.Item relatedFieldItem,
info.magnolia.context.Context context)
Deprecated.
since 5.4.7 - use
SystemLanguagesFieldFactory(SystemLanguagesFieldDefinition, Item, UiContext, I18NAuthoringSupport, Context) instead. |
SystemLanguagesFieldFactory(D definition,
com.vaadin.v7.data.Item relatedFieldItem,
UiContext uiContext,
I18NAuthoringSupport i18nAuthoringSupport,
info.magnolia.context.Context context) |
Modifier and Type | Method and Description |
---|---|
protected Object |
createDefaultValue(com.vaadin.v7.data.Property dataSource)
If value is null but single-select field mandates a non-null value, then pick the first value as default.
|
List<SelectFieldOptionDefinition> |
getOptions()
Returns the languages defined under
CONFIG:/server/i18n/system/languages . |
createFieldComponent, createRemoteOptionFilterPredicate, createSelectionField, getConfiguredDefaultValue, getIconResource, getRemoteOptionsName, getRemoteOptionsValue, getSelectFieldOptionDefinition, initializeComparator
createField, createTypedValue, getComponentProvider, getDefaultFieldType, getDefinitionType, getFieldDefinition, getFieldType, getI18nBasename, getLocale, getView, initializeConverter, initializeProperty, initializeTransformer, isMessageKey, setComponentProvider, setFieldValidatorFactoryFactory, setI18nContentSupport, setLocale, setPropertyDataSourceAndDefaultValue, setPropertyDataSourceDefaultValue
getMessage, getMessages, getParent, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, getParent, setParent
@Inject public SystemLanguagesFieldFactory(D definition, com.vaadin.v7.data.Item relatedFieldItem, UiContext uiContext, I18NAuthoringSupport i18nAuthoringSupport, info.magnolia.context.Context context)
@Deprecated public SystemLanguagesFieldFactory(D definition, com.vaadin.v7.data.Item relatedFieldItem, info.magnolia.context.Context context)
SystemLanguagesFieldFactory(SystemLanguagesFieldDefinition, Item, UiContext, I18NAuthoringSupport, Context)
instead.public List<SelectFieldOptionDefinition> getOptions()
CONFIG:/server/i18n/system/languages
.getOptions
in class SelectFieldFactory<D extends SystemLanguagesFieldDefinition>
protected Object createDefaultValue(com.vaadin.v7.data.Property dataSource)
SelectFieldFactory
createDefaultValue
in class SelectFieldFactory<D extends SystemLanguagesFieldDefinition>
Copyright © 2020 Magnolia International Ltd.. All rights reserved.