public class DefaultNlsResourceBundleRequestor extends Object implements NlsResourceBundleRequestor
NlsResourceBundleRequestor.| Constructor and Description |
|---|
DefaultNlsResourceBundleRequestor()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isAvailable(String... bundleNames)
This method verifies that the given
bundleNames are available ResourceBundles. |
void |
requestBundlesAsynchron(Runnable callback,
String... bundleNames)
This method requests a number of
ResourceBundles by their
base-name. |
public DefaultNlsResourceBundleRequestor()
public void requestBundlesAsynchron(Runnable callback, String... bundleNames)
NlsResourceBundleRequestorResourceBundles by their
base-name. In a GWT environment this will cause that
these ResourceBundle are loaded from the server (if not already available) in the
Locale of the user so they are available for dictionaries. After the last bundle has
been loaded the given callback will be invoked. In other environments this method will do nothing
but synchronously invoking the callback.requestBundlesAsynchron in interface NlsResourceBundleRequestorcallback - is the Runnable that is called when all bundles are loaded
and available.bundleNames - are the base-names of the requested
ResourceBundles.private boolean isAvailable(String... bundleNames)
bundleNames are available ResourceBundles.bundleNames - are the bundle names.true.Copyright © 2001–2016 mmm-Team. All rights reserved.