From: Artur Signell Date: Mon, 23 Feb 2009 09:47:44 +0000 (+0000) Subject: Fixed # 2612: Removed one of the form examples from Sampler X-Git-Tag: 6.7.0.beta1~3091 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7276c1d9aa6a78098f562fa40af12cc8a7567d94;p=vaadin-framework.git Fixed # 2612: Removed one of the form examples from Sampler http://dev.itmill.com/ticket/2612 svn changeset:6933/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/sampler/FeatureSet.java b/src/com/itmill/toolkit/demo/sampler/FeatureSet.java index 5e5c3747dd..6de029b807 100644 --- a/src/com/itmill/toolkit/demo/sampler/FeatureSet.java +++ b/src/com/itmill/toolkit/demo/sampler/FeatureSet.java @@ -21,7 +21,6 @@ import com.itmill.toolkit.demo.sampler.features.dates.DateLocale; import com.itmill.toolkit.demo.sampler.features.dates.DatePopup; import com.itmill.toolkit.demo.sampler.features.dates.DateResolution; import com.itmill.toolkit.demo.sampler.features.form.FormBasic; -import com.itmill.toolkit.demo.sampler.features.form.FormPojo; import com.itmill.toolkit.demo.sampler.features.layouts.ApplicationLayout; import com.itmill.toolkit.demo.sampler.features.layouts.CustomLayouts; import com.itmill.toolkit.demo.sampler.features.layouts.ExpandingComponent; @@ -296,8 +295,7 @@ public class FeatureSet extends Feature { "The Form -component provides a convenient way to organize" + " related fields visually.", new Feature[] { // - new FormBasic(), // - new FormPojo(), // + new FormBasic(), // }); } } diff --git a/src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java b/src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java index 8b02dd7c45..ccb036ea99 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java +++ b/src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java @@ -27,8 +27,12 @@ public class FormBasic extends Feature { public String getDescription() { return "A Form is most useful when connected to a data source, and" + " provides buffering and customization features to support" - + " that scenario.
Enter something and try discarding" - + " or applying."; + + " that scenario. A Form can easily be used as a POJO" + + " or Bean editor by wrapping the bean using BeanItem.
" + + "The basic functionality only requires a couple of lines of" + + " code, then Validators and other customizations can be " + + "applied to taste.
Enter something and try discarding or " + + "applying."; } @Override