use of org.activityinfo.client.page.entry.SiteGridPanel in project activityinfo by bedatadriven.
the class EmbedEntryPoint method onModuleLoad.
/**
* This is the entry point method.
*/
@Override
public void onModuleLoad() {
Log.info("Application: onModuleLoad starting");
Log.info("Application Permutation: " + GWT.getPermutationStrongName());
if (Log.isErrorEnabled()) {
GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
@Override
public void onUncaughtException(Throwable e) {
Log.error("Uncaught exception", e);
}
});
}
GXT.setDefaultTheme(Theme.BLUE, true);
final EmbedInjector injector = GWT.create(EmbedInjector.class);
if (!Strings.isNullOrEmpty(Location.getParameter("sites"))) {
Filter filter = FilterUrlSerializer.fromQueryParameter(Location.getParameter("sites"));
SiteGridPanel panel = new SiteGridPanel(injector.getDispatcher());
panel.load(NullGroupingModel.INSTANCE, filter);
addToRootPanel(panel);
} else {
Window.alert("The url is malformed");
}
}
Aggregations