[richfaces-svn-commits] JBoss Rich Faces SVN: r5687 - trunk/docs/userguide/en/src/main/docbook/included.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Jan 29 05:44:22 EST 2008
Author: cluts
Date: 2008-01-29 05:44:22 -0500 (Tue, 29 Jan 2008)
New Revision: 5687
Modified:
trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml
Log:
http://jira.jboss.com/jira/browse/RF-1052 - done for tooltip
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml 2008-01-29 10:43:56 UTC (rev 5686)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolTip.xml 2008-01-29 10:44:22 UTC (rev 5687)
@@ -316,7 +316,7 @@
<section>
<title>Definition of Custom Style Classes</title>
- <table>
+ <table id="tab_cn6">
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
<thead>
@@ -338,16 +338,67 @@
It depends on <emphasis role="bold"><property><rich:toolTip></property></emphasis> layout what a wrapper element <emphasis><property><span></property></emphasis> or <emphasis><property><div></property></emphasis>to choose.
</para>
<para>In order to redefine styles for all <emphasis role="bold">
- <property><rich:toolTip></property>
- </emphasis> components on a page using CSS, it's enough to create class with the
- same name and define necessary properties in it.</para>
+ <property><rich:toolTipl></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_cn6">above</link>) and define necessary properties in them. An example is placed below:</para>
- <para>To change styles of particular <emphasis role="bold">
- <property><rich:toolTip></property>
- </emphasis> components define your own style class in the corresponding <emphasis
- role="bold">
- <property><rich:toolTip></property>
- </emphasis>attributes</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+.rich-tool-tip{
+ background-color: #ebf3fd;
+ border-color: White;
+ font-style: italic;
+}
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tooltip_CS1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example a tool tip background color, border color and font style were changed.</para>
+ <para>Also it’s possible to change styles of particular <emphasis role="bold"
+ ><property><rich:toolTipl></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
+ ><property><rich:toolTip></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: #fffcd2;
+ border-color: #fdf7a2;
+}
+...]]></programlisting>
+ <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
+ ><property><rich:toolTip> </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:toolTip ... 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/tooltip_CS2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, background color and border color of tool tip were changed.</para>
</section>
<section>
<title>Relevant Resources Links</title>
More information about the richfaces-svn-commits
mailing list