diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2016-08-04 20:58:28 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-08-05 14:21:23 +0000 |
commit | f6f111b88fcf65c9d75f36daaa046dd26efc68e5 (patch) | |
tree | 624771f12426fecb07ca6b63d2a6228c31e447f3 /server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java | |
parent | 138f8ddb6927f66bc2d5bfce6d7ae5963c0ca42e (diff) | |
download | vaadin-framework-f6f111b88fcf65c9d75f36daaa046dd26efc68e5.tar.gz vaadin-framework-f6f111b88fcf65c9d75f36daaa046dd26efc68e5.zip |
Rename Field, AbstractField to legacy names
Change-Id: I46ce708e0f10e4c9fa3d11a2aef5be0248c2999f
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java b/server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java index 535943bcd5..85ad1743ea 100644 --- a/server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java +++ b/server/src/main/java/com/vaadin/ui/DefaultFieldFactory.java @@ -20,6 +20,7 @@ import java.util.Date; import com.vaadin.data.Container; import com.vaadin.data.Item; import com.vaadin.data.Property; +import com.vaadin.legacy.ui.LegacyField; import com.vaadin.shared.util.SharedUtil; /** @@ -49,21 +50,21 @@ public class DefaultFieldFactory implements FormFieldFactory, TableFieldFactory } @Override - public Field<?> createField(Item item, Object propertyId, + public LegacyField<?> createField(Item item, Object propertyId, Component uiContext) { Class<?> type = item.getItemProperty(propertyId).getType(); - Field<?> field = createFieldByPropertyType(type); + LegacyField<?> field = createFieldByPropertyType(type); field.setCaption(createCaptionByPropertyId(propertyId)); return field; } @Override - public Field createField(Container container, Object itemId, + public LegacyField createField(Container container, Object itemId, Object propertyId, Component uiContext) { Property containerProperty = container.getContainerProperty(itemId, propertyId); Class<?> type = containerProperty.getType(); - Field<?> field = createFieldByPropertyType(type); + LegacyField<?> field = createFieldByPropertyType(type); field.setCaption(createCaptionByPropertyId(propertyId)); return field; } @@ -93,9 +94,9 @@ public class DefaultFieldFactory implements FormFieldFactory, TableFieldFactory * * @param type * the type of the property - * @return the most suitable generic {@link Field} for given type + * @return the most suitable generic {@link LegacyField} for given type */ - public static Field<?> createFieldByPropertyType(Class<?> type) { + public static LegacyField<?> createFieldByPropertyType(Class<?> type) { // Null typed properties can not be edited if (type == null) { return null; |