Examples of bindMemberFields()


Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        BeanItem<BeanWithReadOnlyField> beanItem = new BeanItem<BeanWithReadOnlyField>(
                bean);
        beanItem.getItemProperty("readOnlyField").setReadOnly(true);

        FieldGroup fieldGroup = new FieldGroup(beanItem);
        fieldGroup.bindMemberFields(this);

        assertTrue(readOnlyField.isReadOnly());
        assertFalse(writableField.isReadOnly());
    }
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        BeanItem<BeanWithReadOnlyField> beanItem = new BeanItem<BeanWithReadOnlyField>(
                bean);
        beanItem.getItemProperty("readOnlyField").setReadOnly(true);

        FieldGroup fieldGroup = new FieldGroup(beanItem);
        fieldGroup.bindMemberFields(this);

        fieldGroup.setReadOnly(true);
        assertTrue(readOnlyField.isReadOnly());
        assertTrue(writableField.isReadOnly());
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

                "Value of testProperty"));

        MySubClass form = new MySubClass();

        FieldGroup binder = new FieldGroup(item);
        binder.bindMemberFields(form);

        assertTrue("Value of testProperty".equals(form.test.getValue()));
    }

}
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        MyForm form = new MyForm();

        // Now create a binder that can also creates the fields
        // using the default field factory
        FieldGroup binder = new FieldGroup(item);
        binder.bindMemberFields(form);

        assertTrue(form.description.getValue().equals("This is a description"));
    }

}
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        }

        MyForm form = new MyForm();

        FieldGroup binder = new FieldGroup(item);
        binder.bindMemberFields(form);

        assertTrue("Sparrow".equals(form.lastName.getValue()));
    }

    @Test
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        }

        MyForm form = new MyForm();

        FieldGroup binder = new FieldGroup(item);
        binder.bindMemberFields(form);

        assertTrue("Jack".equals(form.firstName.getValue()));
    }

    @Test
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        }

        MyForm form = new MyForm();

        FieldGroup binder = new FieldGroup(item);
        binder.bindMemberFields(form);

        assertTrue("This".equals(form.firstName.getValue()));
    }

}
View Full Code Here

Examples of com.vaadin.data.fieldgroup.FieldGroup.bindMemberFields()

        MyFormLayout myFormLayout = new MyFormLayout();

        // Create a field group and use it to bind the fields in the layout
        FieldGroup fieldGroup = new FieldGroup(new BeanItem<Notice>(new Notice(
                "John", "Doe", "")));
        fieldGroup.bindMemberFields(myFormLayout);

        addComponent(myFormLayout);
    }

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