summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-27 18:16:03 +0200
committerVaadin Code Review <review@vaadin.com>2015-02-03 12:03:46 +0000
commit04d52c41f48c9e8811a9d03c7ae0204e73f1bde2 (patch)
tree0f671b5d6e01307d8b9a10d9099eb29c79af602c /server/src/com/vaadin/data
parenta508ed7b4aa062334ad84d7967cb2bdd5d8ecc26 (diff)
downloadvaadin-framework-04d52c41f48c9e8811a9d03c7ae0204e73f1bde2.tar.gz
vaadin-framework-04d52c41f48c9e8811a9d03c7ae0204e73f1bde2.zip
Use a custom field factory for editor row (#16513)
Change-Id: I0102d93c7f661993a5a07d2bcdf511f433419300
Diffstat (limited to 'server/src/com/vaadin/data')
-rw-r--r--server/src/com/vaadin/data/fieldgroup/DefaultFieldGroupFieldFactory.java22
1 files changed, 17 insertions, 5 deletions
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<? extends AbstractSelect> fieldType) {
AbstractSelect select;
@@ -157,7 +153,23 @@ public class DefaultFieldGroupFieldFactory implements FieldGroupFieldFactory {
return select;
}
- private boolean anySelect(Class<? extends Field> 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<? extends Field> fieldType) {
return anyField(fieldType) || fieldType == AbstractSelect.class;
}