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

A

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

D

DEFAULT - Static variable in class org.xnap.commons.i18n.I18nFactory
Use the default configuration.
DEFAULT_BASE_NAME - Static variable in class org.xnap.commons.i18n.I18nFactory
Default name for Message bundles, is "i18n.Messages".

F

FALLBACK - Static variable in class org.xnap.commons.i18n.I18nFactory
Fall back to a default resource bundle that returns the passed text if no resource bundle can be located.
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
Calls getI18n(clazz, Locale.getDefault()).
getI18n(Class, Locale) - Static method in class org.xnap.commons.i18n.I18nFactory
Calls getI18n(clazz, locale, READ_PROPERTIES).
getI18n(Class, Locale, int) - Static method in class org.xnap.commons.i18n.I18nFactory
Returns the I18n instance responsible for translating messages in the package specified by clazz.
getI18n(Class, String) - Static method in class org.xnap.commons.i18n.I18nFactory
Calls getI18n(clazz, bundleName, Locale.getDefault()).
getI18n(Class, String, Locale) - Static method in class org.xnap.commons.i18n.I18nFactory
Calls getI18n(clazz, bundleName, locale, DEFAULT).
getI18n(Class, String, Locale, int) - Static method in class org.xnap.commons.i18n.I18nFactory
Calls getI18n(getPackageName(clazz), bundleName, clazz.getClassLoader(), locale, DEFAULT).
getI18n(String, String, ClassLoader, Locale, int) - Static method in class org.xnap.commons.i18n.I18nFactory
 
getInstance() - Static method in class org.xnap.commons.i18n.I18nManager
Returns the global I18Manger singleton.
getLocale() - Method in class org.xnap.commons.i18n.I18n
Returns the locale this instance was created with.
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 in org.xnap.commons.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 I18n.setResources(String, Locale, ClassLoader).
I18nFactory - Class in org.xnap.commons.i18n
Factory class that creates and caches I18n instances.
I18nManager - Class in org.xnap.commons.i18n
Manager class that maintains a set of I18n objects and LocaleChangeListener objects.

L

localeChanged(LocaleChangeEvent) - Method in interface org.xnap.commons.i18n.LocaleChangeListener
Invoked when the local has changed.
LocaleChangeEvent - Class in org.xnap.commons.i18n
Provides information about a locale change.
LocaleChangeEvent(Object, Locale) - Constructor for class org.xnap.commons.i18n.LocaleChangeEvent
Constructs the event.
LocaleChangeListener - Interface in org.xnap.commons.i18n
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.

N

NO_CACHE - Static variable in class org.xnap.commons.i18n.I18nFactory
Do not cache I18n instance.

O

org.xnap.commons.i18n - package org.xnap.commons.i18n
Provides classes for internationalization (i18n).

P

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

R

READ_PROPERTIES - Static variable in class org.xnap.commons.i18n.I18nFactory
Look for files named I18nFactory.PROPS_FILENAME to determine the basename.
remove(I18n) - Method in class org.xnap.commons.i18n.I18nManager
Removes i18n from the list of managed I18n objects.
removeLocaleChangeListener(LocaleChangeListener) - Method in class org.xnap.commons.i18n.I18nManager
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.
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
Returns text translated into the currently selected language.
tr(String, Object) - Method in class org.xnap.commons.i18n.I18n
Convenience method that invokes I18n.tr(String, Object[]).
tr(String, Object, Object) - Method in class org.xnap.commons.i18n.I18n
Convenience method that invokes I18n.tr(String, Object[]).
tr(String, Object, Object, Object) - Method in class org.xnap.commons.i18n.I18n
Convenience method that invokes I18n.tr(String, Object[]).
tr(String, Object, Object, Object, Object) - Method in class org.xnap.commons.i18n.I18n
Convenience method that invokes I18n.tr(String, Object[]).
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
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 I18n.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 I18n.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 I18n.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 I18n.trn(String, String, long, Object[]) passing Object arguments as an array.

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

Copyright © 2004-2007 Gettext Commons Team. All Rights Reserved.