Package org.gwtoolbox.widget.client.panel.dashboard

Examples of org.gwtoolbox.widget.client.panel.dashboard.DashboardPanel


    private SimplePanel main;

    public DashboardPanelSample() {
        main = new SimplePanel();
        DashboardPanel panel = createDashboard();
        panel.setSize("100%", "100%");
        main.setWidget(panel);
        initWidget(main);
    }
View Full Code Here


    public Widget getContentWidget() {
        return this;
    }

    public void reset() {
        DashboardPanel panel = createDashboard();
        panel.setSize("100%", "100%");
        main.setWidget(panel);
    }
View Full Code Here

        panel.setSize("100%", "100%");
        main.setWidget(panel);
    }

    private DashboardPanel createDashboard() {
        DashboardPanel panel = new DashboardPanel(3);

        SampleGadget gadget = new SampleGadget("Gadget 1", "Content of gadget 1", "Maximized content of gadget 1");
        panel.addGadget(0, gadget);

        gadget = new SampleGadget("Gadget 2", "Content of gadget 2", "Maximized content of gadget 2");
        panel.addGadget(0, gadget);

        gadget = new SampleGadget("Gadget 3", "Content of gadget 3");
        panel.addGadget(0, gadget);

        gadget = new SampleGadget("Gadget 4", "Content of gadget 4", "Maximized content of gadget 4");
        panel.addGadget(1, gadget);

        gadget = new SampleGadget("Gadget 5", "Content of gadget 5", "Maximized content of gadget 5");
        panel.addGadget(1, gadget);

        gadget = new SampleGadget("Gadget 6", "Content of gadget 6");
        panel.addGadget(1, gadget);

        gadget = new SampleGadget("Gadget 7", "Content of gadget 7", "Maximized content of gadget 7");
        panel.addGadget(2, gadget);

        gadget = new SampleGadget("Gadget 8", "Content of gadget 8", "Maximized content of gadget 8");
        panel.addGadget(2, gadget);

        gadget = new SampleGadget("Gadget 9", "Content of gadget 9");
        panel.addGadget(2, gadget);

        HTML widget = new HTML("Widget");
        widget.setHeight("100px");
        panel.addWidget(2, "The Widget", widget);
       
        return panel;
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.dashboard.DashboardPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.