Form component provides easy way of creating and managing sets fields.
Form
is a container for fields implementing {@link Field}interface. It provides support for any layouts and provides buffering interface for easy connection of commit and discard buttons. All the form fields can be customized by adding validators, setting captions and icons, setting immediateness, etc. Also direct mechanism for replacing existing fields with selections is given.
Form
provides customizable editor for classes implementing {@link com.vaadin.data.Item} interface. Also the form itself implements thisinterface for easier connectivity to other items. To use the form as editor for an item, just connect the item to form with {@link Form#setItemDataSource(Item)}. If only a part of the item needs to be edited, {@link Form#setItemDataSource(Item,Collection)} can be used instead.After the item has been connected to the form, the automatically created fields can be customized and new fields can be added. If you need to connect a class that does not implement {@link com.vaadin.data.Item} interface, mostproperties of any class following bean pattern, can be accessed trough {@link com.vaadin.data.util.BeanItem}.
@author Vaadin Ltd.
@since 3.0
@deprecated As of 7.0, use {@link FieldGroup} instead of {@link Form} formore flexibility.