Package com.vaadin.ui

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


    final TextField textField = new TextField("Wartość");
    textField.setRequired(true);
    textField.setValue("100.99");
    textField.addValidator(new DoubleValidator("Tylko wartości liczbowe"));
    form.addField("value", textField);
    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


    Window window2 = new Window("Dane");
    window2.setModal(true);
    window.addWindow(window2);
    LoginForm loginForm = new LoginForm();
    loginForm.setUsernameCaption("Imie i nazwisko");
    window2.addComponent(loginForm);
  }

  private void addButtonWithTextFieldGenerator(HorizontalSplitPanel verticalLayout) {
    Button button = new Button("Pokaz");
    button.setSizeFull();
View Full Code Here

        Window dodajWindow = new Window("Dodaj");
        dodajWindow.setWidth(400, Form.UNITS_PIXELS);
        dodajWindow.center();
        final Form form = new Form();
        form.setCaption("asdas");
        dodajWindow.addComponent(form);
        form.setItemDataSource(new BeanItem(new Customer()));
        Button button = new Button("Zapisz", form, "commit");
        button.addListener(new ClickListener() {

          public void buttonClick(ClickEvent event) {
View Full Code Here

                        + "You can retry accessing the user interface by <a href=\"?restartApplication\">following this link</a>.</p>");
            richText.setContentMode(Label.CONTENT_XHTML);

            // 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
            message.addComponent(richText);
            return;
        }

        m_mainWindow = new Window("Apache ACE");
        m_mainWindow.getContent().setSizeFull();
View Full Code Here

        tabsheet.addTab(new AddressFormExample(), "Address Form", null);
        tabsheet.addTab(new NestedFormExample(false), "Nested Forms", null);
        tabsheet.addTab(new NestedFormExample(true), "Embedded Form", null);
        tabsheet.addTab(new BooleanFieldExample(), "Boolean Field", null);

        mainWindow.addComponent(tabsheet);

        setMainWindow(mainWindow);
    }
   
   
View Full Code Here

        tabsheet.addTab(new NestedFormExample(false), "Nested Forms", null);
        tabsheet.addTab(new NestedFormExample(true), "Embedded Form", null);
        tabsheet.addTab(new BooleanFieldExample(), "Boolean Field", null);
        tabsheet.addTab(new BeanFieldExample(), "ID-Bean Conversions", null);

        mainWindow.addComponent(tabsheet);

        setMainWindow(mainWindow);
    }
   
  public static void main(String[] args) throws Exception {
View Full Code Here

     
     
     
    });
   
    odemeWindow.addComponent(layout);
    return odemeWindow;
  }
  public static double round(double d, int decimalPlace){
     BigDecimal bd = new BigDecimal(Double.toString(d));
        bd = bd.setScale(decimalPlace,BigDecimal.ROUND_HALF_UP);
View Full Code Here

    main.setContent(new HorizontalLayout());

    // create the calendar component and add to layout
    from = new CalendarField();
    main.addComponent(from);
    from.setResolution(DateField.RESOLUTION_HOUR);
    from.setImmediate(true);

    to = new CalendarField();
    main.addComponent(to);
View Full Code Here

    main.addComponent(from);
    from.setResolution(DateField.RESOLUTION_HOUR);
    from.setImmediate(true);

    to = new CalendarField();
    main.addComponent(to);
    to.setResolution(DateField.RESOLUTION_HOUR);
    to.setEnabled(false);
    to.setImmediate(true);

    from.addListener(new ValueChangeListener() {
View Full Code Here

                + "You can retry accessing the user interface by <a href=\"?restartApplication\">following this link</a>.</p>");
            richText.setContentMode(Label.CONTENT_XHTML);

            // 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
            message.addComponent(richText);
            return;
        }

        m_mainWindow = new Window("Apache ACE");
        m_mainWindow.getContent().setSizeFull();
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.