package de.scai.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.layout.Layout;
import com.smartgwt.client.widgets.layout.VLayout;
import de.scai.client.ticket1445.defect.DemoTicket1445Defect;
import de.scai.client.ticket1449.defect.DemoTicket1449;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class SmartGwtBugReport implements EntryPoint {

    public static final Layout layoutRoot = new VLayout();

    /**
     * This is the entry point method.
     */
    public void onModuleLoad() {
        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {

            @Override
            public void onUncaughtException(Throwable throwable) {
                GWT.log(throwable.getMessage() + " " + throwable.getClass().getName(), throwable);
                com.google.gwt.user.client.Window.alert("Caught: " + throwable.getMessage());
            }
        });

        SC.say("Hello, world. SmartClient Version: " + com.smartgwt.client.Version.getVersion() + ", SCVersionNumber: " + com.smartgwt.client.Version.getSCVersionNumber());

        RootPanel.get("gwtContainer").add(layoutRoot);

        Demo demo;
        demo = new DemoTicket1449();
        demo.run();

    }

}
