Skip to content

Commit

Permalink
Getter for editor field factory (#16512)
Browse files Browse the repository at this point in the history
Change-Id: Ib4e8cf909dcc67c1239e7aaf1fcee7430ce09026
  • Loading branch information
Artur- authored and Henrik Paul committed Jan 29, 2015
1 parent 6aea785 commit a33e96d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/src/com/vaadin/ui/Grid.java
Expand Up @@ -4652,6 +4652,18 @@ public void setEditorFieldFactory(FieldGroupFieldFactory fieldFactory) {
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,
Expand Down

0 comments on commit a33e96d

Please sign in to comment.