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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Jan 24 08:51:49 EST 2008


Author: cluts
Date: 2008-01-24 08:51:49 -0500 (Thu, 24 Jan 2008)
New Revision: 5584

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

Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml	2008-01-24 13:02:50 UTC (rev 5583)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml	2008-01-24 13:51:49 UTC (rev 5584)
@@ -154,7 +154,7 @@
     
     <section>
       <title>Skin Parameters Redefinition</title>
-    <table>
+      <table id="tab_cn1">
       <title>Skin parameters redefinition for a container</title>
       <tgroup cols="2">
         <thead>
@@ -248,41 +248,68 @@
         </tbody>
       </tgroup>
     </table>
+   
     <para>In order to redefine styles for all <emphasis role="bold">
       <property>&lt;rich:inputNumberSpinner&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_cn1">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:inputNumberSpinner&gt;</property>
-    </emphasis> components, define your own style classes in the corresponding <emphasis
-      role="bold">
-      <property>&lt;rich:inputNumberSpinner&gt;</property>
-    </emphasis>attributes.</para>
+    <para>
+      <emphasis role="bold">Example:</emphasis>
+    </para>
+    <programlisting role="CSS"><![CDATA[...
+.rich-spinner-input{
+    font-style:italic;
+}
+...]]></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/inputNumberSpinner_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:inputNumberSpinner&gt;</property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
+        ><property>&lt;rich:inputNumberSpinner&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-spinner-input{
-            font-style:italic;
-        }
-    .myClass{
-            font-weight: bold;
-        }
-...
-]]></programlisting>
-    <para>The component is defined in the following way:</para>
-
+.myClass{
+    font-family: Arial Black;
+}
+...]]></programlisting>  
+    <para>The <emphasis><property>&quot;inputClass&quot;</property></emphasis> attribute for <emphasis role="bold"
+      ><property>&lt;rich:inputNumberSpinner&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:inputNumberSpinner inputClass="myClass" .../>
-]]></programlisting>
-    <para>Hence, a font-style of all <property>spinners</property> is redefined on a page as well as
-      a font-weight for an entry field of the particular <property>spinner</property>.</para>
+    <programlisting role="CSS"><![CDATA[<rich: inputNumberSpinner ... inputClass="myClass"/>
+]]></programlisting>    
+    
+    <para>This is a result:</para>
+    
+    <figure>
+      <title>Redefinition styles with own classes and styleClass attributes</title>
+      <mediaobject>
+        <imageobject>
+          <imagedata fileref="images/inputNumberSpinner_CS2.png"/>
+        </imageobject>
+      </mediaobject>
+    </figure>  
+    
+    <para>As it could be seen on the picture above, the font family for input text was changed.</para>   
+   
   </section>
   <section>
     <title>Relevant Resources Links</title>




More information about the richfaces-svn-commits mailing list