click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r902349 - in /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree: AdvancedTreePage.java CheckboxTreePage.java PlainTreePage.java
Date Sat, 23 Jan 2010 06:26:30 GMT
Author: sabob
Date: Sat Jan 23 06:26:29 2010
New Revision: 902349

URL: http://svn.apache.org/viewvc?rev=902349&view=rev
Log:
added a long label to force horizontal scrolling demo

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/AdvancedTreePage.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/CheckboxTreePage.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/PlainTreePage.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/AdvancedTreePage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/AdvancedTreePage.java?rev=902349&r1=902348&r2=902349&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/AdvancedTreePage.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/AdvancedTreePage.java
Sat Jan 23 06:26:29 2010
@@ -121,7 +121,7 @@
         //we do specify a id as the 2nd argument, so no id is generated.
         TreeNode dev = new TreeNode("dev","1", root);
 
-        //The follwing 2 nodes represent files in the directory, setting the
+        //The follwing 3 nodes represent files in the directory, setting the
         //dev node as their parent. Note the false argument to the constructor.
         //This means that the specific node does not support child nodes, and
         //it will be rendered as a leaf icon. If children are supported (the
@@ -129,23 +129,31 @@
         //as a collapsed icon. In the example a default leaf node will be
         //rendered as a directory, and a node that does not support children is
         //rendered as a file.
-        new TreeNode("java.pdf", "2", dev, false);
-        new TreeNode("ruby.pdf", "3", dev, false);
+        // Also note the node with the long text, will cause the tree to overflow
+        // and add scrollbars
+        new TreeNode("java.pdf", "1.1", dev, false);
+        new TreeNode("JEE 6 - the new fantastic approach to write better software (apparently)",
"1.2", dev, false);
+        new TreeNode("ruby.pdf", "1.3", dev, false);
 
         //We continue constructing the rest of the tree
-        TreeNode programFiles = new TreeNode("program files", "4", root);
-        new TreeNode("Adobe", "5", programFiles);
+        TreeNode programFiles = new TreeNode("program files", "2", root);
+        new TreeNode("Adobe", "2.1", programFiles);
 
-        TreeNode download = new TreeNode("downloads","6", root);
+        TreeNode download = new TreeNode("downloads","3", root);
 
-        TreeNode web = new TreeNode("web", "7", download);
-        new TreeNode("html.pdf", "8", web, false);
-        new TreeNode("css.html", "9", web, false);
-
-        TreeNode databases = new TreeNode("databases", "10", download);
-        new TreeNode("mysql.html","11",databases, false);
-        new TreeNode("oracle.pdf","12",databases, false);
-        new TreeNode("postgres","13",databases, false);
+        TreeNode web = new TreeNode("web", "3.1", download);
+        new TreeNode("html.pdf", "3.1.1", web, false);
+        new TreeNode("css.html", "3.1.2", web, false);
+
+        TreeNode databases = new TreeNode("databases", "3.2", download);
+        TreeNode relationalDb = new TreeNode("relational", "3.2.1", databases);
+
+        new TreeNode("mysql.html", "3.2.1.1", relationalDb, false);
+        new TreeNode("oracle.pdf", "3.2.1.2", relationalDb, false);
+        new TreeNode("postgres", "3.2.1.3", relationalDb, false);
+
+        TreeNode objectDb = new TreeNode("object", "3.2.2", databases);
+        new TreeNode("db4o.html", "3.2.2.1", objectDb, false);
 
         //Attach the root node containing all the other nodes to the tree
         tree.setRootNode(root);

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/CheckboxTreePage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/CheckboxTreePage.java?rev=902349&r1=902348&r2=902349&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/CheckboxTreePage.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/CheckboxTreePage.java
Sat Jan 23 06:26:29 2010
@@ -126,7 +126,7 @@
         //we do specify a id as the 2nd argument, so no id is generated.
         TreeNode dev = new TreeNode("dev","1", root);
 
-        //The follwing 2 nodes represent files in the directory, setting the
+        //The follwing 3 nodes represent files in the directory, setting the
         //dev node as their parent. Note the false argument to the constructor.
         //This means that the specific node does not support child nodes, and
         //it will be rendered as a leaf icon. If children are supported (the
@@ -134,23 +134,31 @@
         //as a collapsed icon. In the example a default leaf node will be
         //rendered as a directory, and a node that does not support children is
         //rendered as a file.
-        new TreeNode("java.pdf", "2", dev, false);
-        new TreeNode("ruby.pdf", "3", dev, false);
+        // Also note the node with the long text, will cause the tree to overflow
+        // and add scrollbars
+        new TreeNode("java.pdf", "1.1", dev, false);
+        new TreeNode("JEE 6 - the new fantastic approach to write better software (apparently)",
"1.2", dev, false);
+        new TreeNode("ruby.pdf", "1.3", dev, false);
 
         //We continue constructing the rest of the tree
-        TreeNode programFiles = new TreeNode("program files", "4", root);
-        new TreeNode("Adobe", "5", programFiles);
+        TreeNode programFiles = new TreeNode("program files", "2", root);
+        new TreeNode("Adobe", "2.1", programFiles);
 
-        TreeNode download = new TreeNode("downloads","6", root);
+        TreeNode download = new TreeNode("downloads","3", root);
 
-        TreeNode web = new TreeNode("web", "7", download);
-        new TreeNode("html.pdf", "8", web, false);
-        new TreeNode("css.html", "9", web, false);
-
-        TreeNode databases = new TreeNode("databases", "10", download);
-        new TreeNode("mysql.html","11",databases, false);
-        new TreeNode("oracle.pdf","12",databases, false);
-        new TreeNode("postgres","13",databases, false);
+        TreeNode web = new TreeNode("web", "3.1", download);
+        new TreeNode("html.pdf", "3.1.1", web, false);
+        new TreeNode("css.html", "3.1.2", web, false);
+
+        TreeNode databases = new TreeNode("databases", "3.2", download);
+        TreeNode relationalDb = new TreeNode("relational", "3.2.1", databases);
+
+        new TreeNode("mysql.html", "3.2.1.1", relationalDb, false);
+        new TreeNode("oracle.pdf", "3.2.1.2", relationalDb, false);
+        new TreeNode("postgres", "3.2.1.3", relationalDb, false);
+
+        TreeNode objectDb = new TreeNode("object", "3.2.2", databases);
+        new TreeNode("db4o.html", "3.2.2.1", objectDb, false);
 
         //Attach the root node containing all the other nodes to the tree
         tree.setRootNode(root);

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/PlainTreePage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/PlainTreePage.java?rev=902349&r1=902348&r2=902349&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/PlainTreePage.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/tree/PlainTreePage.java
Sat Jan 23 06:26:29 2010
@@ -134,7 +134,7 @@
         //we do specify a id as the 2nd argument, so no id is generated.
         TreeNode dev = new TreeNode("dev","1", root);
 
-        //The follwing 2 nodes represent files in the directory, setting the
+        //The follwing 3 nodes represent files in the directory, setting the
         //dev node as their parent. Note the false argument to the constructor.
         //This means that the specific node does not support child nodes, and
         //it will be rendered as a leaf icon. If children are supported (the
@@ -142,28 +142,31 @@
         //as a collapsed icon. In the example a default leaf node will be
         //rendered as a directory, and a node that does not support children is
         //rendered as a file.
-        new TreeNode("java.pdf", "2", dev, false);
-        new TreeNode("ruby.pdf", "3", dev, false);
+        // Also note the node with the long text, will cause the tree to overflow
+        // and add scrollbars
+        new TreeNode("java.pdf", "1.1", dev, false);
+        new TreeNode("JEE 6 - the new fantastic approach to write better software (apparently)",
"1.2", dev, false);
+        new TreeNode("ruby.pdf", "1.3", dev, false);
 
         //We continue constructing the rest of the tree
-        TreeNode programFiles = new TreeNode("program files", "4", root);
-        new TreeNode("Adobe", "5", programFiles);
+        TreeNode programFiles = new TreeNode("program files", "2", root);
+        new TreeNode("Adobe", "2.1", programFiles);
 
-        TreeNode download = new TreeNode("downloads","6", root);
+        TreeNode download = new TreeNode("downloads","3", root);
 
-        TreeNode web = new TreeNode("web", "7", download);
-        new TreeNode("html.pdf", "8", web, false);
-        new TreeNode("css.html", "9", web, false);
+        TreeNode web = new TreeNode("web", "3.1", download);
+        new TreeNode("html.pdf", "3.1.1", web, false);
+        new TreeNode("css.html", "3.1.2", web, false);
 
-        TreeNode databases = new TreeNode("databases", "10", download);
-        TreeNode relationalDb = new TreeNode("relational", "11", databases);
+        TreeNode databases = new TreeNode("databases", "3.2", download);
+        TreeNode relationalDb = new TreeNode("relational", "3.2.1", databases);
 
-        new TreeNode("mysql.html","13", relationalDb, false);
-        new TreeNode("oracle.pdf","14", relationalDb, false);
-        new TreeNode("postgres","15", relationalDb, false);
+        new TreeNode("mysql.html", "3.2.1.1", relationalDb, false);
+        new TreeNode("oracle.pdf", "3.2.1.2", relationalDb, false);
+        new TreeNode("postgres", "3.2.1.3", relationalDb, false);
 
-        TreeNode objectDb = new TreeNode("object", "12", databases);
-        new TreeNode("db4o.html","16", objectDb, false);
+        TreeNode objectDb = new TreeNode("object", "3.2.2", databases);
+        new TreeNode("db4o.html", "3.2.2.1", objectDb, false);
 
         return root;
     }



Mime
View raw message