public class DefaultI18NAuthoringSupport extends Object implements I18NAuthoringSupport
I18NAuthoringSupport
.Constructor and Description |
---|
DefaultI18NAuthoringSupport() |
Modifier and Type | Method and Description |
---|---|
String |
createI18NURI(javax.jcr.Node node,
Locale locale) |
String |
deriveLocalisedPropertyName(String base,
Locale locale) |
Locale |
getAuthorLocale()
Deprecated.
|
List<Locale> |
getAvailableLocales(com.vaadin.data.Item item) |
List<Locale> |
getAvailableLocales(javax.jcr.Node node)
Returns the available locales for the given page, area or component node.
Please note though that this default implementation exclusively resolves locales through i18nContentSupport ,
i.e. |
Locale |
getDefaultLocale(com.vaadin.data.Item item) |
Locale |
getDefaultLocale(javax.jcr.Node node) |
void |
i18nize(com.vaadin.ui.HasComponents fieldContainer,
Locale locale) |
boolean |
isDefaultLocale(Locale locale,
com.vaadin.data.Item item) |
boolean |
isEnabled() |
void |
setAuthorLocale(Locale locale)
Deprecated.
|
void |
setEnabled(boolean enabled) |
public List<Locale> getAvailableLocales(javax.jcr.Node node)
i18nContentSupport
,
i.e. as configured in /server/i18n/content/locales, regardless of the passed node.getAvailableLocales
in interface I18NAuthoringSupport
null
otherwise.public Locale getDefaultLocale(javax.jcr.Node node)
getDefaultLocale
in interface I18NAuthoringSupport
public String deriveLocalisedPropertyName(String base, Locale locale)
deriveLocalisedPropertyName
in interface I18NAuthoringSupport
public List<Locale> getAvailableLocales(com.vaadin.data.Item item)
getAvailableLocales
in interface I18NAuthoringSupport
public Locale getDefaultLocale(com.vaadin.data.Item item)
getDefaultLocale
in interface I18NAuthoringSupport
public boolean isDefaultLocale(Locale locale, com.vaadin.data.Item item)
isDefaultLocale
in interface I18NAuthoringSupport
public void i18nize(com.vaadin.ui.HasComponents fieldContainer, Locale locale)
i18nize
in interface I18NAuthoringSupport
public String createI18NURI(javax.jcr.Node node, Locale locale)
createI18NURI
in interface I18NAuthoringSupport
public boolean isEnabled()
public void setEnabled(boolean enabled)
@Deprecated public Locale getAuthorLocale()
getAuthorLocale
in interface I18NAuthoringSupport
@Deprecated public void setAuthorLocale(Locale locale)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.