summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorHenrik Paul <henrik@vaadin.com>2015-02-03 16:19:46 +0200
committerHenrik Paul <henrik@vaadin.com>2015-02-03 16:23:15 +0200
commitbd8931f0cd8ed05c9891f4f5eb3646bc3d4bc989 (patch)
treeafba841657349211f723180b0d22d880bba1dc12 /server
parent9cac6602821383dc2e03607066c0ea7ec7d01af7 (diff)
parent0dcaa660c5bd2c5c2bdea352c5141754a549b18c (diff)
downloadvaadin-framework-bd8931f0cd8ed05c9891f4f5eb3646bc3d4bc989.tar.gz
vaadin-framework-bd8931f0cd8ed05c9891f4f5eb3646bc3d4bc989.zip
Merge branch 'grid'
Change-Id: I31da151c65ce307d6205905682c6f1e6bbbed258
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Grid.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java
index 0ba771b283..458522f58e 100644
--- a/server/src/com/vaadin/ui/Grid.java
+++ b/server/src/com/vaadin/ui/Grid.java
@@ -51,7 +51,6 @@ import com.vaadin.data.RpcDataProviderExtension.DataProviderKeyMapper;
import com.vaadin.data.Validator.InvalidValueException;
import com.vaadin.data.fieldgroup.DefaultFieldGroupFieldFactory;
import com.vaadin.data.fieldgroup.FieldGroup;
-import com.vaadin.data.fieldgroup.FieldGroup.BindException;
import com.vaadin.data.fieldgroup.FieldGroup.CommitException;
import com.vaadin.data.fieldgroup.FieldGroupFieldFactory;
import com.vaadin.data.sort.Sort;
@@ -4851,6 +4850,18 @@ public class Grid extends AbstractComponent implements SelectionNotifier,
return editorErrorHandler;
}
+ /**
+ * Gets the field factory for the {@link FieldGroup}. The field factory is
+ * only used when {@link FieldGroup} creates a new field.
+ * <p>
+ * <em>Note:</em> This is a pass-through call to the backing field group.
+ *
+ * @return The field factory in use
+ */
+ public FieldGroupFieldFactory getEditorFieldFactory() {
+ return editorFieldGroup.getFieldFactory();
+ }
+
@Override
public void addItemClickListener(ItemClickListener listener) {
addListener(GridConstants.ITEM_CLICK_EVENT_ID, ItemClickEvent.class,