Author: msorokin
Date: 2008-02-21 10:59:18 -0500 (Thu, 21 Feb 2008)
New Revision: 6257
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
Some sentences were rewritten or corrected.
http://jira.jboss.com/jira/browse/RF-1137
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-02-21 15:58:40 UTC
(rev 6256)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-02-21 15:59:18 UTC
(rev 6257)
@@ -397,45 +397,41 @@
</imageobject>
</mediaobject>
</figure>
- <para>In the example when each node of data model is processed, data contained
in the property
- <property>"data"</property> of
- <property>"TreeNode"</property> interface is placed
in a request scope
- variable, which name is defined with <emphasis>
+ <para>In the example above, when each node of data model is processed, data
contained in the <property>"data"</property> property
+ of
+ <property>"TreeNode"</property> interface is assigned
to a request scope variable, which name is defined with <emphasis>
<property>"var"</property>
</emphasis> attribute. The value of the <emphasis>
<property>"nodeFace"</property>
- </emphasis> attribute is evaluated in correspondence with data placed in the
<emphasis>
+ </emphasis> attribute is evaluated in correspondence with the data assigned
to the <emphasis>
<property>"var"</property>
- </emphasis> attribute. And for the node representation is used the
corresponding <emphasis
- role="bold">
- <property><rich:treeNode></property>
- </emphasis> component (with a value of <emphasis>
+ </emphasis> attribute. The corresponding <emphasis
role="bold"><property><rich:treeNode></property></emphasis>
component (with a value of <emphasis>
<property>"type"</property>
</emphasis> attribute equal to a value of <emphasis>
<property>"nodeFace"</property>
- </emphasis>). For example, during processing of data model an object with
name "Chris
- Rea" was placed in the <emphasis>
+ </emphasis>) is used for the node representation. For example, during data
model processing, an object with a name "Chris
+ Rea" was inserted in the <emphasis>
<property>"var"</property>
- </emphasis> attribute. Then value of <emphasis>
+ </emphasis> attribute. Then the value of <emphasis>
<property>"nodeFace"</property>
- </emphasis> attribute is evaluated as "artist". Thus, for
node
+ </emphasis> attribute was evaluated as "artist". Thus, for
the node
representation the <emphasis role="bold">
<property><rich:treeNode></property>
</emphasis> with <emphasis>
<property>"type"</property>
- </emphasis> equal to "artist" is used.</para>
- <para>Also you can define an EL-expression as value of the <emphasis>
+ </emphasis> equal to "artist" was used.</para>
+ <para>You can also assign an EL-expression as value of the <emphasis>
<property>"nodeFace"</property>
</emphasis> attribute. See an example below: </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[nodeFace="#{data.name !=
'param-value' ? 'artist' : 'album'}"
]]></programlisting>
- <para>There are some essential moments in a <emphasis>
+ <para>There are some essential points in a <emphasis>
<property>"nodeFace"</property>
- </emphasis> attribute usage. For their description it's necessary to
define notions
- of a <property>"typeless node"</property> and a
<property>"default
- node"</property>.</para>
+ </emphasis> attribute usage: you need to define notions for
<property>typeless</property> and a <property>default</property>
nodes.
+ </para>
+
<para>The <property>typeless node</property> is the first
<emphasis role="bold">
<property><rich:treeNode></property>
</emphasis> component (from all children nodes nested to the <emphasis
role="bold">
@@ -472,20 +468,20 @@
</emphasis> attribute for this node is
<property>"false"</property>.</listitem>
</itemizedlist>
- <para>There is also one especial moment in the <emphasis>
+ <para>There is also one thing that has to be remembered using
<emphasis>
<property>"type"</property>
</emphasis> and <emphasis>
<property>"rendered"</property>
- </emphasis> attributes usage. It's possible to define several
<emphasis role="bold">
+ </emphasis> attributes: it's possible to define several <emphasis
role="bold">
<property><rich:treeNode></property>
- </emphasis> components with the equal values of <emphasis>
+ </emphasis> components with equal values of <emphasis>
<property>"type"</property>
</emphasis> attribute and different values of <emphasis>
<property>"rendered"</property>
- </emphasis> attribute. It provides the possibility to define different
representation for the
+ </emphasis> attribute. It provides a possibility to define different
representation styles for the
same node types. In the example with artists and their albums (see <link
linkend="example"
above</link>) it's possible to represent albums that
are available for sale and
- albums that are not available. An example is
placed below:</para>
+ albums that are not available. Please study the example below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -506,7 +502,7 @@
</rich:tree>
</h:form>
...]]></programlisting>
- <para>This is a result: </para>
+ <para>This is a result of the code: </para>
<figure>
<title>The <emphasis>
<property>"type"</property>
@@ -536,18 +532,16 @@
<property>"false"</property>. Thus, the first
<emphasis role="bold">
<property><rich:treeNode></property>
</emphasis> is selected for node representation. </para>
- <para>Switching on tree nodes could be performed in three modes. Modes could be
specified with <emphasis>
+ <para>Tree node can be run in tree modes. Modes can be specified with
<emphasis>
<property>"switchType"</property>
</emphasis> attribute for<emphasis role="bold">
<property><rich:tree></property>
</emphasis> component.</para>
<itemizedlist>
- <listitem>Ajax (default value) - Ajax submission is used for switching. Note,
that for
- collapse/expand operations, an Ajax request is sent to the server and it could
cause a
- short delay.</listitem>
- <listitem>Server - regular form submission request is used.</listitem>
- <listitem>Client - switching is done as a whole on a client, no interaction
with a server
- presents. Full page content is reloaded after every click.</listitem>
+ <listitem>Ajax (default value) - Ajax submission is used performing the
functionality.
+Note, that for collapse/expand operations an Ajax request is sent to the server and it
can cause a short delay.</listitem>
+ <listitem>Server - regular form of submission request is
used.</listitem>
+ <listitem>Client – all operations are performed totally on the client; no
interaction with a server is involved. Full page content is reloaded after every
action.</listitem>
</itemizedlist>
<para> The <emphasis>
<property>"icon"</property>
@@ -557,9 +551,10 @@
<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 content is used as icons. By default the width of a rendered facet area is
16px. </para>
+ </emphasis> attributes set the icons' images for the component. You
can also define icons using facets with the same names.
+
+If the facets are defined, the corresponding attributes are ignored and
+ facets' content is used as icons. By default the width of a rendered facet
area is 16px. </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -592,10 +587,10 @@
</emphasis> and <emphasis>
<property>"var"</property>
</emphasis>. Besides, visual representation shouldn't be defined right
in the
- <property>tree</property>. In this case a tree tag is intended mainly
for defining common
+ <property>tree</property>. In this case a <property><rich:
tree></property> tag is applied mainly for defining common
attributes such as <emphasis>
<property>"ajaxSubmitSelection"</property>
- </emphasis>, for instance. </para>
+ </emphasis> etc. </para>
</section>
<section>
@@ -603,25 +598,32 @@
<para>The <emphasis role="bold">
<property><rich: tree></property>
</emphasis> component functionality provides a built-in support for Drag and
Drop operations.
- The main usage principles are the same as for RichFaces DnD wrapper components.
Hence, to get
- additional information on the topic, read the corresponding chapters:<link
linkend="dndParam"
+ The main usage principles are similar to RichFaces DnD wrapper components. Hence,
to get
+ additional information on the issue, read the corresponding chapters:<link
linkend="dndParam"
"rich:dndParam"</link>, <link
linkend="dragSupport"
"rich:dragSupport"</link>, <link
linkend="dragIndicator"
"rich:dragIndicator"</link>, <link
linkend="dropSupport"
-
>"rich:dropSupport"</link>. As
<property>treeNodes</property> could be
- Drag, Drop or DnD elements, a <property>tree</property> can include the
following attributes
- groups.</para>
+ >"rich:dropSupport"</link>. Since
<property>treeNodes</property>can be assigned as
+ Drag, Drop or Drag-and-Drop elements, a <property>tree</property> can
include the following
+ groups of attributes.</para>
<table>
- <title>Drag attributes group</title>
+ <title>Drag group</title>
<tgroup cols="2">
<thead>
<row>
- <entry>dragValue</entry>
- <entry>Element value drag passing into processing after a Drop
event</entry>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
</row>
</thead>
<tbody>
<row>
+ <entry>dragValue</entry>
+ <entry>Element value drag passing into processing after a Drop
event</entry>
+ </row>
+
+
+
+ <row>
<entry>dragListener</entry>
<entry>A listener that processes a Drag event</entry>
</row>
@@ -638,16 +640,21 @@
</tgroup>
</table>
<table>
- <title>Drop attributes group</title>
+ <title>Drop group</title>
<tgroup cols="2">
<thead>
<row>
- <entry>dropValue</entry>
- <entry>Element value drop passed into processing after Drop events
.</entry>
+ <entry>Attribute Name</entry>
+ <entry>Description</entry>
</row>
</thead>
<tbody>
<row>
+ <entry>dropValue</entry>
+ <entry>Element value drop passed into processing after Drop events
</entry>
+ </row>
+
+ <row>
<entry>dropListener</entry>
<entry>A listener that processes a Drop event. </entry>
</row>