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'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>"icon"</property>
- </emphasis>, <emphasis>
- <property>"iconCollapsed"</property>
- </emphasis>, <emphasis>
- <property>"iconExpanded"</property>
- </emphasis>, <emphasis>
- <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.
</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="data" on a tree)
happens:</para>
@@ -146,6 +110,39 @@
mouse, it's managed with the <emphasis>
<property>"ajaxSubmitSelection"</property>
</emphasis> attribute (true/false).</para>
+ <para> The <emphasis>
+ <property>"icon"</property>
+ </emphasis>, <emphasis>
+ <property>"iconCollapsed"</property>
+ </emphasis>, <emphasis>
+ <property>"iconExpanded"</property>
+ </emphasis>, <emphasis>
+ <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. 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>