summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/FieldFactory.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-05-11 14:34:10 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-05-11 14:34:10 +0000
commit064bc4fe71fa23c9e4a3758e8ff824aeb533686d (patch)
treefb14da2180bfe354ec5acb8cc6a5b19fc4f844b1 /src/com/vaadin/ui/FieldFactory.java
parent64d30355cd9f09ba0faff690fd798abc79533a8e (diff)
downloadvaadin-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/FieldFactory.java')
-rw-r--r--src/com/vaadin/ui/FieldFactory.java37
1 files changed, 3 insertions, 34 deletions
diff --git a/src/com/vaadin/ui/FieldFactory.java b/src/com/vaadin/ui/FieldFactory.java
index f0f96386e3..5b0218ac05 100644
--- a/src/com/vaadin/ui/FieldFactory.java
+++ b/src/com/vaadin/ui/FieldFactory.java
@@ -4,10 +4,6 @@
package com.vaadin.ui;
-import java.io.Serializable;
-
-import com.vaadin.data.Container;
-import com.vaadin.data.Item;
import com.vaadin.data.Property;
/**
@@ -18,8 +14,10 @@ import com.vaadin.data.Property;
* @version
* @VERSION@
* @since 3.1
+ * @deprecated use FormFieldFactory or TableFieldFactory or both instead
*/
-public interface FieldFactory extends Serializable {
+@Deprecated
+public interface FieldFactory extends FormFieldFactory, TableFieldFactory {
/**
* Creates a field based on type of data.
@@ -44,33 +42,4 @@ public interface FieldFactory extends Serializable {
*/
Field createField(Property property, Component uiContext);
- /**
- * Creates a field based on the item and property id.
- *
- * @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.
- * @return Field the field suitable for editing the specified data.
- */
- Field createField(Item item, Object propertyId, Component uiContext);
-
- /**
- * Creates a field based on the container item id and property id.
- *
- * @param container
- * the Container where the property belongs to.
- * @param itemId
- * the item Id.
- * @param propertyId
- * the Id of the property.
- * @param uiContext
- * the component where the field is presented.
- * @return Field the field suitable for editing the specified data.
- */
- Field createField(Container container, Object itemId, Object propertyId,
- Component uiContext);
-
} \ No newline at end of file