diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-05-11 14:34:10 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-05-11 14:34:10 +0000 |
commit | 064bc4fe71fa23c9e4a3758e8ff824aeb533686d (patch) | |
tree | fb14da2180bfe354ec5acb8cc6a5b19fc4f844b1 /src/com/vaadin/ui/FormFieldFactory.java | |
parent | 64d30355cd9f09ba0faff690fd798abc79533a8e (diff) | |
download | vaadin-framework-064bc4fe71fa23c9e4a3758e8ff824aeb533686d.tar.gz vaadin-framework-064bc4fe71fa23c9e4a3758e8ff824aeb533686d.zip |
Split old FieldFactory into two smaller interfaces. #2499
svn changeset:7744/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/ui/FormFieldFactory.java')
-rw-r--r-- | src/com/vaadin/ui/FormFieldFactory.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/FormFieldFactory.java b/src/com/vaadin/ui/FormFieldFactory.java new file mode 100644 index 0000000000..fafe9caac7 --- /dev/null +++ b/src/com/vaadin/ui/FormFieldFactory.java @@ -0,0 +1,24 @@ +package com.vaadin.ui; + +import java.io.Serializable; + +import com.vaadin.data.Item; + +public interface FormFieldFactory extends Serializable { + /** + * Creates a field based on the item, property id and the component where + * the Field will be placed in. + * + * @param item + * the item where the property belongs to. + * @param propertyId + * the Id of the property. + * @param uiContext + * the component where the field is presented, most commonly this + * is {@link Form}. uiContext will not necessary be the parent + * component of the field, but the one that is responsible for + * creating it. + * @return Field the field suitable for editing the specified data. + */ + Field createField(Item item, Object propertyId, Component uiContext); +} |