public final class EntryPointStarter extends Object
GWT.runAsync(new RunAsyncCallback() {
@Override
public void onFailure(Throwable throwable) {
Window.alert("Code download failed");
}
@Override
public void onSuccess() {
EntryPointStarter.run(DeferredResources.INSTANCE, new Runnable() {
@Override
public void run() {
// CHARBA charts and api...
}
});
}
});
| Modifier and Type | Method and Description |
|---|---|
static void |
run(AbstractDeferredResources resources,
Runnable runnable)
Start an entry point as a runnable.
This runnable instance must contains all calls to chart. This helps when the GWT application is leveraging on code splitting. |
public static void run(AbstractDeferredResources resources, Runnable runnable)
resources - deferred resources instance to setrunnable - the entry point instance as runnable