Example usage for com.vaadin.ui FormLayout setHeightUndefined

List of usage examples for com.vaadin.ui FormLayout setHeightUndefined

Introduction

In this page you can find the example usage for com.vaadin.ui FormLayout setHeightUndefined.

Prototype

@Override
    public void setHeightUndefined() 

Source Link

Usage

From source file:com.example.EditingWindow.java

License:Apache License

protected FormLayout makeFormLayout(BeanFieldGroup<Person> fieldGroup, BeanItem<Person> item) {
    FormLayout formLayout = new FormLayout();
    formLayout.setMargin(true);//from  w  w  w.j  a  v  a 2  s. c o m
    formLayout.setHeightUndefined();

    fieldGroup.setItemDataSource(person);
    for (Object pid : item.getItemPropertyIds()) {
        if (pid.equals("id"))
            continue;
        formLayout.addComponent(fieldGroup.buildAndBind(pid));
    }

    return formLayout;
}