summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/featurebrowser/FormExample.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-05-14 06:18:01 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-05-14 06:18:01 +0000
commitb50c298fc41841dc0df674377caf7386ea9c7c64 (patch)
tree530fb9fa497d94df8134bcbf5d7bdbf98e8ed84a /src/com/vaadin/demo/featurebrowser/FormExample.java
parent9d62235e1de6d68b546153db3d01cb8d76e28ad7 (diff)
downloadvaadin-framework-b50c298fc41841dc0df674377caf7386ea9c7c64.tar.gz
vaadin-framework-b50c298fc41841dc0df674377caf7386ea9c7c64.zip
removed deprecated field factories from example codes, added licence tags, improved javadocs
svn changeset:7785/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/demo/featurebrowser/FormExample.java')
-rw-r--r--src/com/vaadin/demo/featurebrowser/FormExample.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/demo/featurebrowser/FormExample.java b/src/com/vaadin/demo/featurebrowser/FormExample.java
index 182e6346d1..e0888975b5 100644
--- a/src/com/vaadin/demo/featurebrowser/FormExample.java
+++ b/src/com/vaadin/demo/featurebrowser/FormExample.java
@@ -4,10 +4,10 @@ import com.vaadin.data.Item;
import com.vaadin.data.Validator;
import com.vaadin.data.Validator.InvalidValueException;
import com.vaadin.data.util.BeanItem;
-import com.vaadin.ui.BaseFieldFactory;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
+import com.vaadin.ui.DefaultFieldFactory;
import com.vaadin.ui.Field;
import com.vaadin.ui.Form;
import com.vaadin.ui.HorizontalLayout;
@@ -69,7 +69,7 @@ public class FormExample extends CustomComponent {
// Use custom field factory to modify the defaults on how the
// components are created
- setFieldFactory(new MyFieldFactory());
+ setFormFieldFactory(new MyFieldFactory());
// Add Commit and Discard controls to the form.
@@ -137,7 +137,7 @@ public class FormExample extends CustomComponent {
* This is example on how to customize field creation. Any kind of field
* components could be created on the fly.
*/
- static class MyFieldFactory extends BaseFieldFactory {
+ static class MyFieldFactory extends DefaultFieldFactory {
@Override
public Field createField(Item item, Object propertyId,