[richfaces-svn-commits] JBoss Rich Faces SVN: r5640 - trunk/docs/userguide/en/src/main/docbook/included.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jan 25 11:23:39 EST 2008


Author: cluts
Date: 2008-01-25 11:23:39 -0500 (Fri, 25 Jan 2008)
New Revision: 5640

Modified:
   trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
Log:
http://jira.jboss.com/jira/browse/RF-1052 - done for datascroller

Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml	2008-01-25 16:23:20 UTC (rev 5639)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml	2008-01-25 16:23:39 UTC (rev 5640)
@@ -356,7 +356,7 @@
       </mediaobject>
     </figure>
 
-    <table>
+      <table id="tab_cn2">
       <title>Classes names that define a component appearance</title>
       <tgroup cols="2">
         <thead>
@@ -412,38 +412,68 @@
         </tbody>
       </tgroup>
     </table>
+      
       <para>In order to redefine styles for all <emphasis role="bold">
         <property>&lt;rich:datascroller&gt;</property>
       </emphasis> components on a page using CSS, it&apos;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_cn2">above</link>) and define necessary properties in them. An example is placed below:</para>
       
-      <para>To change styles of particular <emphasis role="bold">
-        <property>&lt;rich:datascroller&gt;</property>
-      </emphasis> components, define your own style classes in the corresponding <emphasis
-        role="bold">
-        <property>&lt;rich:datascroller&gt;</property>
-      </emphasis>attributes.</para>
+      <para>
+        <emphasis role="bold">Example:</emphasis>
+      </para>
+      <programlisting role="CSS"><![CDATA[...
+.rich-datascr-button{
+    color: #CD6600;
+}
+...]]></programlisting>  
       
-      <para>CSS code piece used on a page:</para>
+      <para>This is a result:</para>
       
+      <figure>
+        <title>Redefinition styles with predefined classes</title>
+        <mediaobject>
+          <imageobject>
+            <imagedata fileref="images/datascroller_CS1.png"/>
+          </imageobject>
+        </mediaobject>
+      </figure>
+      
+      <para>In the example an input text font style was changed.</para>
+      
+      <para>Also it’s possible to change styles of particular <emphasis role="bold"
+        ><property>&lt;rich:datascroller&gt;</property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
+          ><property>&lt;rich:datascroller&gt;</property></emphasis> <emphasis><property>styleClass</property></emphasis> attributes. An example is placed below:</para>
+      
       <para>
         <emphasis role="bold">Example:</emphasis>
       </para>
       <programlisting role="CSS"><![CDATA[...
-.rich-datascr-button{
-    color: #A52A2A;
-}
 .myClass{
-    font-size: xx-large;
+    background-color: #C6E2FF;
 }
-...]]></programlisting>
-      <para>The component is defined in the following way:</para>
+...]]></programlisting>  
+      <para>The <emphasis><property>&quot;styleClass&quot;</property></emphasis> attribute for <emphasis role="bold"
+        ><property>&lt;rich:datascroller&gt; </property></emphasis> is defined as it’s shown in the example below:</para>
       
       <para>
         <emphasis role="bold">Example:</emphasis>
       </para>
-      <programlisting role="XML"><![CDATA[<rich:datascroller ... inputClass="myClass" .../>]]></programlisting>
+      <programlisting role="CSS"><![CDATA[<rich:datascroller ... selectedStyleClass="myClass"/>
+]]></programlisting>    
       
+      <para>This is a result:</para>
+      
+      <figure>
+        <title>Redefinition styles with own classes and styleClass attributes</title>
+        <mediaobject>
+          <imageobject>
+            <imagedata fileref="images/datascroller_CS2.png"/>
+          </imageobject>
+        </mediaobject>
+      </figure>  
+      
+      <para>As it could be seen on the picture above, background color the selected cell on scroller was changed.</para>   
+      
   </section>
   <section>
     <title>Relevant Resources Links</title>




More information about the richfaces-svn-commits mailing list