Class ClientLocalizationManager
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.model.ClientLocalizationManager
 
- 
- All Implemented Interfaces:
- TranslationPackage,- java.io.Serializable
 - Direct Known Subclasses:
- ClientLocalizationManagerImpl,- DesignerLocalizationManager
 
 public abstract class ClientLocalizationManager extends java.lang.Object implements TranslationPackage - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static ClientLocalizationManager_instancestatic java.lang.StringEVENT_AVAILABLE_LOCALESstatic java.lang.StringEVENT_TRANSLATIONS
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedClientLocalizationManager()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddLocaleListener(LocaleListener listener)voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)protected voidfireProperty(java.lang.String name)static <T extends ClientLocalizationManager>
 Tget()abstract java.lang.Stringget(java.util.Locale locale, java.lang.String key)abstract java.util.Collection<java.util.Locale>getAvailableLocales()abstract java.util.LocalegetCurrentLocale()abstract java.util.LocalegetPreviewLocale()abstract java.lang.StringgetStrict(java.lang.String key)abstract java.lang.StringgetStrict(java.util.Locale locale, java.lang.String key)abstract java.lang.StringgetString(java.lang.String key)abstract java.lang.StringgetStringForBundleKey(java.lang.String bundlekey)abstract TranslationMapgetTranslationsFor(java.lang.String key)abstract booleanisTranslationEnabled()abstract voidremoveLocaleListener(LocaleListener listener)voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)abstract voidresetLocale()Resets the current locale to the base locale.protected static voidset(ClientLocalizationManager mgr)abstract voidsetCurrentLocale(java.util.Locale locale)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.i18n.translation.TranslationPackagecreateDiff, getAllTranslations, getAvailableKeys, getBaseLocale, getKeyHashRule, isDefined, isDefined
 
- 
 
- 
- 
- 
Field Detail- 
EVENT_AVAILABLE_LOCALESpublic static final java.lang.String EVENT_AVAILABLE_LOCALES - See Also:
- Constant Field Values
 
 - 
EVENT_TRANSLATIONSpublic static final java.lang.String EVENT_TRANSLATIONS - See Also:
- Constant Field Values
 
 - 
_instanceprotected static ClientLocalizationManager _instance 
 
- 
 - 
Method Detail- 
getpublic static <T extends ClientLocalizationManager> T get() 
 - 
setprotected static void set(ClientLocalizationManager mgr) 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
 - 
firePropertyprotected void fireProperty(java.lang.String name) 
 - 
isTranslationEnabledpublic abstract boolean isTranslationEnabled() 
 - 
getAvailableLocalespublic abstract java.util.Collection<java.util.Locale> getAvailableLocales() - Specified by:
- getAvailableLocalesin interface- TranslationPackage
- Returns:
- the locales for which translations are available. This will include the base locale.
 
 - 
getpublic abstract java.lang.String get(java.util.Locale locale, java.lang.String key)- 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.
 
 - 
getStringpublic abstract java.lang.String getString(java.lang.String key) 
 - 
getStrictpublic abstract java.lang.String getStrict(java.lang.String key) 
 - 
getStrictpublic abstract java.lang.String getStrict(java.util.Locale locale, java.lang.String key)- 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.
 
 - 
getStringForBundleKeypublic abstract java.lang.String getStringForBundleKey(java.lang.String bundlekey) 
 - 
getTranslationsForpublic abstract TranslationMap getTranslationsFor(java.lang.String key) - Specified by:
- getTranslationsForin interface- TranslationPackage
- Returns:
- a map of all of the translations available for a given key.
 
 - 
getCurrentLocalepublic abstract java.util.Locale getCurrentLocale() 
 - 
setCurrentLocalepublic abstract void setCurrentLocale(java.util.Locale locale) 
 - 
getPreviewLocalepublic abstract java.util.Locale getPreviewLocale() 
 - 
addLocaleListenerpublic abstract void addLocaleListener(LocaleListener listener) 
 - 
removeLocaleListenerpublic abstract void removeLocaleListener(LocaleListener listener) 
 - 
resetLocalepublic abstract void resetLocale() Resets the current locale to the base locale. *
 
- 
 
-