[richfaces-svn-commits] JBoss Rich Faces SVN: r5467 - trunk/docs/userguide/en/src/main/docbook/included.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jan 18 09:33:29 EST 2008


Author: vkorluzhenko
Date: 2008-01-18 09:33:29 -0500 (Fri, 18 Jan 2008)
New Revision: 5467

Modified:
   trunk/docs/userguide/en/src/main/docbook/included/tree.desc.xml
   trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
Log:
http://jira.jboss.com/jira/browse/RF-1137 - review description, fixed some errors.

Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.desc.xml	2008-01-18 14:32:49 UTC (rev 5466)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.desc.xml	2008-01-18 14:33:29 UTC (rev 5467)
@@ -17,9 +17,9 @@
                 </imageobject>
             </mediaobject>
         </figure>
-        <para>On the screenshot above, there is an example of the <property>tree</property> with an expanded node. This node
+        <!--para>On the screenshot above, there is an example of the <property>tree</property> with an expanded node. This node
             contains its own node with several leaves. Besides, it&apos;s possible to choose your own
-            icons for tree nodes.</para>
+            icons for tree nodes.</para-->
     </section>
     <section>
         <title>Key Features</title>

Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml	2008-01-18 14:32:49 UTC (rev 5466)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml	2008-01-18 14:33:29 UTC (rev 5467)
@@ -70,45 +70,9 @@
 ...
 ]]></programlisting>
   </section>
+  
   <section>
     <title>Details of Usage</title>
-    <para> The <emphasis>
-        <property>&quot;icon&quot;</property>
-      </emphasis>, <emphasis>
-        <property>&quot;iconCollapsed&quot;</property>
-      </emphasis>, <emphasis>
-        <property>&quot;iconExpanded&quot;</property>
-      </emphasis>, <emphasis>
-        <property>&quot;iconLeaf&quot;</property>
-      </emphasis> attributes define icons for the component. Also you can define icons using facets
-      with the same names. If the facets are defined, the corresponding attributes are ignored and
-      facets contents are used as icons. The width of a rendered facet area is 16px. </para>
-	  
-	  <programlisting role="JAVA"><![CDATA[...
-    <rich:tree ...>
-        ...
-        <rich:treeNode ...>
-            <f:facet name="icon">
-                <hutputText value="A"/>
-            </f:facet>
-            <f:facet name="iconCollapsed">
-                <hutputText value="B"/>
-            </f:facet>		
-            <f:facet name="iconExpanded">
-                <hutputText value="C"/>
-            </f:facet>
-            <f:facet name="iconLeaf">
-                <hutputText value="D"/>
-            </f:facet>
-        </rich:treeNode>
-        ...
-    </rich:tree>
-...
-]]></programlisting>
-
-  </section>
-  <section>
-    <title>Details of Usage</title>
     <para>As it has been mentioned <link linkend="treeNode">above</link>, <property>treeNode</property> defines a template for nodes
       rendering in a tree. Thus, during XML document rendering (a web.xml application) as a tree,
       the following nodes output (passed via var=&quot;data&quot; on a tree) happens:</para>
@@ -146,6 +110,39 @@
       mouse, it&apos;s managed with the <emphasis>
         <property>&quot;ajaxSubmitSelection&quot;</property>
       </emphasis> attribute (true/false).</para>
+    <para> The <emphasis>
+      <property>&quot;icon&quot;</property>
+    </emphasis>, <emphasis>
+      <property>&quot;iconCollapsed&quot;</property>
+    </emphasis>, <emphasis>
+      <property>&quot;iconExpanded&quot;</property>
+    </emphasis>, <emphasis>
+      <property>&quot;iconLeaf&quot;</property>
+    </emphasis> attributes define icons for the component. Also you can define icons using facets
+      with the same names. If the facets are defined, the corresponding attributes are ignored and
+      facets contents are used as icons. By default the width of a rendered facet area is 16px. </para>
+    <para>
+      <emphasis role="bold">Example:</emphasis>
+    </para>
+    
+    <programlisting role="JAVA"><![CDATA[...
+    <rich:tree ....>
+        ...
+        <f:facet name="icon">
+            <h:graphicImage value="/images/tree/singer.png "/>
+        </f:facet>
+        <f:facet name="iconCollapsed">
+            <h:graphicImage value="/images/tree/singer.png " />
+        </f:facet>      
+        <f:facet name="iconExpanded">
+            <h:graphicImage value="/images/tree/singer.png " />
+        </f:facet>
+        <f:facet name="iconLeaf">
+            <h:graphicImage value="/images/tree/song.png " />
+        </f:facet>
+          ...
+    </rich:tree>
+...]]></programlisting>
   </section>
   <section>
     <title>Built-in Drag and Drop</title>




More information about the richfaces-svn-commits mailing list