com.google.gwt.resources.client.ClientBundleWithLookup Java Examples
The following examples show how to use
com.google.gwt.resources.client.ClientBundleWithLookup.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JsAssetsProvider.java From actor-platform with GNU Affero General Public License v3.0 | 5 votes |
@Override public boolean hasAsset(String name) { name = name.replace('.', '_'); Log.d("AssetsRuntime", "HasAsset: " + name); for (ClientBundleWithLookup b : bundles) { if (b.getResource(name) != null) { return true; } } return false; }
Example #2
Source File: JsAssetsProvider.java From actor-platform with GNU Affero General Public License v3.0 | 5 votes |
@Override public String loadAsset(String name) { name = name.replace('.', '_'); Log.d("AssetsRuntime", "loadAsset: " + name); for (ClientBundleWithLookup b : bundles) { ResourcePrototype res = b.getResource(name); if (res != null) { Log.d("AssetsRuntime", "loadAsset " + res); return ((TextResource) res).getText(); } } return null; }
Example #3
Source File: JsAssetsProvider.java From actor-platform with GNU Affero General Public License v3.0 | 4 votes |
public static void registerBundle(ClientBundleWithLookup bundleWithLookup) { bundles.add(bundleWithLookup); }