| java.lang.Object com.google.gwt.i18n.rebind.util.ResourceFactory
ResourceFactory | abstract public class ResourceFactory (Code) | | Creates resources.
|
Inner Class :static class SimplePathTree extends AbstractPathTree | |
DEFAULT_TOKEN | final public static String DEFAULT_TOKEN(Code) | | Represents default locale.
|
LOCALE_SEPARATOR | final public static char LOCALE_SEPARATOR(Code) | | |
clearCache | public static void clearCache()(Code) | | Clears the resource cache.
|
getBundle | public static AbstractResource getBundle(Class> javaInterface, String locale)(Code) | | Gets the resource associated with the given interface.
Parameters: javaInterface - interface Parameters: locale - locale name the resource |
getBundle | public static AbstractResource getBundle(JClassType javaInterface, String locale)(Code) | | Gets the resource associated with the given interface.
Parameters: javaInterface - interface Parameters: locale - locale name the resource |
getBundle | public static AbstractResource getBundle(String path, String locale)(Code) | | Gets the resource associated with the given path.
Parameters: path - the path Parameters: locale - locale name the resource |
getParentLocaleName | public static String getParentLocaleName(String localeName)(Code) | | Given a locale name, derives the parent's locale name. For example, if
the locale name is "en_US", the parent locale name would be "en". If the
locale name is that of a top level locale (i.e. no '_' characters, such
as "fr"), then the the parent locale name is that of the default locale.
If the locale name is null, the empty string, or is already that of the
default locale, then null is returned.
Parameters: localeName - the locale name the parent's locale name |
|
|