Package com.vaadin.ui

Examples of com.vaadin.ui.Window.addComponent()


        }

        s = new Sparklines("Strings", 0, 0, 50, 100);
        s.setDescription("Using strings as data");
        s.setValue(data4);
        mainWindow.addComponent(s);

        HorizontalLayout hl = new HorizontalLayout();
        mainWindow.addComponent(hl);
        ((VerticalLayout) mainWindow.getContent()).setExpandRatio(hl, 1);
        ((VerticalLayout) mainWindow.getContent()).setComponentAlignment(hl,
View Full Code Here


        s.setDescription("Using strings as data");
        s.setValue(data4);
        mainWindow.addComponent(s);

        HorizontalLayout hl = new HorizontalLayout();
        mainWindow.addComponent(hl);
        ((VerticalLayout) mainWindow.getContent()).setExpandRatio(hl, 1);
        ((VerticalLayout) mainWindow.getContent()).setComponentAlignment(hl,
                Alignment.MIDDLE_LEFT);

        final Sparklines s2 = new Sparklines("Random", 200, 70, 0, 200) {
View Full Code Here

            map2.setHeight("240px");
            map2.setWidth("240px");

            Window w = new Window("popup");
            w.addComponent(map2);
            w.setHeight("300px");
            w.setWidth("300px");

            app.getMainWindow().addWindow(w);
          }
View Full Code Here

    @Override
    public void init() {
        Window w = new Window();
        setMainWindow(w);

        w.addComponent(getTestAndDemos());

    }

    public static JFreeChartWrapper createBasicDemo() {
        JFreeChart createchart = createchart(createDataset());
View Full Code Here

    final Window mainWindow = new Window("Refresher Database Example");
    setMainWindow(mainWindow);
   
    // present with a loading contents.
    content = new Label("please wait while the database is queried");
    mainWindow.addComponent(content);
   
    // the Refresher polls automatically
    final Refresher refresher = new Refresher();
    refresher.addListener(new DatabaseListener());
    mainWindow.addComponent(refresher);
View Full Code Here

    mainWindow.addComponent(content);
   
    // the Refresher polls automatically
    final Refresher refresher = new Refresher();
    refresher.addListener(new DatabaseListener());
    mainWindow.addComponent(refresher);
   
    new DatabaseQueryProcess().start();
  }
}
View Full Code Here

        // # 1

        // Create a console
        final Console console = new Console();
        mainWindow.addComponent(console);

        // Size and greeting
        console.setPs("}> ");
        console.setCols(80);
        console.setRows(24);
View Full Code Here

        console.addCommand("less", dummy);
        console.addCommand("exit", dummy);

        HorizontalLayout pl = new HorizontalLayout();
        pl.setSpacing(true);
        mainWindow.addComponent(pl);
        final TextField input = new TextField(null, "print this");
        pl.addComponent(input);
        pl.addComponent(new Button("print", new Button.ClickListener() {
            private static final long serialVersionUID = 1L;
View Full Code Here

        + System.currentTimeMillis(), application);
    // Set the right mime type
    resource.setMIMEType("application/pdf");

    e.setSource(resource);
    window.addComponent(e);
    application.getMainWindow().addWindow(window);
  }

  private void prepareContent() {
    Document document = null;
View Full Code Here

    for (String id : UserData.FIELDS_ORDER) {
      form.getField(id).setRequired(true);
      form.getField(id).setRequiredError("Wartosc wymagana");

    }
    window.addComponent(form);
    Button button = new Button("Zapisz", form, "commit");
    button.setIcon(new ThemeResource("../runo/icons/16/ok.png"));
    button.addListener(new ClickListener() {

      public void buttonClick(final ClickEvent event) {
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.