Package com.vaadin.ui

Examples of com.vaadin.ui.Form.addField()


         * reference component.
         */
        integerProperty = new ObjectProperty<Integer>(42);
        integerField = new TextField("Another Field", integerProperty);
        integerField.setId("_IF");
        form.addField("text", integerField);

        /*
         * Action buttons.
         */
        Button validate = new Button("Validate");
View Full Code Here


        PopupDateField datefield = new PopupDateField();
        datefield.setResolution(PopupDateField.RESOLUTION_DAY);
        datefield.setDateFormat("dd/MM/yyyy");

        form.addField("datefield", datefield);

        Button button = new Button("Validate");

        button.addListener(new Button.ClickListener() {
            @Override
View Full Code Here

    window.center();
    final Form form = new Form();
    form.setFooter(new VerticalLayout());
    final InlineDateField dateField = new InlineDateField("Miesiąc");
    dateField.setResolution(DateField.RESOLUTION_MONTH);
    form.addField("month", dateField);
    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);
View Full Code Here

    form.addField("month", dateField);
    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() {
View Full Code Here

        // t.setPropertyDataSource(p); // UNCOMMENT THIS LINE TO SEE BUG
        // HAPPENING
        // f.setPropertyDataSource(p);
        // f.setImmediate(true);
        t.setPropertyDataSource(f);
        form.addField("table", t);
        form.addField("name", f);
        addComponent(form);

    }
View Full Code Here

        // HAPPENING
        // f.setPropertyDataSource(p);
        // f.setImmediate(true);
        t.setPropertyDataSource(f);
        form.addField("table", t);
        form.addField("name", f);
        addComponent(form);

    }

    @Override
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.