Example usage for com.google.gwt.debugpanel.client DefaultCookieDebugPanelComponent DefaultCookieDebugPanelComponent

List of usage examples for com.google.gwt.debugpanel.client DefaultCookieDebugPanelComponent DefaultCookieDebugPanelComponent

Introduction

In this page you can find the example usage for com.google.gwt.debugpanel.client DefaultCookieDebugPanelComponent DefaultCookieDebugPanelComponent.

Prototype

public DefaultCookieDebugPanelComponent() 

Source Link

Usage

From source file:com.example.panel.client.MyDebugPanel.java

License:Apache License

public void onModuleLoad() {
    sys = new GwtStatisticsEventSystem();
    panelComponent = new DefaultDebugStatisticsDebugPanelComponent(null);
    xmlComponent = panelComponent.xmlComponent();
    logComponent = new DefaultRawLogDebugPanelComponent(sys);
    em = new GwtExceptionModel();

    // Find the debug-panel div, or add it to (current) bottom of page.
    RootPanel root = RootPanel.get("debug-panel");
    if (root == null) {
        root = RootPanel.get();// ww w.j av a2 s  . c o  m
    }

    root.add(new DebugPanelWidget(this, true,
            new DebugPanelWidget.Component[] { panelComponent, new DefaultExceptionDebugPanelComponent(em),
                    new DefaultCookieDebugPanelComponent(), logComponent, xmlComponent }));
}