Package org.gwtoolbox.widget.client.panel.contentpanel

Examples of org.gwtoolbox.widget.client.panel.contentpanel.ContentPanel$ToolButton


            public void onSuccess(Void v) {
                grid.setVisible(true);
            }
        });

        final ContentPanel contentPanel = new ContentPanel("People", WidgetImages.Instance.get().icon_Table().createImage());
        contentPanel.setWidth("700px");
        contentPanel.setContent(grid);
        contentPanel.setCollapsable(true);

        HorizontalPanel top = new HorizontalPanel();
        top.add(contentPanel);
        addGap(top, "20px");
View Full Code Here


    private ContentPanel contentPanel;

    public ContentPanelSamplePane() {

        Image image = new Image("images/gears.gif");
        contentPanel = new ContentPanel("Settings", image, true);
        contentPanel.setShowBorder(true);
        contentPanel.setCollapsable(true);
        contentPanel.setClosable(true);
        contentPanel.addCloseHandler(new CloseHandler<ContentPanel>() {
            public void onClose(CloseEvent<ContentPanel> contentPanelCloseEvent) {
View Full Code Here

public class DashboardWidget extends Composite {

    private ContentPanel main;

    public DashboardWidget(String name, Widget content, DashboardDragController controller) {
        main = new ContentPanel(name);
        main.setCollapsable(true);
        main.setContent(content);
        main.addTitleMouseHandler(new DnDListener(this, controller));
        SimplePanel panel = new SimplePanel();
        panel.setWidget(main);
View Full Code Here

        dashboardColumn.addWidget(dashboardWidget);
        return dashboardWidget;
    }

    private void showMaximizedContent(Gadget gadget) {
        ContentPanel contentPanel = new ContentPanel(gadget.getTitle());
        contentPanel.addTool(ContentPanel.Tools.UNMAXIMIZE, new ClickHandler() {
            public void onClick(ClickEvent event) {
                main.setWidget(columns);
            }
        });
        contentPanel.setContent(gadget.getMaximizedContent());
        main.setWidget(contentPanel);
        contentPanel.setSize("100%", "100%");
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.contentpanel.ContentPanel$ToolButton

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.