Package com.vaadin.ui

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


              me.getApplication().getMainWindow()
                  .setContent(new UserPageUI(user));

            }
          });
          editWindow.addComponent(saveButton);

          me.getApplication().getMainWindow().addWindow(editWindow);
        }
      });
      userPanel.addComponent(passwordButton);
View Full Code Here


          Button yes = new Button("Yes");
          Button no = new Button("No");
          hor.addComponent(yes);
          hor.addComponent(no);
          vert.addComponent(hor);
          w.addComponent(vert);
          me.getApplication().getMainWindow().addWindow(w);
          yes.addListener(new ClickListener() {

            /**
             *
 
View Full Code Here

          e.printStackTrace();
          me.getApplication().getMainWindow()
              .showNotification("Database error!");
        }

        editWindow.addComponent(list);
        Button saveButton2 = new Button("Save");
        editWindow.addComponent(saveButton2);

        editWindow.setWidth("400");
        editWindow.setImmediate(true);
View Full Code Here

              .showNotification("Database error!");
        }

        editWindow.addComponent(list);
        Button saveButton2 = new Button("Save");
        editWindow.addComponent(saveButton2);

        editWindow.setWidth("400");
        editWindow.setImmediate(true);
        saveButton2.setImmediate(true);
        saveButton2.addListener(new ClickListener() {
View Full Code Here

        if (p.getDescription() != null) {
          projectText.setValue(p.getDescription());
        }

        editWindow.addComponent(projectText);
        editWindow.addComponent(save);

        save.addListener(new ClickListener() {
          /**
           *
 
View Full Code Here

        if (p.getDescription() != null) {
          projectText.setValue(p.getDescription());
        }

        editWindow.addComponent(projectText);
        editWindow.addComponent(save);

        save.addListener(new ClickListener() {
          /**
           *
           */
 
View Full Code Here

        Button saveDate = new Button("Save");

        dateUpdate.setValue(new Date());
        dateUpdate.setDateFormat("dd-MM-yyyy");

        editWindow.addComponent(dateUpdate);
        editWindow.addComponent(saveDate);

        saveDate.addListener(new ClickListener() {
          /**
           *
 
View Full Code Here

        dateUpdate.setValue(new Date());
        dateUpdate.setDateFormat("dd-MM-yyyy");

        editWindow.addComponent(dateUpdate);
        editWindow.addComponent(saveDate);

        saveDate.addListener(new ClickListener() {
          /**
           *
           */
 
View Full Code Here

  private MainPresenter mainPresenter;

  public void init() {
    setTheme("bookmark");
    final Window window = new Window(bundle.getString("app.title"));
    window.addComponent(mainPresenter.getView());
    setMainWindow(window);
  }

}
View Full Code Here

                "You can retry accessing the user interface by <a href=\"?restartApplication\">following this link</a>.</p>"
            );
            // TODO we might want to add some more details here as to what's missing
            // on the other hand, the user probably can't fix that anyway
            richText.setContentMode(Label.CONTENT_XHTML);
            message.addComponent(richText);
            return;
        }
       
        final Window main = new Window("Apache ACE");
        setMainWindow(main);
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.