[richfaces-svn-commits] JBoss Rich Faces SVN: r14588 - branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Jun 11 05:18:21 EDT 2009
Author: msorokin
Date: 2009-06-11 05:18:20 -0400 (Thu, 11 Jun 2009)
New Revision: 14588
Added:
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/skinnability.xml
Log:
https://jira.jboss.org/jira/browse/RF-5768
Skinnability section
Added: branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/skinnability.xml
===================================================================
--- branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/skinnability.xml (rev 0)
+++ branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/skinnability.xml 2009-06-11 09:18:20 UTC (rev 14588)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="skinnability" xreflabel="skinnability">
+<?dbhtml filename="skinnability.html"?>
+ <title>Skinnability TBR</title>
+ <para>
+
+ The Photo Album application employs such feature of RichFaces framework as skinnability. If you have a look at the web.xml you will see that the <code>
+ org.richfaces.SKIN
+ </code>
+ parameter has "photoalbum" value.
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>photoalbum</param-value>
+ </context-param>
+...]]></programlisting>
+ <para>
+ This means that the application uses the custom "photoalbum" skin. The skin parameters are stored in the <code>photoalbum.skin.properties</code> file that is located in the
+ <code>photoalbum\source\web\src\main\resources\META-INF\skins\</code> folder.
+ </para>
+ <para>
+ Each visual RichFaces component has a XCSS file where some CSS selectors are defined with style properties mapped to the skin parameters. Here is a fragment of the XCSS file of <emphasis role="bold"><property><rich:calendar></property></emphasis>.
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+ <u:selector name=".rich-calendar-header">
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="background-color" skin="additionalBackgroundColor"/>
+ <u:style name="font-size" skin="generalSizeFont"/>
+ <u:style name="font-family" skin="generalFamilyFont"/>
+ </u:selector>
+ ...]]></programlisting>
+ <para>This code sets style for upper part of the calendar. Hence, for example, <code>font-family</code> property is mapped to the <code>generalFamilyFont</code> property which in its turn has <code>Arial, Verdana, sans-serif</code> value. </para>
+ <para>These are all values the <code>.rich-calendar-header</code> has.</para>
+ <programlisting role="XML"><![CDATA[...
+panelBorderColor=#636363
+additionalBackgroundColor=#F2F2F2
+generalSizeFont=11px
+generalFamilyFont=Arial, Verdana, sans-serif
+...]]></programlisting>
+
+ <para>
+ You can find more information about the Skinnability feature in <ulink url="http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/ArchitectureOverview.html#Skinnability">RichFaces Developer Guide</ulink>.
+ </para>
+</section>
More information about the richfaces-svn-commits
mailing list