From 04d52c41f48c9e8811a9d03c7ae0204e73f1bde2 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 27 Jan 2015 18:16:03 +0200 Subject: Use a custom field factory for editor row (#16513) Change-Id: I0102d93c7f661993a5a07d2bcdf511f433419300 --- .../fieldgroup/DefaultFieldGroupFieldFactory.java | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'server/src/com/vaadin/data') diff --git a/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java b/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java index 8e32585a47..b6bf97e68e 100644 --- a/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java +++ b/server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java @@ -129,10 +129,6 @@ public class DefaultFieldGroupFieldFactory implements FieldGroupFieldFactory { return (T) field; } - private boolean anyField(Class fieldType) { - return fieldType == Field.class || fieldType == AbstractField.class; - } - protected AbstractSelect createCompatibleSelect( Class fieldType) { AbstractSelect select; @@ -157,7 +153,23 @@ public class DefaultFieldGroupFieldFactory implements FieldGroupFieldFactory { return select; } - private boolean anySelect(Class fieldType) { + /** + * @since 7.4 + * @param fieldType + * the type of the field + * @return true if any AbstractField can be assigned to the field + */ + protected boolean anyField(Class fieldType) { + return fieldType == Field.class || fieldType == AbstractField.class; + } + + /** + * @since 7.4 + * @param fieldType + * the type of the field + * @return true if any AbstractSelect can be assigned to the field + */ + protected boolean anySelect(Class fieldType) { return anyField(fieldType) || fieldType == AbstractSelect.class; } -- cgit v1.2.3