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 ResourceBundle s. |
void |
requestBundlesAsynchron(Runnable callback,
String... bundleNames)
This method requests a number of
ResourceBundle s by their
base-name . |
public DefaultNlsResourceBundleRequestor()
public void requestBundlesAsynchron(Runnable callback, String... bundleNames)
NlsResourceBundleRequestor
ResourceBundle
s 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 NlsResourceBundleRequestor
callback
- is the Runnable
that is called
when all bundles are loaded
and available.bundleNames
- are the base-names
of the requested
ResourceBundle
s.private boolean isAvailable(String... bundleNames)
bundleNames
are available ResourceBundle
s.bundleNames
- are the bundle names
.true
.Copyright © 2001–2016 mmm-Team. All rights reserved.