[richfaces-svn-commits] JBoss Rich Faces SVN: r5659 - trunk/docs/userguide/en/src/main/docbook/included.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Mon Jan 28 05:55:12 EST 2008
Author: cluts
Date: 2008-01-28 05:55:11 -0500 (Mon, 28 Jan 2008)
New Revision: 5659
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-1052 - done for tabPanel
Modified: trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2008-01-26 01:45:45 UTC (rev 5658)
+++ trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2008-01-28 10:55:11 UTC (rev 5659)
@@ -257,7 +257,7 @@
</mediaobject>
</figure>
- <table>
+ <table id="tab_cn5">
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
<thead>
@@ -322,14 +322,64 @@
<para>In order to redefine styles for all <emphasis role="bold">
<property><rich:tabPanel></property>
</emphasis> components on a page using CSS, it's enough to create classes with the
- same names and define necessary properties in them.</para>
+ same names (possible classes could be found in the table <link linkend="tab_cn5">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:tabPanel></property>
- </emphasis> components, define your own style classes in the corresponding <emphasis
- role="bold">
- <property><rich:tabPanel></property>
- </emphasis>attributes.</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+.rich-tab-active{
+ color: #FFA500;
+ font-weight: bold;
+}
+...]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with predefined classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tabPanel_CS1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the example a tab active font weight and text color were changed.</para>
+
+ <para>Also it’s possible to change styles of particular <emphasis role="bold"
+ ><property><rich:tabPanel></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
+ ><property><rich:tabPanel></property></emphasis> <emphasis><property>activeTabClass</property></emphasis> attributes. An example is placed below:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="CSS"><![CDATA[...
+.myClass{
+ font-style: italic;
+}
+...]]></programlisting>
+ <para>The <emphasis><property>"activeTabClass"</property></emphasis> attribute for <emphasis role="bold"
+ ><property><rich:tabPanel> </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:tabPanel ... activeTabClass="myClass"/>
+]]></programlisting>
+
+ <para>This is a result:</para>
+
+ <figure>
+ <title>Redefinition styles with own classes and activeTabClass attributes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/tabPanel_CS2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As it could be seen on the picture above, font style on inactive tab was changed.</para>
</section>
<section>
More information about the richfaces-svn-commits
mailing list