summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-27 16:57:54 +0200
committerHenrik Paul <henrik@vaadin.com>2015-01-29 11:26:44 +0000
commita33e96dab673bbdfd1183421eb625cce3c2095f3 (patch)
tree721827aba6fde9713b8fa4c8744ff7ea55386dca
parent6aea785642f66dbde578765dcaa429415c8ac75c (diff)
downloadvaadin-framework-a33e96dab673bbdfd1183421eb625cce3c2095f3.tar.gz
vaadin-framework-a33e96dab673bbdfd1183421eb625cce3c2095f3.zip
Getter for editor field factory (#16512)
Change-Id: Ib4e8cf909dcc67c1239e7aaf1fcee7430ce09026
-rw-r--r--server/src/com/vaadin/ui/Grid.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java
index adb08e0fcc..8f35001447 100644
--- a/server/src/com/vaadin/ui/Grid.java
+++ b/server/src/com/vaadin/ui/Grid.java
@@ -4652,6 +4652,18 @@ public class Grid extends AbstractComponent implements SelectionNotifier,
editorFieldGroup.setFieldFactory(fieldFactory);
}
+ /**
+ * 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,