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>"treeDataLocator"</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>"icon"</property></emphasis>,
+ <emphasis
role="italic"><property>"iconCollapsed"</property></emphasis>,
+ <emphasis
role="italic"><property>"iconExpanded"</property></emphasis>,
+ <emphasis
role="italic"><property>"iconLeaf"</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>"icon"</property></emphasis>,
+ <emphasis
role="italic"><property>"iconCollapsed"</property></emphasis>,
+ <emphasis
role="italic"><property>"iconExpanded"</property></emphasis>,
+ <emphasis
role="italic"><property>"iconLeaf"</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>
Show replies by date