]> source.dussan.org Git - vaadin-framework.git/commitdiff
Sampler sample descriptions update.
authorMarc Englund <marc.englund@itmill.com>
Fri, 13 Feb 2009 10:50:32 +0000 (10:50 +0000)
committerMarc Englund <marc.englund@itmill.com>
Fri, 13 Feb 2009 10:50:32 +0000 (10:50 +0000)
svn changeset:6829/svn branch:trunk

33 files changed:
src/com/itmill/toolkit/demo/sampler/FeatureSet.java
src/com/itmill/toolkit/demo/sampler/features/accordions/AccordionDisabled.java
src/com/itmill/toolkit/demo/sampler/features/accordions/AccordionIcons.java
src/com/itmill/toolkit/demo/sampler/features/buttons/ButtonLink.java
src/com/itmill/toolkit/demo/sampler/features/buttons/ButtonPush.java
src/com/itmill/toolkit/demo/sampler/features/buttons/ButtonSwitch.java
src/com/itmill/toolkit/demo/sampler/features/commons/Errors.java
src/com/itmill/toolkit/demo/sampler/features/commons/Icons.java
src/com/itmill/toolkit/demo/sampler/features/commons/Tooltips.java
src/com/itmill/toolkit/demo/sampler/features/commons/TooltipsExample.java
src/com/itmill/toolkit/demo/sampler/features/dates/DateLocale.java
src/com/itmill/toolkit/demo/sampler/features/dates/DateResolution.java
src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java
src/com/itmill/toolkit/demo/sampler/features/form/FormPojo.java
src/com/itmill/toolkit/demo/sampler/features/link/LinkCurrentWindow.java
src/com/itmill/toolkit/demo/sampler/features/link/LinkNoDecorations.java
src/com/itmill/toolkit/demo/sampler/features/link/LinkSizedWindow.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationCustomExample.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationError.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationHumanized.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationTray.java
src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationWarning.java
src/com/itmill/toolkit/demo/sampler/features/panels/PanelLight.java
src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java
src/com/itmill/toolkit/demo/sampler/features/tabsheets/TabSheetDisabled.java
src/com/itmill/toolkit/demo/sampler/features/tabsheets/TabSheetIcons.java
src/com/itmill/toolkit/demo/sampler/features/tabsheets/TabSheetScrolling.java
src/com/itmill/toolkit/demo/sampler/features/text/LabelRich.java
src/com/itmill/toolkit/demo/sampler/features/text/LabelRichExample.java
src/com/itmill/toolkit/demo/sampler/features/text/RichTextEditor.java
src/com/itmill/toolkit/demo/sampler/features/text/TextArea.java
src/com/itmill/toolkit/demo/sampler/features/trees/TreeMouseEvents.java
src/com/itmill/toolkit/demo/sampler/features/trees/TreeMultiSelect.java

index c573d19efa08871186171c453db527ad50d21253..f344e94acb2282572ef6ec0876d08dbec9101f46 100644 (file)
@@ -145,13 +145,17 @@ public class FeatureSet extends Feature {
      */
     public static class Buttons extends FeatureSet {
         public Buttons() {
-            super("Buttons", new Feature[] {
-            //
-                    new ButtonPush(), // basic
-                    new ButtonLink(), // link
-                    new ButtonSwitch(), // switch/checkbox
+            super(
+                    "Buttons",
+                    "Buttons",
+                    "A button is one of the fundamental building blocks of any application.",
+                    new Feature[] {
+                    //
+                            new ButtonPush(), // basic
+                            new ButtonLink(), // link
+                            new ButtonSwitch(), // switch/checkbox
 
-            });
+                    });
         }
     }
 
@@ -160,7 +164,7 @@ public class FeatureSet extends Feature {
             super(
                     "Links",
                     "Links",
-                    "An external link - this is the basic HTML-style link, changing the url of the browser w/o triggering a server-side event (like the link-styled Button).<br/>By default, links open in the current browser window. Links can open new browser windows, and configure the amount of browser features shown, such as toolbar and addressbar.",
+                    "An external link. This is the basic HTML-style link, changing the url of the browser w/o triggering a server-side event (like the link-styled Button).",
                     new Feature[] {
                     //
                             new LinkCurrentWindow(), // basic
@@ -237,22 +241,32 @@ public class FeatureSet extends Feature {
 
     public static class Tabsheets extends FeatureSet {
         public Tabsheets() {
-            super("Tabsheets", new Feature[] {
-            //        
-                    new TabSheetIcons(), //
-                    new TabSheetScrolling(), //
-                    new TabSheetDisabled(), //
-            });
+            super(
+                    "Tabsheets",
+                    "Tabsheets",
+                    "A Tabsheet organizes multiple components so that only the one component associated with the currently selected 'tab' is shown. Typically a tab will contain a Layout, which in turn may contain many components.",
+                    new Feature[] {
+                    //        
+                            new TabSheetIcons(), //
+                            new TabSheetScrolling(), //
+                            new TabSheetDisabled(), //
+                    });
         }
     }
 
     public static class Accordions extends FeatureSet {
         public Accordions() {
-            super("Accordions", new Feature[] {
-            //        
-                    new AccordionIcons(), //
-                    new AccordionDisabled(), //
-            });
+            super(
+                    "Accordions",
+                    "Accordions",
+                    "An accordion component is a specialized case of a tabsheet."
+                            + " Within an accordion, the tabs are organized vertically,"
+                            + " and the content will be shown directly below the tab.",
+                    new Feature[] {
+                    //        
+                            new AccordionIcons(), //
+                            new AccordionDisabled(), //
+                    });
         }
     }
 
@@ -272,14 +286,9 @@ public class FeatureSet extends Feature {
 
     public static class Forms extends FeatureSet {
         public Forms() {
-            super(
-                    "Forms",
-                    "Forms",
+            super("Forms", "Forms",
                     "The Form -component provides a convenient way to organize"
-                            + " related fields visually.<br/><br/>It is most useful when connected"
-                            + " to a data source, and provides buffering and customization"
-                            + " features to support that scenario.",
-                    new Feature[] {
+                            + " related fields visually.", new Feature[] {
                     //        
                             new FormBasic(), //
                             new FormPojo(), //
@@ -307,7 +316,7 @@ public class FeatureSet extends Feature {
             super(
                     "Table (Grid)",
                     "Table (Grid)",
-                    "Also known as a (Data)Grid, Table can be used to show data in a tabular fashion. It's well suited for showing large datasets.",
+                    "A Table, also known as a (Data)Grid, can be used to show data in a tabular fashion. It's well suited for showing large datasets.",
                     new Feature[] {
                     //        
                             new TableHeaderIcons(), //
@@ -331,7 +340,7 @@ public class FeatureSet extends Feature {
             super(
                     "Texts",
                     "Texts",
-                    "A label is a simple component that allows you to add optionally formatted text components to your application.",
+                    "A label is a simple component that allows you to add (optionally formatted) text components to your application.",
                     new Feature[] {
                     //      
                             new LabelPlain(), //
@@ -362,7 +371,7 @@ public class FeatureSet extends Feature {
             super(
                     "Trees",
                     "Trees",
-                    "The Tree component allows a natural way to represent data that has hierarchical relationships, such as filesystems or message threads.",
+                    "The Tree component provides a natural way to represent data that has hierarchical relationships, such as filesystems or message threads.",
                     new Feature[] {
                     //        
                             new TreeSingleSelect(), //
index 2841f07d03c84152186804a0f5ea217d220aefb1..494cb169274865c77dddfafd55e33bf31be409db 100644 (file)
@@ -14,10 +14,7 @@ public class AccordionDisabled extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "An accordion component is a specialized case of a"\r
-                + " tabsheet, with vertically organized tabs."\r
-                + " With an accordion component you can also disable, enable,"\r
-                + " hide and show tabs, similar to a tabsheet.";\r
+        return "You can disable, enable, hide and show accordion 'tabs'.";\r
     }\r
 \r
     @Override\r
index b63f0cc56d6fca545eee2fa5951afe22754cddf3..f5a5e2cad41b97030e285493c849d64b3ce578fe 100644 (file)
@@ -14,10 +14,7 @@ public class AccordionIcons extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "An accordion component is a specialized case of a"\r
-                + " tabsheet. Within an accordion, the tabs are organized"\r
-                + " vertically, and the content will be shown directly"\r
-                + " below the tab.";\r
+        return "The accordion 'tabs' can contain icons in addition to the caption.";\r
     }\r
 \r
     @Override\r
index 9e78fbe375a1219ca07656a37a73cb633bdce029..899ba3083c16ed838c93693739c39e9b4fd6a62c 100644 (file)
@@ -6,8 +6,6 @@ import com.itmill.toolkit.demo.sampler.FeatureSet;
 import com.itmill.toolkit.demo.sampler.NamedExternalResource;
 import com.itmill.toolkit.demo.sampler.features.blueprints.ProminentPrimaryAction;
 import com.itmill.toolkit.demo.sampler.features.link.LinkCurrentWindow;
-import com.itmill.toolkit.demo.sampler.features.link.LinkNoDecorations;
-import com.itmill.toolkit.demo.sampler.features.link.LinkSizedWindow;
 import com.itmill.toolkit.ui.Button;
 
 public class ButtonLink extends Feature {
@@ -19,8 +17,9 @@ public class ButtonLink extends Feature {
 
     @Override
     public String getDescription() {
-        return "A link-styled button; works like a Button but looks like a Link.<br/>"
-                + "I.e it does not actually link somewhere, but triggers a server-side event, just like a regular button.";
+        return "A link-styled button works like a push button, but looks like"
+                + " a Link.<br/> It does not actually link somewhere, but"
+                + " triggers a server-side event, just like a regular button.";
     }
 
     @Override
@@ -31,8 +30,7 @@ public class ButtonLink extends Feature {
     @Override
     public Class[] getRelatedFeatures() {
         return new Class[] { ButtonPush.class, ButtonSwitch.class,
-                LinkCurrentWindow.class, LinkNoDecorations.class,
-                LinkSizedWindow.class, ProminentPrimaryAction.class,
+                LinkCurrentWindow.class, ProminentPrimaryAction.class,
                 FeatureSet.Links.class };
     }
 
index 19915db7264bd04bbf3d7efe2359420ac1915e17..305f06e6d7348383db5b36182fcb1b184c4c3ab2 100644 (file)
@@ -15,7 +15,9 @@ public class ButtonPush extends Feature {
 
     @Override
     public String getDescription() {
-        return "A basic push-button.";
+        return "A push-button, which can be considered a 'regular' button,"
+                + " returns to it's 'unclicked' state after emitting an event"
+                + " when the user clicks it.";
     }
 
     @Override
index 6101151f744e13e182803f3ac3a254e240ff0803..f9c578f69af1499f31a63ee65b3f46fbd39a92c3 100644 (file)
@@ -14,7 +14,10 @@ public class ButtonSwitch extends Feature {
 
     @Override
     public String getDescription() {
-        return "A switch button works like a regular button, triggering a server-side event, but it's state is 'sticky' - it toggles on or off, instead of popping right back out.<br/>Also know as a CheckBox.";
+        return "A switch button works like a regular push button, triggering"
+                + " a server-side event, but it's state is 'sticky': the button"
+                + " toggles between it's on and off states, instead of popping"
+                + " right back out.<br/>Also know as a CheckBox.";
     }
 
     @Override
index 6589c70c4a9e77dbc6f8326642c48139ec68fdec..10f12f1295713adeb89a59e48e977517ff97d79e 100644 (file)
@@ -3,9 +3,9 @@ package com.itmill.toolkit.demo.sampler.features.commons;
 import com.itmill.toolkit.demo.sampler.APIResource;
 import com.itmill.toolkit.demo.sampler.Feature;
 import com.itmill.toolkit.demo.sampler.NamedExternalResource;
+import com.itmill.toolkit.demo.sampler.features.form.FormBasic;
 import com.itmill.toolkit.demo.sampler.features.notifications.NotificationError;
-import com.itmill.toolkit.ui.Component;
-import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.AbstractComponent;
 
 public class Errors extends Feature {
 
@@ -35,13 +35,13 @@ public class Errors extends Feature {
     }
 
     public APIResource[] getRelatedAPI() {
-        return new APIResource[] { new APIResource(Component.class),
-                new APIResource(Window.Notification.class) };
+        return new APIResource[] { new APIResource(AbstractComponent.class) };
     }
 
     public Class[] getRelatedFeatures() {
         // TODO link validation sample, form sample
-        return new Class[] { NotificationError.class };
+        return new Class[] { Validation.class, FormBasic.class,
+                NotificationError.class };
     }
 
     public NamedExternalResource[] getRelatedResources() {
index 057ebf96084d12570d45cbb7d28ec373c2cc7c33..3db63efe6cbd5733c6e4879206c14d1c1341f9db 100644 (file)
@@ -42,7 +42,7 @@ public class Icons extends Feature {
 
     @Override
     public Class[] getRelatedFeatures() {
-        // TODO Auto-generated method stub
+        // TODO link embedded sample
         return null;
     }
 
index 20a5d9d8d65cbc0560e7828bf8d9e3c1a58108c2..ea74cebab0f592c25f37f8af3a3006e800a35775 100644 (file)
@@ -15,12 +15,9 @@ public class Tooltips extends Feature {
     @Override
     public String getDescription() {
         return "Most components can have a <i>description</i>,"
-                + " which is shown as a <i>\"tooltip\"</i>.<br/>"
-                + "Descriptions may have rich content.<br/>"
-                + "Note that <i>description</i> is more generic term than"
-                + " <i>tooltip</i> - a component might choose to show"
-                + " the description in another way, if that's more appropriate"
-                + " for that component.)";
+                + " which is shown as a <i>\"tooltip\"</i>."
+                + " Descriptions may have formatted ('rich') content.<br/>"
+                + "";
     }
 
     @Override
index a2fa9c95c122b0157e4bb0c0ba56dde48156dbc0..dabad8b7a8540a3f7d84e2947f0ebed67164d03d 100644 (file)
@@ -34,20 +34,18 @@ public class TooltipsExample extends VerticalLayout {
                 .setValue("Click <b>Edit my tooltip</b> to edit this tooltip, then <b>Apply</b>");
         rte.setVisible(false); // hide editor initially
         addComponent(rte);
-        Button apply = new Button("Edit my tooltip",
-                new Button.ClickListener() {
-                    public void buttonClick(ClickEvent event) {
-                        if (rte.isVisible()) {
-                            rte.setVisible(false);
-                            event.getButton().setDescription(
-                                    (String) rte.getValue());
-                            event.getButton().setCaption("Edit my tooltip");
-                        } else {
-                            rte.setVisible(true);
-                            event.getButton().setCaption("Apply");
-                        }
-                    }
-                });
+        Button apply = new Button("Edit tooltip", new Button.ClickListener() {
+            public void buttonClick(ClickEvent event) {
+                if (rte.isVisible()) {
+                    rte.setVisible(false);
+                    event.getButton().setDescription((String) rte.getValue());
+                    event.getButton().setCaption("Edit tooltip");
+                } else {
+                    rte.setVisible(true);
+                    event.getButton().setCaption("Apply");
+                }
+            }
+        });
         apply.setDescription((String) rte.getValue());
         addComponent(apply);
 
index dd28ccf311138b575b485b0d36ce62a75bb5d9bc..c859fa83e3558f3c6633c25e78c1a2f52981a529 100644 (file)
@@ -18,7 +18,7 @@ public class DateLocale extends Feature {
     public String getDescription() {\r
         return "In this example, you can select a different locale"\r
                 + " from the combo box and see how the calendar component"\r
-                + " will be localized.";\r
+                + " is localized.";\r
     }\r
 \r
     @Override\r
index 4f170cf38d952d9f31941e25154be64a4d8fd658..479b4e95953281d3542b654cded96fb100ca2431 100644 (file)
@@ -16,7 +16,7 @@ public class DateResolution extends Feature {
     public String getDescription() {\r
         return "In this example, you can select a different resolution"\r
                 + " from the combo box and see how the calendar component"\r
-                + " will change.";\r
+                + " changes.";\r
     }\r
 \r
     @Override\r
index f34f7a733991958d11327b767b96a673c60faeba..8b02dd7c4522da97050775b7c4c7ea62b050cdd1 100644 (file)
@@ -25,7 +25,10 @@ public class FormBasic extends Feature {
 
     @Override
     public String getDescription() {
-        return "";
+        return "A Form is most useful when connected to a data source, and"
+                + " provides buffering and customization features to support"
+                + " that scenario. <br/> Enter something and try discarding"
+                + " or applying.";
     }
 
     @Override
index 020ae63615f647ed376f24d639689fe58d41b568..1e80239949e9da06d0ff25fcf43e52151bcae356 100644 (file)
@@ -25,7 +25,7 @@ public class FormPojo extends Feature {
 
     @Override
     public String getDescription() {
-        return "It can easily be used as a POJO or Bean editor by wrapping the"
+        return "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.";
index 56092e421400f12d49b9cbb77b4ebaf4ec6da037..602265f8e96ce191a8a017d48b6cae8e4c3ef74d 100644 (file)
@@ -15,7 +15,7 @@ public class LinkCurrentWindow extends Feature {
 
     @Override
     public String getDescription() {
-        return "";
+        return "By default, links open in the current browser window (use the browser back-button to get back).";
     }
 
     @Override
index 65e19ecf09d12091348def7dbc5a90cfc557eac2..a2f7ecefc5daae5d0d520e02211c6a929e12be1a 100644 (file)
@@ -15,7 +15,7 @@ public class LinkNoDecorations extends Feature {
 
     @Override
     public String getDescription() {
-        return "These links open a browser window without decorations.";
+        return "Links can open new browser windows, and configure the amount of browser features shown, such as toolbar and addressbar.<br/>These links open a browser window without decorations.";
     }
 
     @Override
index 18f118e0f7326b77f571c595fb46165ec18a25cb..97ee0a0ac99d19991f86dd161a42b26e8c876be9 100644 (file)
@@ -15,7 +15,7 @@ public class LinkSizedWindow extends Feature {
 
     @Override
     public String getDescription() {
-        return "These links open a small, prefixed size window without decorations.";
+        return "Links can configure the size of the opened window.<br/>These links open a small fixed size window without decorations.";
     }
 
     @Override
index cd1f224137e93b0cd6f4f0c977ec3afd1e7897b3..7a77b4a2dad40e976cb462ee22490a5b5b66d531 100644 (file)
@@ -21,13 +21,14 @@ public class NotificationCustomExample extends VerticalLayout {
         setSpacing(true);
         setWidth(null); // layout will grow with content
 
-        final TextField caption = new TextField("Caption");
+        final TextField caption = new TextField("Caption", "Message sent");
         caption
                 .setDescription("Main info; a short caption-only notification is often most effective.");
         caption.setWidth("200px");
         addComponent(caption);
 
         final RichTextArea description = new RichTextArea();
+        description.setValue("<p>to <i>john.doe@example.com</i></p>");
         description.setCaption("Description");
         description
                 .setDescription("Additional information; try to keep it short.");
index b653f706654ed953a583cea04a1ee6e5b2604146..3cb67938945c2133a83daf5602bb62b900c81bb5 100644 (file)
@@ -14,7 +14,7 @@ public class NotificationError extends Feature {
 
     @Override
     public String getDescription() {
-        return "<p>The <i>Error</i> variant is modal, and is to be used for"
+        return "<p>The <i>Error</i> notification is modal, and is to be used for"
                 + " messages that must be seen by the user.<br/>"
                 + " The <i>Error</i> message must be closed by clicking"
                 + " the notification.</p><p>Candidates for an"
index 137e5808dbd8cbc0bfc42f8418561d56fc8cddba..4b68f5383aa7aa07bbaa64466f9aa3a8238d631a 100644 (file)
@@ -14,13 +14,13 @@ public class NotificationHumanized extends Feature {
 
     @Override
     public String getDescription() {
-        return "<p>The <i>Humanized</i> variant is an implementation of"
-                + " the <i>transparent message</i> -pattern, and is meant"
+        return "<p>The <i>Humanized</i> notification is an implementation of"
+                + " the <i>transparent message</i> -pattern, and can be used"
                 + " to indicate non-critical events while interrupting"
                 + " the user as little as possible.<br/>"
                 + "The <i>Humanized</i> message quickly fades away once"
-                + " the user interacts with the application (e.g. moves"
-                + " mouse, types)</p><p>Candidates for a"
+                + " the user interacts with the application (i.e. moves"
+                + " mouse, types).</p><p>Candidates for a"
                 + " <i>Humanized</i> notification include 'XYZ saved',"
                 + " 'Added XYZ', and other messages that the user can"
                 + " safely ignore, once the application is familliar.</p>";
index f5a41312fddefcdf56b59f2eefcb8c0d2d3e4edf..8c5451ba3c14f4bf9da90c513724622d7ee9ee4d 100644 (file)
@@ -14,7 +14,7 @@ public class NotificationTray extends Feature {
 
     @Override
     public String getDescription() {
-        return "<p>The <i>Tray</i> variant shows up in the lower left corner,"
+        return "<p>The <i>Tray</i> notification shows up in the lower right corner,"
                 + " and is meant to interrupt the user as little as possible"
                 + " even if it's shown for a while. "
                 + "The <i>Tray</i> message fades away after a few moments"
index 316bbbd7c55971ca1b6422df557122c9208e5c95..0db7cf96317bde97adb9eb7cadf465fa6f9fe2d5 100644 (file)
@@ -14,7 +14,7 @@ public class NotificationWarning extends Feature {
 
     @Override
     public String getDescription() {
-        return "<p>The <i>Warning</i> variant is an implementation of"
+        return "<p>The <i>Warning</i> notification is an implementation of"
                 + " the <i>transparent message</i> -pattern, and is meant"
                 + " to interrupt the user as little as possible, while"
                 + " still drawing the needed attention."
index d7d4717058505faed51f375d6d8d54947830ca34..024e9abfb7a679a36d8aef2e643898996151a3f5 100644 (file)
@@ -15,7 +15,7 @@ public class PanelLight extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "The 'light' style version has less decorations than the regular Panel style.";\r
+        return "The 'light' panel has less decorations than the regular Panel style.";\r
 \r
     }\r
 \r
index 979deb3d7e3b59c26ec6020614bca6e3b431f1ca..ecec28aa50ffdb72e792fc59db58da827baeb0e1 100644 (file)
@@ -21,7 +21,7 @@ public class TableActions extends Feature {
 
     @Override
     public String getDescription() {
-        return "Actions can be added to each row, and are show in the a"
+        return "Actions can be added to each row, and are show in a"
                 + " context menu when right-clicking.";
 
     }
index 5822c8e14fa8f82dcf2492df4dcdb3a1e5616c2c..dc15ee2c0b203a790fbcb619b766b6271f164b63 100644 (file)
@@ -13,9 +13,7 @@ public class TabSheetDisabled extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "With a tabsheet component you also have the"\r
-                + " ability to enable and disable as well as"\r
-                + " show and hide specific tabs.";\r
+        return "Individual tabs can be enabled, disabled, hidden or visible.";\r
     }\r
 \r
     @Override\r
index 5713fdcc23a32d5effa9cb65188671a3e64ed287..80a32fed591e20976404e8030ee19f44ff489e91 100644 (file)
@@ -13,11 +13,7 @@ public class TabSheetIcons extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "A tabsheet component with icons. Each tab can"\r
-                + " contain any component. In this simple example"\r
-                + " each tab contains a label."\r
-                + "<br> You can also attach a listener to the tab"\r
-                + " change event.";\r
+        return "Each tab can have an Icon in addition to the caption.";\r
     }\r
 \r
     @Override\r
index d0f01e9582bcc6526ebba183bb0f28541922c715..018c2eaf83f574651e6cd7503d9c436c06235c46 100644 (file)
@@ -13,9 +13,7 @@ public class TabSheetScrolling extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "A tabsheet component with too many tabs to display"\r
-                + " within the width of the tabsheet. A scrolling"\r
-                + "feature will be added to the tab bar automatically.";\r
+        return "If the tabs are to many to be shown at once, a scrolling control will appear automatically.";\r
     }\r
 \r
     @Override\r
index 80353d63ecf2e2711d37805ce8ee1f5abbbb1d08..203d0064ac880a724e16a7b562b82f0a9c782b58 100644 (file)
@@ -15,7 +15,8 @@ public class LabelRich extends Feature {
     public String getDescription() {\r
         return "In this example the content mode is set to"\r
                 + " CONTENT_XHTML. This content mode assumes that the"\r
-                + " content set to the label will be valid XHTML.";\r
+                + " content set to the label will be valid XHTML.<br/>"\r
+                + "Click the <i>Edit</i> button to edit the label content.";\r
     }\r
 \r
     @Override\r
index 191247f81bfbd33d3e34cd34e1653fbf32bf0a2a..d7e2551e0449de4fc0c7fbc9b3a35c4035a030fc 100644 (file)
@@ -18,10 +18,10 @@ public class LabelRichExample extends VerticalLayout implements ClickListener {
         setSpacing(true);\r
         setSizeUndefined(); // let layout grow with content\r
 \r
-        richText = new Label("<h1>Rich text label example</h1>"\r
-                + "<p>In this example, the content mode is set to "\r
-                + "<i>CONTENT_XHTML</i>.</p>"\r
-                + "<p>This text can be edited with the Edit-button</p>");\r
+        richText = new Label(\r
+                "<h1>Rich text example</h1>"\r
+                        + "<p>The <b>quick</b> brown fox jumps <sup>over</sup> the <b>lazy</b> dog.</p>"\r
+                        + "<p>This text can be edited with the <i>Edit</i> -button</p>");\r
         richText.setContentMode(Label.CONTENT_XHTML);\r
 \r
         addComponent(richText);\r
index 8878584034e7a073925b6d9aab82cbc0bc1b9c2e..62eed31858996ef493f6f84c30f2da4ecdadcf2e 100644 (file)
@@ -14,10 +14,9 @@ public class RichTextEditor extends Feature {
 \r
     @Override\r
     public String getDescription() {\r
-        return "A RichTextArea component allows editing XHTML"\r
-                + " content. <br/>Click the edit button to open the"\r
-                + " editor and the show button to show the edited"\r
-                + " result as an XHTML label.";\r
+        return "The RichTextArea allows 'rich' formatting of the input.<br/>"\r
+                + "Click the <i>Edit</i> button to edit the label content"\r
+                + " with the RichTextArea.";\r
     }\r
 \r
     @Override\r
index 474a8620e4e3698b7a19e77750039dc3fb203a3d..4982e8de5fc1577fb01c50a3481c294f4b94f642 100644 (file)
@@ -2,19 +2,19 @@ package com.itmill.toolkit.demo.sampler.features.text;
 \r
 import com.itmill.toolkit.demo.sampler.APIResource;\r
 import com.itmill.toolkit.demo.sampler.Feature;\r
+import com.itmill.toolkit.demo.sampler.FeatureSet;\r
 import com.itmill.toolkit.demo.sampler.NamedExternalResource;\r
-import com.itmill.toolkit.ui.Label;\r
+import com.itmill.toolkit.ui.TextField;\r
 \r
 public class TextArea extends Feature {\r
     @Override\r
     public String getName() {\r
-        return "Textarea";\r
+        return "Text area";\r
     }\r
 \r
     @Override\r
     public String getDescription() {\r
-        return "A multi-line Textfield component allows you to input"\r
-                + " several lines of text."\r
+        return "A text field can be configured to allow multiple lines of input."\r
                 + "<br>The amount of columns and lines can be set, and both are set here to"\r
                 + " 20 characters. Note that this only affects the width and height of the"\r
                 + " component, not the allowed length of input.";\r
@@ -22,13 +22,13 @@ public class TextArea extends Feature {
 \r
     @Override\r
     public APIResource[] getRelatedAPI() {\r
-        return new APIResource[] { new APIResource(Label.class) };\r
+        return new APIResource[] { new APIResource(TextField.class) };\r
     }\r
 \r
     @Override\r
     public Class[] getRelatedFeatures() {\r
-        return new Class[] { LabelPlain.class, LabelPreformatted.class,\r
-                RichTextEditor.class };\r
+        return new Class[] { RichTextEditor.class, TextFieldSingle.class,\r
+                FeatureSet.Texts.class };\r
     }\r
 \r
     @Override\r
index 2a7d4e4728ba158a1dc73cceb646cc5d01e5a64d..220cbea4d6f181fdbe085536636673099219e807 100644 (file)
@@ -15,10 +15,10 @@ public class TreeMouseEvents extends Feature {
     public String getDescription() {\r
         return "In this example, selecting items from the tree"\r
                 + " is disabled. Instead, another method of selection"\r
-                + " is used. Through ItemClickEvent we can update the"\r
+                + " is used. Using the ItemClickEvent, we can update the"\r
                 + " label showing the selection."\r
                 + "<br>Try to click your left, right and middle mouse"\r
-                + "buttons on the tree items. Any modifier keys will"\r
+                + " buttons on the tree items. Any modifier keys will"\r
                 + " also be detected.";\r
     }\r
 \r
index cab5cce026707b589abe46f4663400b0f54d9bf0..47ea3cff2578a10ecdeb669aee55076eba88593c 100644 (file)
@@ -14,7 +14,7 @@ public class TreeMultiSelect extends Feature {
     @Override\r
     public String getDescription() {\r
         return "In this example, you can select multiple tree nodes"\r
-                + " and delete your selection. Click a selected item again to de-select it.";\r
+                + " and delete the selected items. Click a selected item again to de-select it.";\r
     }\r
 \r
     @Override\r