Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.Window.addItem()


        Window window = new Window();
        window.setTitle("Minimizing a window");
        window.setWidth(300);
        window.setHeight(85);
        window.setCanDragResize(true);
        window.addItem(label);
       
        Canvas canvasMain = new Canvas();
        canvasMain.addChild(window);
       
        return canvasMain;
View Full Code Here


        label.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                window.setStatus("Click at: " + event.getX() + ", " + event.getY());
            }
        });
        window.addItem(label);
        canvas.addChild(window);

        return canvas;
    }
View Full Code Here

        window.setHeight(200);
        window.setCanDragReposition(true);
        window.setCanDragResize(true);
        window.setHeaderControls(HeaderControls.CLOSE_BUTTON, HeaderControls.MINIMIZE_BUTTON, HeaderControls.HEADER_LABEL,  systemSelector);

        window.addItem(statusReportCanvas);
        statusReportCanvas.setNewStatus("Development");

        canvas.addChild(window);

        return canvas;
View Full Code Here

                dateItem.setTitle("Date");
                DateItem dateItem2 = new DateItem();
                dateItem2.setTitle("Date");
                dateItem2.setUseTextField(true);
                form.setFields(textItem, dateItem, dateItem2);
                winModal.addItem(form);
                winModal.show();
            }
        });
       
        HStack layoutTopRow = new HStack(10);
View Full Code Here

        window.setTitle("Dragging a window");
        window.setWidth(300);
        window.setHeight(230);
        window.setCanDragReposition(true);
        window.setCanDragResize(true);
        window.addItem(label);
       
        Canvas canvasMain = new Canvas();
        canvasMain.addChild(window);
        return canvasMain;
    }
View Full Code Here

        window.setWidth(width);
        window.setHeight(height);
        window.setLeft(offsetLeft);
        window.setCanDragReposition(true);
        window.setCanDragResize(true);
        window.addItem(label);

        return window;
    }

    public String getIntro() {
View Full Code Here

  public void onClick(ClickEvent event) {
    PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget);
    canvas.setMargin(WidgetLayout.marginSmall);
    Window window = new KeepInScreenWindow();
    window.setTitle(MESSAGES.printPrefsTitle());
    window.addItem(canvas);
    window.centerInPage();
    window.setAutoSize(true);
    window.show();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.