Author: cluts
Date: 2008-01-30 06:19:42 -0500 (Wed, 30 Jan 2008)
New Revision: 5730
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
http://jira.jboss.com/jira/browse/RF-1052 - done for tree
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-01-30 01:45:09 UTC
(rev 5729)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-01-30 11:19:42 UTC
(rev 5730)
@@ -805,7 +805,7 @@
</section>
<section>
<title>Definition of Custom Style Classes</title>
- <table>
+ <table id="tab_cn7">
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
<thead>
@@ -824,16 +824,66 @@
</table>
<para>In order to redefine styles for all <emphasis
role="bold">
- <property><rich:tree></property>
- </emphasis> components on a page using CSS, it's enough to create a
class with the
- same names and define necessary properties in them.</para>
-
- <para>To change styles of particular <emphasis role="bold">
- <property><rich:tree></property>
- </emphasis> components define your own style class in the corresponding
<emphasis role="bold">
- <property><rich:tree></property>
- </emphasis>attribute.</para>
+ <property><rich:tree></property>
+ </emphasis> components on a page using CSS, it's enough to create
classes with the
+ same names (possible classes could be found in the table <link
linkend="tab_cn7">above</link>) and define necessary properties in
them. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+ .rich-tree{
+ color: #ff7700;
+}
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tree_CS1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example a tree color text was changed.</para>
+ <para>Also it’s possible to change styles of particular <emphasis
role="bold"
+ ><property><rich:tree></property></emphasis>
component. In this case you should create own style classes and use them in corresponding
<emphasis role="bold"
+ ><property><rich:tree></property></emphasis>
<property>styleClass</property> attributes. An example is placed
below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+.myClass{
+ background-color: #bdd5f7;
+}
+...]]></programlisting>
+ <para>The
<emphasis><property>"styleClass"</property></emphasis>
attribute for <emphasis role="bold"
+ ><property><rich:tree> </property></emphasis> is
defined as it’s shown in the example below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[<rich:tree ...
styleClass="myClass"/>
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and styleClass
attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tree_CS2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, background color of tree was
changed.</para>
</section>
+
<section>
<title>Relevant Resources Links</title>
<para>