]> source.dussan.org Git - vaadin-framework.git/commitdiff
Sampler: Table samples descriptions and links updated.
authorMarc Englund <marc.englund@itmill.com>
Wed, 4 Feb 2009 15:17:36 +0000 (15:17 +0000)
committerMarc Englund <marc.englund@itmill.com>
Wed, 4 Feb 2009 15:17:36 +0000 (15:17 +0000)
svn changeset:6731/svn branch:trunk

12 files changed:
src/com/itmill/toolkit/demo/sampler/features/table/TableActions.java
src/com/itmill/toolkit/demo/sampler/features/table/TableCellStyling.java
src/com/itmill/toolkit/demo/sampler/features/table/TableColumnAlignment.java
src/com/itmill/toolkit/demo/sampler/features/table/TableColumnCollapsing.java
src/com/itmill/toolkit/demo/sampler/features/table/TableColumnHeaders.java
src/com/itmill/toolkit/demo/sampler/features/table/TableColumnReordering.java
src/com/itmill/toolkit/demo/sampler/features/table/TableHeaderIcons.java
src/com/itmill/toolkit/demo/sampler/features/table/TableLazyLoading.java
src/com/itmill/toolkit/demo/sampler/features/table/TableMouseEvents.java
src/com/itmill/toolkit/demo/sampler/features/table/TableRowHeaders.java
src/com/itmill/toolkit/demo/sampler/features/table/TableRowStyling.java
src/com/itmill/toolkit/demo/sampler/features/table/TableSorting.java

index 7ccfd6f305536466ff5e80e19708f77cc7da078a..8416abb53641215f04f13fef37a2987ec56c0f01 100644 (file)
@@ -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.<br>"
+                + "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;
     }
 
index 21833de2e6933b74649b9c24d4a7732df8e51a57..346940ff9a92e33d31279e35816d3961cee608ee 100644 (file)
@@ -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.<br/>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.<br>"
+                + "Individual cells can be styled in a Table by using a"
+                + " CellStyleGenerator. Regular CSS is used to create the"
+                + " actual style.<br/>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;
     }
 
index 61f9b22b13e8fdb4ff06bbf75c432ea6df0cbdb4..5b390312ae445f4c879947f4937dbedf9bba98ee 100644 (file)
@@ -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.<br>"
+                + "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;
     }
-
 }
index 35ed33140fe590f82b9b935810bd4ac92031c1f4..c39e988aec7d337da41d0a1c6b2b10ad56f2027c 100644 (file)
@@ -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.<br/>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.<br>"
+                + "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.<br/>"
+                + " 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;
     }
 
index 0051dd4c500b144a1d3193314f413cbceb420004..44831e29d84f5738aab64496d04032238dcd0f8a 100644 (file)
@@ -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.<br>"
+                + " 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;
     }
 
index 38701a0845e3d3e0f1519e6aa965a4bd30751cfc..458fab969a9b4b6fd3c68f9e641242277e4a6786 100644 (file)
@@ -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.<br>"
+                + " 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;
     }
 
index 8dbd912ae859aa8f4df7424b25f0f323509bdafb..058fe17b797392d4eda0ebd6d11e80142cb36952 100644 (file)
@@ -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.<br>"
+                + " 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;
     }
 
index 03f1dbec08359269656c3153147d59e95abf594e..2f778c8ac3f9140b2d409ec133cac690f4f72faa 100644 (file)
@@ -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.<br/>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.<br>"
+                + "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.<br/>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;
     }
 
index 0be2f7ee4b8e21a51790dbe76d7f234a497e38bd..9c92cec4c78c19fb91381f693511ed56b234c60b 100644 (file)
@@ -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.<br/>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.<br>"
+                + "An ItemClickListener can be used to react to mouse click"
+                + " events. Different buttons, double click, and modifier keys"
+                + " can be detected.<br/>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;
     }
 
index e9284ab98ffe82e1b55dd925ef30e4d17e2d354d..fe18d0de3c6dbe1792ed22207cf38d3947d2ad76 100644 (file)
@@ -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.<br>"
+                + " 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;
     }
 
index 49cf52e70c0791bfb6d651acf93e6266b090a1f0..fb20d01cbffc35837a6e6b98b0fd7ee99e693959 100644 (file)
@@ -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.<br/>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.<br>"
+                + "Rows can be styled in a Table by using a CellStyleGenerator."
+                + " Regular CSS is used to create the actual style.<br/>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;
     }
 
index e7d66a9d16251f4537773d98f7e3ca410cb2e2e2..f95eba0bc6351f0f471d328bfbefe5e305cb36c7 100644 (file)
@@ -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.<br>"
+                + "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;
     }