From 87799ae4037121d379a37098d5b659e8c76a0f08 Mon Sep 17 00:00:00 2001 From: Marc Englund Date: Wed, 4 Feb 2009 15:17:36 +0000 Subject: [PATCH] Sampler: Table samples descriptions and links updated. svn changeset:6731/svn branch:trunk --- .../sampler/features/table/TableActions.java | 15 +++++++++------ .../features/table/TableCellStyling.java | 17 +++++++++++------ .../features/table/TableColumnAlignment.java | 15 ++++++++------- .../features/table/TableColumnCollapsing.java | 17 +++++++++++------ .../features/table/TableColumnHeaders.java | 14 ++++++++------ .../features/table/TableColumnReordering.java | 14 ++++++++------ .../features/table/TableHeaderIcons.java | 15 +++++++++------ .../features/table/TableLazyLoading.java | 17 +++++++++++------ .../features/table/TableMouseEvents.java | 17 ++++++++++------- .../sampler/features/table/TableRowHeaders.java | 14 ++++++++------ .../sampler/features/table/TableRowStyling.java | 17 +++++++++++------ .../sampler/features/table/TableSorting.java | 16 ++++++++++------ 12 files changed, 114 insertions(+), 74 deletions(-) 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 7ccfd6f305..8416abb536 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableActions extends Feature { @@ -14,24 +16,25 @@ public class TableActions extends Feature { @Override public String getDescription() { - return "Actions can be added to each row, and are show in the a context menu when right-clicking (or ctrl-clicking)."; + 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" + + " context menu when right-clicking."; + } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 21833de2e6..346940ff9a 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableCellStyling extends Feature { @@ -14,24 +16,27 @@ public class TableCellStyling extends Feature { @Override public String getDescription() { - 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."; + 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" + + " CellStyleGenerator. Regular CSS is used to create the" + + " actual style.
Double click a first or last name to" + + " mark/unmark that cell."; + } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 61f9b22b13..5b390312ae 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableColumnAlignment extends Feature { @@ -14,25 +16,24 @@ public class TableColumnAlignment extends Feature { @Override public String getDescription() { - return "Columns can be aligned left (default), center or right."; + 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."; + } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } - } 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 35ed33140f..c39e988aec 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableColumnCollapsing extends Feature { @@ -14,24 +16,27 @@ public class TableColumnCollapsing extends Feature { @Override public String getDescription() { - 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 not be brought back by the user."; + 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," + + " 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" + + " not be brought back by the user."; } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 0051dd4c50..44831e29d8 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableColumnHeaders extends Feature { @@ -14,24 +16,24 @@ public class TableColumnHeaders extends Feature { @Override public String getDescription() { - return "A Table can optionally have column headers. The headers can contain a caption and an icon, and it's width can be changed by the user. A column can also (optionally) be moved by the user by dragging the column header, and (optionally) be sorted by clicking the header."; + 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" + + " with automatic or explicitly set caption and/or icon."; } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 38701a0845..458fab969a 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableColumnReordering extends Feature { @@ -14,24 +16,24 @@ public class TableColumnReordering extends Feature { @Override public String getDescription() { - return "The column headers can be reordered by the user using drag and drop. This feature can be turned on or off."; + 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" + + " which can be enabled or disabled."; } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 8dbd912ae8..058fe17b79 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableHeaderIcons extends Feature { @@ -14,24 +16,25 @@ public class TableHeaderIcons extends Feature { @Override public String getDescription() { - return "A Table can have icons in the column- and rowheaders. The rowheader icon can come from a item property, or be explicitly set."; + 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. " + + " The rowheader icon can come from a item property, or be" + + " explicitly set."; } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 03f1dbec08..2f778c8ac3 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableLazyLoading extends Feature { @@ -14,24 +16,27 @@ public class TableLazyLoading extends Feature { @Override public String getDescription() { - 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!"; + 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" + + " 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!"; + } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 0be2f7ee4b..9c92cec4c7 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableMouseEvents extends Feature { @@ -12,26 +14,27 @@ public class TableMouseEvents extends Feature { return new TableStylingExample(); } - @Override public String getDescription() { - 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."; + 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" + + " events. Different buttons, double click, and modifier keys" + + " can be detected.
Double-click a first or last name to" + + " toggle it's marked state."; } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 e9284ab98f..fe18d0de3c 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableRowHeaders extends Feature { @@ -14,24 +16,24 @@ public class TableRowHeaders extends Feature { @Override public String getDescription() { - return "A Table can have row headers, which can contain an icon and a caption, or both. There are several modes: the icon can come from a property or be explicitly set, the caption can be explicitly set or come from the item id, from a property, based on row index, or from the item itself."; + 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" + + " with automatic or explicitly set caption and/or icon."; } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 49cf52e70c..fb20d01cbf 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableRowStyling extends Feature { @@ -14,24 +16,27 @@ public class TableRowStyling extends Feature { @Override public String getDescription() { - 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."; + 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." + + " Regular CSS is used to create the actual style.
Use the" + + " context menu (right-/ctrl-click) to apply a row style in" + + " the example."; + } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } 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 e7d66a9d16..f95eba0bc6 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java +++ b/src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java @@ -2,7 +2,9 @@ package com.itmill.toolkit.demo.sampler.features.table; import com.itmill.toolkit.demo.sampler.APIResource; import com.itmill.toolkit.demo.sampler.Feature; +import com.itmill.toolkit.demo.sampler.FeatureSet; import com.itmill.toolkit.demo.sampler.NamedExternalResource; +import com.itmill.toolkit.terminal.gwt.client.ui.Table; import com.itmill.toolkit.ui.Component; public class TableSorting extends Feature { @@ -14,24 +16,26 @@ public class TableSorting extends Feature { @Override public String getDescription() { - 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."; + 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" + + " column header - a sort direction indicator will appear." + + " Clicking again will change the sorting direction."; + } @Override public APIResource[] getRelatedAPI() { - // TODO Auto-generated method stub - return null; + return new APIResource[] { new APIResource(Table.class) }; } @Override public Class[] getRelatedFeatures() { - // TODO Auto-generated method stub - return null; + return new Class[] { FeatureSet.Tables.class }; } @Override public NamedExternalResource[] getRelatedResources() { - // TODO Auto-generated method stub return null; } -- 2.39.5