From e3b21da773385b8602b806215205a2bb5754097b Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Wed, 11 Feb 2009 11:35:56 +0000 Subject: [PATCH] Sampler theme update. Many sample descriptions split into two pieces: featureset description and feature description. svn changeset:6794/svn branch:trunk --- .../ITMILL/themes/sampler/icons/sample.png | Bin 0 -> 731 bytes .../ITMILL/themes/sampler/sampler/bullet.png | Bin 125 -> 0 bytes .../sampler/sampler/sample-desc-arrow.png | Bin 0 -> 301 bytes .../themes/sampler/sampler/sample-desc-bg.png | Bin 0 -> 305 bytes .../ITMILL/themes/sampler/sampler/sampler.png | Bin 2493 -> 7179 bytes .../ITMILL/themes/sampler/sampler/styles.css | 51 +++++- .../toolkit/demo/sampler/FeatureSet.java | 172 +++++++++++------- .../toolkit/demo/sampler/FeatureView.java | 62 ++++++- .../demo/sampler/SamplerApplication.java | 4 + .../sampler/features/dates/DateInline.java | 6 +- .../sampler/features/dates/DateLocale.java | 6 +- .../sampler/features/dates/DatePopup.java | 6 +- .../features/dates/DateResolution.java | 6 +- .../demo/sampler/features/form/FormBasic.java | 8 +- .../demo/sampler/features/form/FormPojo.java | 15 +- .../features/link/LinkCurrentWindow.java | 5 +- .../features/link/LinkNoDecorations.java | 7 +- .../features/link/LinkSizedWindow.java | 8 +- .../notifications/NotificationCustom.java | 6 +- .../notifications/NotificationError.java | 8 +- .../notifications/NotificationHumanized.java | 8 +- .../notifications/NotificationTray.java | 10 +- .../notifications/NotificationWarning.java | 8 +- .../sampler/features/panels/PanelBasic.java | 6 +- .../sampler/features/panels/PanelLight.java | 7 +- .../features/selects/ListSelectSingle.java | 2 +- .../sampler/features/table/TableActions.java | 4 +- .../features/table/TableCellStyling.java | 4 +- .../features/table/TableColumnAlignment.java | 4 +- .../features/table/TableColumnCollapsing.java | 4 +- .../features/table/TableColumnHeaders.java | 4 +- .../features/table/TableColumnReordering.java | 4 +- .../features/table/TableHeaderIcons.java | 4 +- .../features/table/TableLazyLoading.java | 4 +- .../features/table/TableMouseEvents.java | 5 +- .../features/table/TableRowHeaders.java | 4 +- .../features/table/TableRowStyling.java | 4 +- .../sampler/features/table/TableSorting.java | 4 +- .../sampler/features/text/LabelPlain.java | 5 +- .../features/text/LabelPreformatted.java | 5 +- .../demo/sampler/features/text/LabelRich.java | 5 +- .../features/text/TextFieldSingle.java | 4 +- .../sampler/features/trees/TreeActions.java | 5 +- .../features/trees/TreeMouseEvents.java | 5 +- .../features/trees/TreeMultiSelect.java | 5 +- .../features/trees/TreeSingleSelect.java | 5 +- 46 files changed, 267 insertions(+), 232 deletions(-) create mode 100644 WebContent/ITMILL/themes/sampler/icons/sample.png delete mode 100644 WebContent/ITMILL/themes/sampler/sampler/bullet.png create mode 100644 WebContent/ITMILL/themes/sampler/sampler/sample-desc-arrow.png create mode 100644 WebContent/ITMILL/themes/sampler/sampler/sample-desc-bg.png diff --git a/WebContent/ITMILL/themes/sampler/icons/sample.png b/WebContent/ITMILL/themes/sampler/icons/sample.png new file mode 100644 index 0000000000000000000000000000000000000000..c1ff888aae2d0078873e6b930e58391fbad0d0a0 GIT binary patch literal 731 zcmV<10wn#3P)%0OgNZu;^aZ`V&aeB;+Z3VKocScn{Auuiit^yA~6w)X$)ReP!O%K zApKywUrskEvBHf>=G`}&cb<9XnHlD~E>2@y?UAk+@V;X!%RxO=#B2-~o6wfh>{uD1x^zimP8kZ%M6{-2ED89kjLUu2Ax z8yL7gH;|wFETk`K!rS{R!q?2E00ulws(ABy30s?maPgorVHoC1dY&V{*8o7~RQF9p zZuX#OEQ*0~1lrupNeBpj0xT?-pTM&N)qct~3BRwu|PdA03xvY-m5w+|z`# zn)ZTaS%%;52bBOx@?m}bOGQ;v4;vYfHqsdplI+99iL=-@{$O`!2Z|DdD2fEo1fJ*6 z+S-h4HoK(j`dR}3$1zwX3%}m$NZg5GY4II;d;1WJ#VD%?$8o&Jwr$}F*}rWRj&3$! z=vBDPMK~0}$cRk9JOM~v`)WXIpFZjf3k&IEb5JWmB>Drldf{*`;{E;T?CkXF<~Yt{ z7zi{WlgVh6N@eR91KV;CywHN+Z~%7IA*v>+ULp_~g1`|Fk5ajaxw*NS6DQFzsS9xl ztQ|0oDhb9T8jVn}a6~_sTiM9x^V$CaJO-pPzg^hIhviiaT!|yn9YL_IotQYD3qB6X zWHN2r_Q8n&tE;*F{=Rs*WEGtkn&$59?J-4B#G#>KF_B21Q232hD)soJWnwjoG}~bk zEW|j@;YoSZG;3QUb#--}9~~VX3x~u0si~=P`e)Vy>x;!syUu?F7y!5w1Zg=x5uyM9 N002ovPDHLkV1g>gN-qEa literal 0 HcmV?d00001 diff --git a/WebContent/ITMILL/themes/sampler/sampler/bullet.png b/WebContent/ITMILL/themes/sampler/sampler/bullet.png deleted file mode 100644 index cda2f7ac5631571eabde5c362d5459afd74d4895..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 125 zcmeAS@N?(olHy`uVBq!ia0vp^OhC-Y!3-o1|LNZWq$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~-c6|n{Qgt#tVvoSTN;P3LgyMZFSo-U3d6}OTS5?DA47#LU> Vm`>+Q6ays~JYD@<);T3K0RZ8qBHaK0 diff --git a/WebContent/ITMILL/themes/sampler/sampler/sample-desc-arrow.png b/WebContent/ITMILL/themes/sampler/sampler/sample-desc-arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..ae79de39aae6df63b35f9d179b4883d5ebf9ff12 GIT binary patch literal 301 zcmeAS@N?(olHy`uVBq!ia0vp^+(696!3-po-b^_Kq$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~-c6~zYlgt(fv9(U|KY}s+by5pon&uOQg(^$Pwds@fd z-=y`pNy~8+buCp5ExwF>fk2DoN`m}?|KkG;ZzN>mfGTY~T^vIyZY51%WmGgc$)Hr> zQjwUW$th-N#t|LiG{-+=lJJpfNl(%zOiP=TGClRdgS2Op7?~Ku92*#z86Lf3-QMND R?kvz822WQ%mvv4FO#n{ednf<^ literal 0 HcmV?d00001 diff --git a/WebContent/ITMILL/themes/sampler/sampler/sample-desc-bg.png b/WebContent/ITMILL/themes/sampler/sampler/sample-desc-bg.png new file mode 100644 index 0000000000000000000000000000000000000000..e9019d307ea5a4942042ce56ec3f554925e3c0f7 GIT binary patch literal 305 zcmV-10nYx3P)E&Mb1iDr>tgbiXfmz%F&aFnhu-b-*%##V~urGJeD>ZM-UL zx-ovlEpxssaJ@2r#V&ThFnYo)alJBt#W8)vEpomyfyOO#zcYfyG=#@1ZoDdNyAz^* zT>t<8Pf0{URCwAf!3P#YPyj{28#Ov1(L!|l-(jAA%n-4gmnWOKXvt4|ebeZqw)#{Q z3>x6#s7J0y3&=y^}5{{jpEe6j`171F~)00000NkvXXu0mjf DlAL-Q literal 0 HcmV?d00001 diff --git a/WebContent/ITMILL/themes/sampler/sampler/sampler.png b/WebContent/ITMILL/themes/sampler/sampler/sampler.png index e97eeac3460ab63a35f3f0eba83404e11ed99d75..d18883211da6a0d80af1ab5f3a3aa5822432c8d3 100644 GIT binary patch literal 7179 zcmV+m9Q5OfP)a4X=713&~`n1(z?PTkF@9S%82iv~3kG|KwT8CC^MXj|0GKpY83L--w z2_$Bo@4dP6aOSh$I_D%YASw;CuY4c-JKxPd>+I?5wbxqzT6>=mE3UYXq)39K(D`)E zCX8`75?Q_KCR#V|$@5ckPP23TqKzM5DRF*I&V7FBz)obz=Xrjf9i>P4veG1j5oQU3 z*T}3DdEvofp*@H~k}9YiLyEG_aopd5pTI{nqrbAf#Ngh%tFOe&Eu^2>P4BE zoDESg9tq^dy{!#7GHT$+WLAlEn<=+&n7bsWorp4#^)LH zwwkxXws>Yts( z?QHUUZ8SroeZz5MZZ(o+BZ?p&^|zsvzc8C}La_)K*-!!Ta2$7Zu-pP2Bt_O_d80x9I=7>_KXS=T#3 zv#hYHD&LH8vu#1_6ki*=c=vP7$Q~kTo##o$&hYWnXhPY%t4~!m znj{QWN7IO+Yy_32hmcAj)`n8am8Au`-ba&;x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Zd<-L)hd zT$ou1kSQMt**K925M7M+*_+0rAcOL4_)`rZ|;_ta-6 zFL%>~xH6ngmH|ix$+fuF%u3A?D8LT`e-xX|JJ4*dT8tEWBxcs!6D&A#A=MU0woC21 zU>k`#cZq88rzYB(bg@N6t#%7@o7i^g(k=H^ZTfuf3vfb1I5RmZJ(G;iQLa8wSt6<#ja3|Gh$m$u;TmB?kLYjE@(obLXM|Hwn=Twhiu9OU{K4A zQUC_IPzr#&?6T~9G9ubDz8v+;#Bs!PBP8 z|B7+aAOhIC4a$#+Y!b+)10b3*f0FqSO&f9KLhAsoqqdPCF*t5zut;PUi9{?D00U{h ziK-@D@W4vHiY^r)(?V{0yejJ&>~U{ZyNv0stX+59h{pl2We~(N`QUH~pg0R>b-1*_ zjidz%9WJIq@X^tAHJ0kEET0*@H+dac(pSi?_U zJl4o4cxeobIx#;o@P2qwhpMU>ANSaFYQBy 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.", + new Feature[] { + // + new LinkCurrentWindow(), // basic + new LinkNoDecorations(), // new win + new LinkSizedWindow(), // new win - }); + }); } } public static class Notifications extends FeatureSet { public Notifications() { - super("Notifications", new Feature[] { - // - new NotificationHumanized(), // humanized - new NotificationWarning(), // warning - new NotificationTray(), // tray - new NotificationError(), // error - new NotificationCustom(), // error - }); + super( + "Notifications", + "Notifications", + "Notifications are lightweight informational messages, used to inform the user of various events.", + new Feature[] { + // + new NotificationHumanized(), // humanized + new NotificationWarning(), // warning + new NotificationTray(), // tray + new NotificationError(), // error + new NotificationCustom(), // error + }); } } @@ -248,21 +257,32 @@ public class FeatureSet extends Feature { public static class Panels extends FeatureSet { public Panels() { - super("Panels", new Feature[] { - // - new PanelBasic(), // - new PanelLight(), // - }); + super( + "Panels", + "Panels", + "Panel is a simple container that supports scrolling.
It's internal layout (by default VerticalLayout) can be configured or exchanged to get desired results. Components that are added to the Panel will in effect be added to the layout.", + new Feature[] { + // + new PanelBasic(), // + new PanelLight(), // + }); } } public static class Forms extends FeatureSet { public Forms() { - super("Forms", new Feature[] { - // - new FormBasic(), // - new FormPojo(), // - }); + super( + "Forms", + "Forms", + "The Form -component provides a convenient way to organize" + + " related fields visually.

It is most useful when connected" + + " to a data source, and provides buffering and customization" + + " features to support that scenario.", + new Feature[] { + // + new FormBasic(), // + new FormPojo(), // + }); } } @@ -283,59 +303,87 @@ public class FeatureSet extends Feature { public static class Tables extends FeatureSet { public Tables() { - super("Table (Grid)", new Feature[] { - // - new TableHeaderIcons(), // - new TableColumnHeaders(), // - new TableColumnReordering(), // - new TableColumnCollapsing(), // - new TableColumnAlignment(), // - new TableCellStyling(), // - new TableSorting(), // - new TableRowHeaders(), // - new TableRowStyling(), // - new TableActions(), // - new TableMouseEvents(), // - new TableLazyLoading(), // - }); + 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.", + new Feature[] { + // + new TableHeaderIcons(), // + new TableColumnHeaders(), // + new TableColumnReordering(), // + new TableColumnCollapsing(), // + new TableColumnAlignment(), // + new TableCellStyling(), // + new TableSorting(), // + new TableRowHeaders(), // + new TableRowStyling(), // + new TableActions(), // + new TableMouseEvents(), // + new TableLazyLoading(), // + }); } } public static class Texts extends FeatureSet { public Texts() { - super("Texts", new Feature[] { - // - new LabelPlain(), // - new LabelPreformatted(), // - new LabelRich(), // - new TextFieldSingle(), // - new TextArea(), // - new RichTextEditor(), // - }); + super( + "Texts", + "Texts", + "A label is a simple component that allows you to add optionally formatted text components to your application.", + new Feature[] { + // + new LabelPlain(), // + new LabelPreformatted(), // + new LabelRich(), // + }); + } + } + + public static class TextFields extends FeatureSet { + public TextFields() { + super( + "TextFields", + "Text inputs", + "Text inputs are probably the most needed components in any application that require user input or editing.", + new Feature[] { + // + new TextFieldSingle(), // + new TextArea(), // + new RichTextEditor(), // + }); } } public static class Trees extends FeatureSet { public Trees() { - super("Trees", new Feature[] { - // - new TreeSingleSelect(), // - new TreeMultiSelect(), // - new TreeActions(), // - new TreeMouseEvents(), // - }); + super( + "Trees", + "Trees", + "The Tree component allows a natural way to represent data that has hierarchical relationships, such as filesystems or message threads.", + new Feature[] { + // + new TreeSingleSelect(), // + new TreeMultiSelect(), // + new TreeActions(), // + new TreeMouseEvents(), // + }); } } public static class Dates extends FeatureSet { public Dates() { - super("Dates", new Feature[] { - // - new DatePopup(), // - new DateInline(), // - new DateLocale(), // - new DateResolution(), // - }); + super( + "Dates", + "Dates", + "The DateField component can be used to produce various date and time input fields with different resolutions. The date and time format used with this component is reported to the Toolkit by the browser.", + new Feature[] { + // + new DatePopup(), // + new DateInline(), // + new DateLocale(), // + new DateResolution(), // + }); } } diff --git a/src/com/itmill/toolkit/demo/sampler/FeatureView.java b/src/com/itmill/toolkit/demo/sampler/FeatureView.java index 699f1b1c4b..8a9fd29ad7 100644 --- a/src/com/itmill/toolkit/demo/sampler/FeatureView.java +++ b/src/com/itmill/toolkit/demo/sampler/FeatureView.java @@ -6,6 +6,7 @@ import com.itmill.toolkit.demo.sampler.ActiveLink.LinkActivatedEvent; import com.itmill.toolkit.demo.sampler.ActiveLink.LinkActivatedListener; import com.itmill.toolkit.demo.sampler.SamplerApplication.SamplerWindow; import com.itmill.toolkit.terminal.ExternalResource; +import com.itmill.toolkit.terminal.ThemeResource; import com.itmill.toolkit.ui.Button; import com.itmill.toolkit.ui.Component; import com.itmill.toolkit.ui.HorizontalLayout; @@ -48,6 +49,7 @@ public class FeatureView extends HorizontalLayout { setExpandRatio(left, 1); right = new Panel(); + right.getLayout().setMargin(true, false, false, false); right.setStyleName(Panel.STYLE_LIGHT); right.addStyleName("feature-info"); right.setWidth("369px"); @@ -127,18 +129,48 @@ public class FeatureView extends HorizontalLayout { right.setCaption("Description and Resources"); - Label l = new Label(feature.getDescription()); - l.setContentMode(Label.CONTENT_XHTML); - right.addComponent(l); + final Feature parent = (Feature) SamplerApplication + .getAllFeatures().getParent(feature); + String desc = parent.getDescription(); + boolean hasParentDesc = false; + + if (desc != null && desc != "") { + Label l = new Label(parent.getDescription()); + l.setContentMode(Label.CONTENT_XHTML); + right.addComponent(l); + hasParentDesc = true; + } + + desc = feature.getDescription(); + if (desc != null && desc != "") { + // Sample description uses additional decorations if a parent + // description is found + final Label l = new Label( + "
" + + desc + "
", Label.CONTENT_XHTML); + right.addComponent(l); + if (hasParentDesc) { + l.setStyleName("sample-description"); + } + } sourceCode.setValue(feature.getSource()); NamedExternalResource[] resources = feature.getRelatedResources(); if (resources != null) { VerticalLayout res = new VerticalLayout(); - res.setCaption("Additional resources"); + Label caption = new Label("Additional Resources", + Label.CONTENT_XHTML); + caption.setStyleName("section"); + caption.setWidth("100%"); + res.addComponent(caption); + res.setMargin(false, false, true, false); for (NamedExternalResource r : resources) { - res.addComponent(new Link(r.getName(), r)); + final Link l = new Link(r.getName(), r); + l + .setIcon(new ThemeResource( + "../default/icons/16/note.png")); + res.addComponent(l); } right.addComponent(res); } @@ -146,9 +178,17 @@ public class FeatureView extends HorizontalLayout { APIResource[] apis = feature.getRelatedAPI(); if (apis != null) { VerticalLayout api = new VerticalLayout(); - api.setCaption("API documentation"); + Label caption = new Label("API Documentation", + Label.CONTENT_XHTML); + caption.setStyleName("section"); + caption.setWidth("100%"); + api.addComponent(caption); + api.setMargin(false, false, true, false); for (APIResource r : apis) { - api.addComponent(new Link(r.getName(), r)); + final Link l = new Link(r.getName(), r); + l.setIcon(new ThemeResource( + "../default/icons/16/document-txt.png")); + api.addComponent(l); } right.addComponent(api); } @@ -156,7 +196,12 @@ public class FeatureView extends HorizontalLayout { Class[] features = feature.getRelatedFeatures(); if (features != null) { VerticalLayout rel = new VerticalLayout(); - rel.setCaption("Related Samples"); + Label caption = new Label("Related Samples", + Label.CONTENT_XHTML); + caption.setStyleName("section"); + caption.setWidth("100%"); + rel.addComponent(caption); + rel.setMargin(false, false, true, false); for (Class c : features) { final Feature f = SamplerApplication.getFeatureFor(c); if (f != null) { @@ -164,6 +209,7 @@ public class FeatureView extends HorizontalLayout { ActiveLink al = new ActiveLink(f.getName(), new ExternalResource(getApplication().getURL() + "#" + path)); + al.setIcon(new ThemeResource("icons/sample.png")); al.addListener(new LinkActivatedListener() { public void linkActivated(LinkActivatedEvent event) { if (event.isLinkOpened()) { diff --git a/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java b/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java index 4131b58207..f9802d98d2 100644 --- a/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java +++ b/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java @@ -708,4 +708,8 @@ public class SamplerApplication extends Application { } } + public static HierarchicalContainer getAllFeatures() { + return allFeatures; + } + } diff --git a/src/com/itmill/toolkit/demo/sampler/features/dates/DateInline.java b/src/com/itmill/toolkit/demo/sampler/features/dates/DateInline.java index 2af5a13ae0..e4b6d31aee 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/dates/DateInline.java +++ b/src/com/itmill/toolkit/demo/sampler/features/dates/DateInline.java @@ -14,11 +14,7 @@ public class DateInline extends Feature { @Override public String getDescription() { - return "The DateField component can be used to produce various" - + " date and time input fields with different resolutions." - + " The date and time format used with this component is" - + " reported to the Toolkit by the browser." - + "
In this example, the resolution is set to be one day" + return "In this example, the resolution is set to be one day" + " and the DateField component is shown as an inline calendar" + " component."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/dates/DateLocale.java b/src/com/itmill/toolkit/demo/sampler/features/dates/DateLocale.java index 931d3190c1..dd28ccf311 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/dates/DateLocale.java +++ b/src/com/itmill/toolkit/demo/sampler/features/dates/DateLocale.java @@ -16,11 +16,7 @@ public class DateLocale extends Feature { @Override public String getDescription() { - return "The DateField component can be used to produce various" - + " date and time input fields with different resolutions." - + " The date and time format used with this component is" - + " reported to the Toolkit by the browser." - + "
In this example, you can select a different locale" + return "In this example, you can select a different locale" + " from the combo box and see how the calendar component" + " will be localized."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/dates/DatePopup.java b/src/com/itmill/toolkit/demo/sampler/features/dates/DatePopup.java index babca8cec5..83bdd9fc9a 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/dates/DatePopup.java +++ b/src/com/itmill/toolkit/demo/sampler/features/dates/DatePopup.java @@ -14,11 +14,7 @@ public class DatePopup extends Feature { @Override public String getDescription() { - return "The DateField component can be used to produce various" - + " date and time input fields with different resolutions." - + " The date and time format used with this component is" - + " reported to the Toolkit by the browser." - + "
In this example, the resolution is set to be one day" + return "In this example, the resolution is set to be one day" + " and the DateField component is shown as a calendar pop-up."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/dates/DateResolution.java b/src/com/itmill/toolkit/demo/sampler/features/dates/DateResolution.java index dde24187ac..4f170cf38d 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/dates/DateResolution.java +++ b/src/com/itmill/toolkit/demo/sampler/features/dates/DateResolution.java @@ -14,11 +14,7 @@ public class DateResolution extends Feature { @Override public String getDescription() { - return "The DateField component can be used to produce various" - + " date and time input fields with different resolutions." - + " The date and time format used with this component is" - + " reported to the Toolkit by the browser." - + "
In this example, you can select a different resolution" + return "In this example, you can select a different resolution" + " from the combo box and see how the calendar component" + " will change."; } 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 36e90cd711..f34f7a7339 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java +++ b/src/com/itmill/toolkit/demo/sampler/features/form/FormBasic.java @@ -25,22 +25,22 @@ public class FormBasic extends Feature { @Override public String getDescription() { - return "The Form -component provides a convenient way to organize" - + " related fields visually.
It is most useful when connected" - + " to a data source, and provides buffering and customization" - + " features to support that scenario."; + return ""; } + @Override public APIResource[] getRelatedAPI() { return new APIResource[] { new APIResource(Validatable.class), new APIResource(Validator.class), new APIResource(Form.class) }; } + @Override public Class[] getRelatedFeatures() { return new Class[] { Validation.class, Errors.class, FeatureSet.Forms.class }; } + @Override public NamedExternalResource[] getRelatedResources() { return null; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/form/FormPojo.java b/src/com/itmill/toolkit/demo/sampler/features/form/FormPojo.java index 28d46b2a4c..020ae63615 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/form/FormPojo.java +++ b/src/com/itmill/toolkit/demo/sampler/features/form/FormPojo.java @@ -25,26 +25,25 @@ public class FormPojo extends Feature { @Override public String getDescription() { - return "The Form -component provides a convenient way to organize" - + " related fields visually.
It is most useful when connected" - + " to a data source, and provides buffering and customization" - + " features to support that scenario.
It 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."; + return "It 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."; } + @Override public APIResource[] getRelatedAPI() { return new APIResource[] { new APIResource(Validatable.class), new APIResource(Validator.class), new APIResource(Form.class) }; } + @Override public Class[] getRelatedFeatures() { return new Class[] { Validation.class, Errors.class, FeatureSet.Forms.class }; } + @Override public NamedExternalResource[] getRelatedResources() { return null; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/link/LinkCurrentWindow.java b/src/com/itmill/toolkit/demo/sampler/features/link/LinkCurrentWindow.java index 7db6f43898..56092e4214 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/link/LinkCurrentWindow.java +++ b/src/com/itmill/toolkit/demo/sampler/features/link/LinkCurrentWindow.java @@ -15,10 +15,7 @@ public class LinkCurrentWindow extends Feature { @Override public String getDescription() { - return "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).
By default, links open" - + " in the current browser window."; + return ""; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/link/LinkNoDecorations.java b/src/com/itmill/toolkit/demo/sampler/features/link/LinkNoDecorations.java index 2759c08146..65e19ecf09 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/link/LinkNoDecorations.java +++ b/src/com/itmill/toolkit/demo/sampler/features/link/LinkNoDecorations.java @@ -15,12 +15,7 @@ public class LinkNoDecorations extends Feature { @Override public String getDescription() { - return "An basic HTML-style (external) link, opening a browser window" - + "w/o decorations. A Link changes" - + " the url of the browser w/o triggering a server-side event" - + " (like the link-styled Button).
Links can open new" - + " browser windows, and configure the amount of browser" - + " features shown, such as toolbar and addressbar."; + return "These links open a browser window without decorations."; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/link/LinkSizedWindow.java b/src/com/itmill/toolkit/demo/sampler/features/link/LinkSizedWindow.java index bd6a02706e..18f118e0f7 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/link/LinkSizedWindow.java +++ b/src/com/itmill/toolkit/demo/sampler/features/link/LinkSizedWindow.java @@ -15,13 +15,7 @@ public class LinkSizedWindow extends Feature { @Override public String getDescription() { - return "An basic HTML-style (external) link, opening a small window w/o" - + " decorations.
A link changes" - + " the url of the browser w/o triggering a server-side event" - + " (like the link-styled Button).
Links can open new" - + " browser windows, and configure the amount of browser" - + " features shown, such as toolbar and addressbar, and can also" - + " set the size of the window."; + return "These links open a small, prefixed size window without decorations."; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationCustom.java b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationCustom.java index 77fb90f425..5449fdc60a 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationCustom.java +++ b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationCustom.java @@ -14,11 +14,9 @@ public class NotificationCustom extends Feature { @Override public String getDescription() { - return "Notifications are lightweight informational messages," - + " used to inform the user of various events.
" - + "The notification can have a caption, a richtext" + return "A notification can have a caption, a richtext" + " description, and an icon. Position and delay can" - + " also be customized.
Not that more often than" + + " also be customized.
Note that more often than" + " not, less is more: try to make the messages short" + " and to the point."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationError.java b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationError.java index b89dd925d5..b653f70665 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationError.java +++ b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationError.java @@ -14,17 +14,15 @@ public class NotificationError extends Feature { @Override public String getDescription() { - return "Notifications are lightweight informational messages," - + " used to inform the user of various events. The" - + " Error variant is modal, and is to be used for" + return "

The Error variant is modal, and is to be used for" + " messages that must be seen by the user.
" + " The Error message must be closed by clicking" - + " the notification.
Candidates for an" + + " the notification.

Candidates for an" + " Error notification include 'Save failed'," + " 'Permission denied', and other situations that the" + " user must be made aware of.
It's a good idea to" + " provide hints about what went wrong, and how the user'" - + " can proceed to correct the situation."; + + " can proceed to correct the situation.

"; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationHumanized.java b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationHumanized.java index fa2c41b74f..137e5808db 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationHumanized.java +++ b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationHumanized.java @@ -14,18 +14,16 @@ public class NotificationHumanized extends Feature { @Override public String getDescription() { - return "Notifications are lightweight informational messages," - + " used to inform the user of various events. The" - + " Humanized variant is an implementation of" + return "

The Humanized variant is an implementation of" + " the transparent message -pattern, and is meant" + " to indicate non-critical events while interrupting" + " the user as little as possible.
" + "The Humanized message quickly fades away once" + " the user interacts with the application (e.g. moves" - + " mouse, types)
Candidates for a" + + " mouse, types)

Candidates for a" + " Humanized notification include 'XYZ saved'," + " 'Added XYZ', and other messages that the user can" - + " safely ignore, once the application is familliar."; + + " safely ignore, once the application is familliar.

"; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationTray.java b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationTray.java index c1551fc72c..f5a41312fd 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationTray.java +++ b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationTray.java @@ -14,18 +14,16 @@ public class NotificationTray extends Feature { @Override public String getDescription() { - return "Notifications are lightweight informational messages," - + " used to inform the user of various events. The" - + " Tray variant shows up in the lower left corner," + return "

The Tray variant shows up in the lower left corner," + " and is meant to interrupt the user as little as possible" + " even if it's shown for a while. " + "The Tray message fades away after a few moments" + " once the user interacts with the application (e.g. moves" - + " mouse, types)
Candidates for a" + + " mouse, types)

Candidates for a" + " Tray notification include 'New message received'," - + " 'Job XYZ completed' - generally notifications about events" + + " 'Job XYZ completed' – generally notifications about events" + " that have been delayed, or occur in the background" - + " (as opposed to being a direct result of the users last action.)"; + + " (as opposed to being a direct result of the users last action.)

"; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationWarning.java b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationWarning.java index 421088906e..316bbbd7c5 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationWarning.java +++ b/src/com/itmill/toolkit/demo/sampler/features/notifications/NotificationWarning.java @@ -14,18 +14,16 @@ public class NotificationWarning extends Feature { @Override public String getDescription() { - return "Notifications are lightweight informational messages," - + " used to inform the user of various events. The" - + " Warning variant is an implementation of" + return "

The Warning variant is an implementation of" + " the transparent message -pattern, and is meant" + " to interrupt the user as little as possible, while" + " still drawing the needed attention." + "The Warning message fades away after a few moments" + " once the user interacts with the application (e.g. moves" - + " mouse, types)
Candidates for a" + + " mouse, types)

Candidates for a" + " Warning notification include 'You canceled XYZ'," + " 'XYZ deleted', and other situations that the user should" - + " be made aware of, but are probably intentional."; + + " be made aware of, but are probably intentional.

"; } @Override diff --git a/src/com/itmill/toolkit/demo/sampler/features/panels/PanelBasic.java b/src/com/itmill/toolkit/demo/sampler/features/panels/PanelBasic.java index 3186994559..ad42a5c4c7 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/panels/PanelBasic.java +++ b/src/com/itmill/toolkit/demo/sampler/features/panels/PanelBasic.java @@ -15,11 +15,7 @@ public class PanelBasic extends Feature { @Override public String getDescription() { - return "Panel is a simple container that supports scrolling.
" - + " It's internal layout (by default VerticalLayout) can be" - + " configured or exchanged to get desired results. Components" - + " that are added to the Panel will in effect be added to the" - + " layout."; + return ""; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/panels/PanelLight.java b/src/com/itmill/toolkit/demo/sampler/features/panels/PanelLight.java index e3b268cc40..d7d4717058 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/panels/PanelLight.java +++ b/src/com/itmill/toolkit/demo/sampler/features/panels/PanelLight.java @@ -15,12 +15,7 @@ public class PanelLight extends Feature { @Override public String getDescription() { - return "Panel is a simple container that supports scrolling.
" - + " It's internal layout (by default VerticalLayout) can be" - + " configured or exchanged to get desired results. Components" - + " that are added to the Panel will in effect be added to the" - + " layout.
" - + "The 'light' version has less decorations than the regular one."; + return "The 'light' style version has less decorations than the regular Panel style."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/selects/ListSelectSingle.java b/src/com/itmill/toolkit/demo/sampler/features/selects/ListSelectSingle.java index dc1ee06185..bcfc1c4c39 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/selects/ListSelectSingle.java +++ b/src/com/itmill/toolkit/demo/sampler/features/selects/ListSelectSingle.java @@ -14,7 +14,7 @@ public class ListSelectSingle extends Feature { @Override public String getDescription() { return "A simple list select component with single item selection.
" - + " You can allow or disallow null selection - i.e the" + + "You can allow or disallow null selection - i.e the" + " possibility to make an empty selection. Null selection is" + " not allowed in this example."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java index 08b1367a0b..979deb3d7e 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java @@ -21,9 +21,7 @@ public class TableActions extends Feature { @Override public String getDescription() { - return "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.
" - + "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 the a" + " context menu when right-clicking."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java index bb39a844cc..f511755d43 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java @@ -21,9 +21,7 @@ public class TableCellStyling extends Feature { @Override public String getDescription() { - return "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.
" - + "Individual cells can be styled in a Table by using a" + return "Individual cells can be styled in a Table by using a" + " CellStyleGenerator. Regular CSS is used to create the" + " actual style.
Double click a first or last name to" + " mark/unmark that cell."; diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java index 516166d6a5..cf6ad57fca 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java @@ -21,9 +21,7 @@ public class TableColumnAlignment extends Feature { @Override public String getDescription() { - return "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.
" - + "Columns can be aligned left (default), center or right."; + return "Columns can be aligned left (default), center or right."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java index d9fc25fde6..ad3d8fbf4c 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java @@ -21,9 +21,7 @@ public class TableColumnCollapsing extends Feature { @Override public String getDescription() { - return "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.
" - + "Columns can be 'collapsed', which means that it's not shown," + return "Columns can be 'collapsed', which means that it's not shown," + " but the user can make the column re-appear by using the" + " menu in the upper right of the table.
" + " Columns can also be made invisible, in which case they can" diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java index 9d6a1e68e6..583f86c79c 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java @@ -21,9 +21,7 @@ public class TableColumnHeaders extends Feature { @Override public String getDescription() { - return "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 can have column headers, which support different modes" + return "A Table can have column headers, which support different modes" + " with automatic or explicitly set caption and/or icon."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java index 67654b9834..9db6e7f669 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java @@ -21,9 +21,7 @@ public class TableColumnReordering extends Feature { @Override public String getDescription() { - return "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.
" - + " The columns can be rearranged with drag&drop - a feature" + return "The columns can be rearranged with drag&drop - a feature" + " which can be enabled or disabled."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java index da50cf4b3a..c891eed643 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java @@ -21,9 +21,7 @@ public class TableHeaderIcons extends Feature { @Override public String getDescription() { - return "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 can have icons in the column- and rowheaders. " + return "A Table can have icons in the column- and rowheaders. " + " The rowheader icon can come from a item property, or be" + " explicitly set."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java index 0883ee1659..d4fcebd297 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java @@ -21,9 +21,7 @@ public class TableLazyLoading extends Feature { @Override public String getDescription() { - return "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.
" - + "Table supports lazy-loading, which means that the content is" + return "Table supports lazy-loading, which means that the content is" + " loaded from the server only when needed. This allows the " + " table to stay efficient even when scrolling hundreds of" + " thousands of rows.
Try scrolling a fair amount quickly!"; diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java index a4875279dc..57e1d93072 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java @@ -19,10 +19,9 @@ public class TableMouseEvents extends Feature { return new TableStylingExample(); } + @Override public String getDescription() { - return "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.
" - + "An ItemClickListener can be used to react to mouse click" + return "An ItemClickListener can be used to react to mouse click" + " events. Different buttons, double click, and modifier keys" + " can be detected.
Double-click a first or last name to" + " toggle it's marked state."; diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java index 4d0ffe316f..467510aa41 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java @@ -21,9 +21,7 @@ public class TableRowHeaders extends Feature { @Override public String getDescription() { - return "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 can have row headers, which support different modes" + return "A Table can have row headers, which support different modes" + " with automatic or explicitly set caption and/or icon."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java index a165e3e527..aa461e7e05 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java @@ -21,9 +21,7 @@ public class TableRowStyling extends Feature { @Override public String getDescription() { - return "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.
" - + "Rows can be styled in a Table by using a CellStyleGenerator." + return "Rows can be styled in a Table by using a CellStyleGenerator." + " Regular CSS is used to create the actual style.
Use the" + " context menu (right-/ctrl-click) to apply a row style in" + " the example."; diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java index f8ec3588fa..cd9d83726b 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java @@ -21,9 +21,7 @@ public class TableSorting extends Feature { @Override public String getDescription() { - return "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.
" - + "The Table columns can (optionally) be sorted by clicking the" + return "The Table columns can (optionally) be sorted by clicking the" + " column header - a sort direction indicator will appear." + " Clicking again will change the sorting direction."; diff --git a/src/com/itmill/toolkit/demo/sampler/features/text/LabelPlain.java b/src/com/itmill/toolkit/demo/sampler/features/text/LabelPlain.java index 241cad83d2..cd0181636e 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/text/LabelPlain.java +++ b/src/com/itmill/toolkit/demo/sampler/features/text/LabelPlain.java @@ -13,10 +13,7 @@ public class LabelPlain extends Feature { @Override public String getDescription() { - return "A label is a simple component that allows you to add" - + " optionally formatted text components to your" - + " application." - + "
In this example the content mode is set to" + return "In this example the content mode is set to" + " CONTENT_TEXT, meaning that the label will contain" + " only plain text."; diff --git a/src/com/itmill/toolkit/demo/sampler/features/text/LabelPreformatted.java b/src/com/itmill/toolkit/demo/sampler/features/text/LabelPreformatted.java index 0a73ef1ad8..e3aed6b1d8 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/text/LabelPreformatted.java +++ b/src/com/itmill/toolkit/demo/sampler/features/text/LabelPreformatted.java @@ -13,10 +13,7 @@ public class LabelPreformatted extends Feature { @Override public String getDescription() { - return "A label is a simple component that allows you to add" - + " optionally formatted text components to your" - + " application." - + "
In this example the content mode is set to" + return "In this example the content mode is set to" + " CONTENT_PREFORMATTED. The text for this content type" + " is by default rendered with fixed-width font. Line breaks" + " can be inserted with \\n and tabulator characters with \\t."; diff --git a/src/com/itmill/toolkit/demo/sampler/features/text/LabelRich.java b/src/com/itmill/toolkit/demo/sampler/features/text/LabelRich.java index 2efe72525e..80353d63ec 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/text/LabelRich.java +++ b/src/com/itmill/toolkit/demo/sampler/features/text/LabelRich.java @@ -13,10 +13,7 @@ public class LabelRich extends Feature { @Override public String getDescription() { - return "A label is a simple component that allows you to add" - + " optionally formatted text components to your" - + " application." - + "
In this example the content mode is set to" + return "In this example the content mode is set to" + " CONTENT_XHTML. This content mode assumes that the" + " content set to the label will be valid XHTML."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/text/TextFieldSingle.java b/src/com/itmill/toolkit/demo/sampler/features/text/TextFieldSingle.java index 50b910a456..23a114bfa3 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/text/TextFieldSingle.java +++ b/src/com/itmill/toolkit/demo/sampler/features/text/TextFieldSingle.java @@ -14,9 +14,7 @@ public class TextFieldSingle extends Feature { @Override public String getDescription() { - return "A single line Textfield component allows you to input" - + " one line of text.
" - + "
For sensitive data input, the textfield can" + return "For sensitive data input, the textfield can" + " also be set into secret mode where the input will not be" + " echoed to display."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeActions.java b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeActions.java index 942b15db4a..6cf69fe5a0 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeActions.java +++ b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeActions.java @@ -14,10 +14,7 @@ public class TreeActions extends Feature { @Override public String getDescription() { - return "The Tree component allows a natural way to represent" - + " data that has hierarchical relationships, such as" - + " filesystems or message threads." - + "
In this example, actions have been attached to" + return "In this example, actions have been attached to" + " the tree component. Try clicking the secondary mouse" + " button on an item in the tree."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMouseEvents.java b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMouseEvents.java index 6dfa186aed..2a7d4e4728 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMouseEvents.java +++ b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMouseEvents.java @@ -13,10 +13,7 @@ public class TreeMouseEvents extends Feature { @Override public String getDescription() { - return "The Tree component allows a natural way to represent" - + " data that has hierarchical relationships, such as" - + " filesystems or message threads." - + "
In this example, selecting items from the tree" + return "In this example, selecting items from the tree" + " is disabled. Instead, another method of selection" + " is used. Through ItemClickEvent we can update the" + " label showing the selection." diff --git a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMultiSelect.java b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMultiSelect.java index 3dce33f3fa..cab5cce026 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMultiSelect.java +++ b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeMultiSelect.java @@ -13,10 +13,7 @@ public class TreeMultiSelect extends Feature { @Override public String getDescription() { - return "The Tree component allows a natural way to represent" - + " data that has hierarchical relationships, such as" - + " filesystems or message threads." - + "
In this example, you can select multiple tree nodes" + return "In this example, you can select multiple tree nodes" + " and delete your selection. Click a selected item again to de-select it."; } diff --git a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeSingleSelect.java b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeSingleSelect.java index 08b113970f..2197835b43 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/trees/TreeSingleSelect.java +++ b/src/com/itmill/toolkit/demo/sampler/features/trees/TreeSingleSelect.java @@ -13,10 +13,7 @@ public class TreeSingleSelect extends Feature { @Override public String getDescription() { - return "The Tree component allows a natural way to represent" - + " data that has hierarchical relationships, such as" - + " filesystems or message threads." - + "
In this example, you can select any single tree node" + return "In this example, you can select any single tree node" + " and modify its 'name' property. Click again to de-select."; } -- 2.39.5