Alphabetical Index

A D F G I L M O P R S T

A

add(org.xnap.commons.i18n.I18n) - method in class org.xnap.commons.i18n.I18nManager
Adds i18n to the list of managed I18n objects.
Adds a listener that is notified when the default locale has been changed.
Adds a listener that is notified when the default locale has been changed using a WeakReference.

D

DEFAULT_BASE_NAME - static field in class org.xnap.commons.i18n.I18nFactory
Default name for Message bundles, is "i18n.Messages".

F

fireLocaleChangedEvent(Locale) - method in class org.xnap.commons.i18n.I18nManager
Notifies listeners of a locale change.

G

getI18n(Class) - static method in class org.xnap.commons.i18n.I18nFactory
getI18n(Class,String) - static method in class org.xnap.commons.i18n.I18nFactory
Returns the I18n instance responsible for translating messages in the package specified by clazz.
getInstance() - static method in class org.xnap.commons.i18n.I18nManager
Returns the global I18Manger singleton.
getNewLocale() - method in class org.xnap.commons.i18n.LocaleChangeEvent
Returns the new locale.
getResources() - method in class org.xnap.commons.i18n.I18n
Returns the current resource bundle.

I

I18n - class org.xnap.commons.i18n.I18n
Provides methods for internationalization.
I18n(ResourceBundle) - constructor for class org.xnap.commons.i18n.I18n
Constructs an I18n object for a resource bundle.
I18n(String,Locale,ClassLoader) - constructor for class org.xnap.commons.i18n.I18n
Constructs an I18n object by calling setResources(String,Locale,ClassLoader).
I18nFactory - class org.xnap.commons.i18n.I18nFactory
Factory class that creates and caches I18n instances.
I18nManager - class org.xnap.commons.i18n.I18nManager
Manager class that maintains a set of I18n objects and LocaleChangeListener objects.

L

Invoked when the local has changed.
LocaleChangeEvent - class org.xnap.commons.i18n.LocaleChangeEvent
Provides information about a locale change.
LocaleChangeEvent(Object,Locale) - constructor for class org.xnap.commons.i18n.LocaleChangeEvent
LocaleChangeListener - interface org.xnap.commons.i18n.LocaleChangeListener
Defines the requirements for classes that get notified when the locale is changed.

M

marktr(String) - static method in class org.xnap.commons.i18n.I18n
Marks text to be translated, but doesn't return the translation but text itself.

O

Provides classes for internationalization (i18n).

P

PROPS_FILENAME - static field in class org.xnap.commons.i18n.I18nFactory
Filename of the poperties file that contains the i18n properties, is "i18n.properties".

R

remove(org.xnap.commons.i18n.I18n) - method in class org.xnap.commons.i18n.I18nManager
Removes i18n from the list of managed I18n objects.
Removes listener from the list of objects that are notified when the locale has changed.

S

setDefaultLocale(Locale) - method in class org.xnap.commons.i18n.I18nManager
Sets the locale for all I18n instances that were instantiated through the factory and invokes Locale.setDefault(java.util.Locale).
setLocale(Locale) - method in class org.xnap.commons.i18n.I18n
Tries to load a resource bundle for the locale.
setResources(ResourceBundle) - method in class org.xnap.commons.i18n.I18n
Sets a resource bundle to be used for message translations.
setResources(String,Locale,ClassLoader) - method in class org.xnap.commons.i18n.I18n
Tries to load a resource bundle using ResourceBundle.getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader).
setSourceCodeLocale(Locale) - method in class org.xnap.commons.i18n.I18n
Sets the locale of the text in the source code.

T

tr(String) - method in class org.xnap.commons.i18n.I18n
Returns text translated into the currently selected language.
tr(String,Object) - method in class org.xnap.commons.i18n.I18n
Convenience method that invokes tr(String,Object[]).
tr(String,Object,Object) - method in class org.xnap.commons.i18n.I18n
Convenience method that invokes tr(String,Object[]).
tr(String,Object,Object,Object) - method in class org.xnap.commons.i18n.I18n
Convenience method that invokes tr(String,Object[]).
tr(String,Object,Object,Object,Object) - method in class org.xnap.commons.i18n.I18n
Convenience method that invokes tr(String,Object[]).
tr(String,Object[]) - method in class org.xnap.commons.i18n.I18n
Returns text translated into the currently selected language.
trc(String,String) - method in class org.xnap.commons.i18n.I18n
Disambiguates translation keys.
trn(String,String,long) - method in class org.xnap.commons.i18n.I18n
Returns the plural form for n of the translation of text.
trn(String,String,long,Object) - method in class org.xnap.commons.i18n.I18n
Overloaded method that invokes trn(String,String,long,Object[]) passing Object arguments as an array.
trn(String,String,long,Object,Object) - method in class org.xnap.commons.i18n.I18n
Overloaded method that invokes trn(String,String,long,Object[]) passing Object arguments as an array.
trn(String,String,long,Object,Object,Object) - method in class org.xnap.commons.i18n.I18n
Overloaded method that invokes trn(String,String,long,Object[]) passing Object arguments as an array.
trn(String,String,long,Object,Object,Object,Object) - method in class org.xnap.commons.i18n.I18n
Overloaded method that invokes trn(String,String,long,Object[]) passing Object arguments as an array.
trn(String,String,long,Object[]) - method in class org.xnap.commons.i18n.I18n
Returns the plural form for n of the translation of text.