[richfaces-svn-commits] JBoss Rich Faces SVN: r884 - trunk/docs/userguide/en/included.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri May 25 10:15:52 EDT 2007


Author: vkukharchuk
Date: 2007-05-25 10:15:52 -0400 (Fri, 25 May 2007)
New Revision: 884

Modified:
   trunk/docs/userguide/en/included/tree.xml
   trunk/docs/userguide/en/included/treeNode.xml
Log:


Modified: trunk/docs/userguide/en/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/included/tree.xml	2007-05-25 13:17:15 UTC (rev 883)
+++ trunk/docs/userguide/en/included/tree.xml	2007-05-25 14:15:52 UTC (rev 884)
@@ -106,6 +106,31 @@
 	  <emphasis role="italic"><property>&quot;treeDataLocator&quot;</property></emphasis> attribute 
 	  defines a class providing an access to cashed data according to the ids saved in state/request
 	   on recovery or cashing data saving the Id on caching.</para>
+
+	<para>
+	The <emphasis role="italic"><property>&quot;icon&quot;</property></emphasis>,
+	<emphasis role="italic"><property>&quot;iconCollapsed&quot;</property></emphasis>,
+	<emphasis role="italic"><property>&quot;iconExpanded&quot;</property></emphasis>,
+	<emphasis role="italic"><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.
+<programlisting role="JAVA"><![CDATA[
+<rich:tree ....>
+	...
+	<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:tree>]]></programlisting></para>
 	   </section>
 	   <section>
 	   <title>Built-In Drag and Drop</title>

Modified: trunk/docs/userguide/en/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/included/treeNode.xml	2007-05-25 13:17:15 UTC (rev 883)
+++ trunk/docs/userguide/en/included/treeNode.xml	2007-05-25 14:15:52 UTC (rev 884)
@@ -64,6 +64,33 @@
   </section>
   <section>
     <title>Details of Usage</title>
+	<para>
+	The <emphasis role="italic"><property>&quot;icon&quot;</property></emphasis>,
+	<emphasis role="italic"><property>&quot;iconCollapsed&quot;</property></emphasis>,
+	<emphasis role="italic"><property>&quot;iconExpanded&quot;</property></emphasis>,
+	<emphasis role="italic"><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.
+<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></para>
+	
     </section>
     <section>
     <title>Look-and-Feel Customization</title>




More information about the richfaces-svn-commits mailing list