Package com.vaadin.ui

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


        form.setItemDataSource(item);

        form.setCaption("Edit Task");
        form.setVisibleItemProperties(VISIBLE_COLUMNS);
        form.setImmediate(true);
        form.addListener(new Property.ValueChangeListener() {
            public void valueChange(ValueChangeEvent event) {
                @SuppressWarnings("unchecked")
                BeanItem<Task> item = (BeanItem<Task>) form.getItemDataSource();
                taskService.updateTask(item.getBean());
            }
View Full Code Here


    }

    /** Create new Form with given caption and listener. */
    public Form form(String caption, Property.ValueChangeListener changeListener) {
        Form c = form(caption);
        c.addListener(changeListener);
        return c;
    }

    /** Create new NativeButton and add it to current component container. */
    public NativeButton nativebutton() {
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.