Class ClientLocalizationManager
java.lang.Object
com.inductiveautomation.ignition.client.model.ClientLocalizationManager
- All Implemented Interfaces:
- TranslationPackage,- Serializable
- Direct Known Subclasses:
- ClientLocalizationManagerImpl,- DesignerLocalizationManager
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static ClientLocalizationManagerstatic final Stringstatic final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidaddLocaleListener(LocaleListener listener) voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) protected voidfireProperty(String name) static <T extends ClientLocalizationManager>
 Tget()abstract Stringabstract Collection<Locale>abstract Localeabstract Localeabstract Stringabstract Stringabstract Stringabstract StringgetStringForBundleKey(String bundlekey) abstract TranslationMapgetTranslationsFor(String key) abstract booleanabstract voidremoveLocaleListener(LocaleListener listener) voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) abstract voidResets the current locale to the base locale.protected static voidabstract voidsetCurrentLocale(Locale locale) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.i18n.translation.TranslationPackagecreateDiff, getAllTranslations, getAvailableKeys, getBaseLocale, getKeyHashRule, isDefined, isDefined
- 
Field Details- 
EVENT_AVAILABLE_LOCALES- See Also:
 
- 
EVENT_TRANSLATIONS- See Also:
 
- 
_instance
 
- 
- 
Constructor Details- 
ClientLocalizationManagerprotected ClientLocalizationManager()
 
- 
- 
Method Details- 
get
- 
set
- 
addPropertyChangeListener
- 
removePropertyChangeListener
- 
fireProperty
- 
isTranslationEnabledpublic abstract boolean isTranslationEnabled()
- 
getAvailableLocales- Specified by:
- getAvailableLocalesin interface- TranslationPackage
- Returns:
- the locales for which translations are available. This will include the base locale.
 
- 
get- Specified by:
- getin interface- TranslationPackage
- key- the key to find a match for, or return value if no value found
- Returns:
- the translation of the key for the requested locale, or the key, if the translation is not available.
 
- 
getString
- 
getStrict
- 
getStrict- Specified by:
- getStrictin interface- TranslationPackage
- Parameters:
- locale- the locale to find a value for
- key- the key to find a match for
- Returns:
- the translation, or null if the translation doesn't exist.
 
- 
getStringForBundleKey
- 
getTranslationsFor- Specified by:
- getTranslationsForin interface- TranslationPackage
- Returns:
- a map of all of the translations available for a given key.
 
- 
getCurrentLocale
- 
setCurrentLocale
- 
getPreviewLocale
- 
addLocaleListener
- 
removeLocaleListener
- 
resetLocalepublic abstract void resetLocale()Resets the current locale to the base locale. *
 
-