Search in sources :

Example 1 with SiteGridPanel

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");
    }
}
Also used : GWT(com.google.gwt.core.client.GWT) Filter(org.activityinfo.shared.command.Filter) SiteGridPanel(org.activityinfo.client.page.entry.SiteGridPanel)

Aggregations

GWT (com.google.gwt.core.client.GWT)1 SiteGridPanel (org.activityinfo.client.page.entry.SiteGridPanel)1 Filter (org.activityinfo.shared.command.Filter)1