Author: ochikvina
Date: 2009-09-25 12:03:41 -0400 (Fri, 25 Sep 2009)
New Revision: 15669
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataFilterSlider.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_datascroller.xml
Log:
https://jira.jboss.org/jira/browse/RF-7913 - the component is reviewed and updated, the
tables of style classes are restructured;
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataFilterSlider.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataFilterSlider.xml 2009-09-25
15:18:05 UTC (rev 15668)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_dataFilterSlider.xml 2009-09-25
16:03:41 UTC (rev 15669)
@@ -56,7 +56,7 @@
<title>Details of Usage</title>
<para>The <emphasis role="bold">
<property>dataFilterSlider</property>
- </emphasis> component is bound to some UIData component using a
<emphasis>
+ </emphasis> component is bound to some UIData component using the
<emphasis>
<property>"for"</property>
</emphasis> attribute and filters data in a table. </para>
<para>
@@ -136,7 +136,7 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.richfaces.dataFilterSlider</entry>
+ <entry>org.richfaces.DataFilterSlider</entry>
</row>
<row>
<entry>component-class</entry>
@@ -157,6 +157,82 @@
</tbody>
</tgroup>
</table>
+
+ <table>
+ <title>Style classes (selectors) with the corresponding skin
parameters</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Class (selector) name</entry>
+ <entry>Description</entry>
+ <entry>Skin Parameters</entry>
+ <entry>CSS properties mapped</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.range, .rich-dataFilterSlider-range</entry>
+ <entry>Define styles for the component range</entry>
+ <entry>subBorderColor, panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="5">.slider-input-field,
.rich-dataFilterSlider-input-field</entry>
+ <entry morerows="5">Define styles for the component input
field</entry>
+ <entry>controlBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>controlTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>subBorderColor</entry>
+ <entry>border-bottom-color, border-right-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Style classes (selectors) without skin parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.trailer, .rich-dataFilterSlider-trailer</entry>
+ <entry>Define styles for the component trailer</entry>
+ </row>
+
+ <row>
+ <entry>.track, .rich-dataFilterSlider-track</entry>
+ <entry>Define styles for the component track</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>You can find all necessary information about style classes redefinition
in
+ <link linkend="customstyles">Definition of Custom Style
Classes</link>
+ section.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_datascroller.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_datascroller.xml 2009-09-25
15:18:05 UTC (rev 15668)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_datascroller.xml 2009-09-25
16:03:41 UTC (rev 15669)
@@ -60,7 +60,7 @@
<property><rich:dataTable></property>
</emphasis> current model.
</para>
- <para>The component should be placed into footer of the parent
table or be bound
+ <para>The component should be placed into the footer of the
parent table or be bound
to it with the <emphasis>
<property>"for"</property>
</emphasis> attribute. Note, that <emphasis>
@@ -108,16 +108,16 @@
<para>
<emphasis
role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"> ...
-<rich:datascroller for="table" maxPages="10">
- <f:facet name="first">
- <h:outputText value="First"/>
- </f:facet>
- <f:facet name="last">
- <h:outputText value="Last"/>
- </f:facet>
-</rich:datascroller>
-...</programlisting>
+ <programlisting role="XML"><![CDATA[ ...
+<rich:datascroller for="table" maxPages="10">
+ <f:facet name="first">
+ <h:outputText value="First"/>
+ </f:facet>
+ <f:facet name="last">
+ <h:outputText value="Last"/>
+ </f:facet>
+</rich:datascroller>
+...]]></programlisting>
<figure>
<title>
<emphasis role="bold">
@@ -147,46 +147,46 @@
<para> The <emphasis>
<property>"page"</property>
</emphasis> is a value-binding attribute used to
define and save
- current page number. The example is placed below.
</para>
+ the current page number. The example is placed below.
</para>
<para>
<emphasis
role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
-<h:form id="myForm">
- <rich:dataTable id="carList" rows="7"
value="#{dataTableScrollerBean.allCars}" var="category">
- <f:facet name="header">
- <rich:columnGroup>
- <h:column>
- <h:outputText value="Make" />
- </h:column>
- <h:column>
- <h:outputText value="Model" />
- </h:column>
- <h:column>
- <h:outputText value="Price" />
- </h:column>
- </rich:columnGroup>
- </f:facet>
- <h:column>
- <h:outputText value="#{category.make}" />
- </h:column>
- <h:column>
- <h:outputText value="#{category.model}" />
- </h:column>
- <h:column>
- <h:outputText value="#{category.price}" />
- </h:column>
- </rich:dataTable>
- <rich:datascroller id="sc2" for="carList"
reRender="sc1" maxPages="7"
page="#{dataTableScrollerBean.scrollerPage}" />
- <h:panelGrid>
- <h:panelGroup>
- <h:outputText value="Set current page number:" />
- <h:inputText value="#{dataTableScrollerBean.scrollerPage}"
id="sc1" size="1"/>
- <h:commandButton value="Set" />
- </h:panelGroup>
- </h:panelGrid>
-</h:form>
-...</programlisting>
+ <programlisting role="XML"><![CDATA[...
+<h:form id="myForm">
+ <rich:dataTable id="carList" rows="7"
value="#{dataTableScrollerBean.allCars}" var="category">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <h:column>
+ <h:outputText value="Make" />
+ </h:column>
+ <h:column>
+ <h:outputText value="Model" />
+ </h:column>
+ <h:column>
+ <h:outputText value="Price" />
+ </h:column>
+ </rich:columnGroup>
+ </f:facet>
+ <h:column>
+ <h:outputText value="#{category.make}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.model}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.price}" />
+ </h:column>
+ </rich:dataTable>
+ <rich:datascroller id="sc2" for="carList"
reRender="sc1" maxPages="7"
page="#{dataTableScrollerBean.scrollerPage}" />
+ <h:panelGrid>
+ <h:panelGroup>
+ <h:outputText value="Set current page number:" />
+ <h:inputText value="#{dataTableScrollerBean.scrollerPage}"
id="sc1" size="1"/>
+ <h:commandButton value="Set" />
+ </h:panelGroup>
+ </h:panelGrid>
+</h:form>
+...]]></programlisting>
<para> In the example above you can enter the page number you
want and set it by
clicking on the <emphasis role="bold">
@@ -232,32 +232,31 @@
<para>
<emphasis
role="bold">Example:</emphasis>
</para>
- <programlisting role="XML">...
-<h:form>
- <rich:dataTable value="#{capitalsBean.capitals}" var="cap"
rows="5">
- <rich:column>
- <h:outputText value="#{cap.name}" />
- </rich:column>
- <f:facet name="footer">
- <rich:datascroller pageIndexVar="pageIndex"
pagesVar="pages">
- <f:facet name="pages">
- <h:outputText value="#{pageIndex} / #{pages}" />
- </f:facet>
- </rich:datascroller>
- </f:facet>
- </rich:dataTable>
-</h:form>
-...
-</programlisting>
+ <programlisting role="XML"><![CDATA[...
+<h:form>
+ <rich:dataTable value="#{capitalsBean.capitals}" var="cap"
rows="5">
+ <rich:column>
+ <h:outputText value="#{cap.name}" />
+ </rich:column>
+ <f:facet name="footer">
+ <rich:datascroller pageIndexVar="pageIndex"
pagesVar="pages">
+ <f:facet name="pages">
+ <h:outputText value="#{pageIndex} / #{pages}" />
+ </f:facet>
+ </rich:datascroller>
+ </f:facet>
+ </rich:dataTable>
+</h:form>
+...]]></programlisting>
<para> It's possible to insert optional separators between
controls.
For this purpose use a <emphasis>
<property>"controlsSeparator"</property>
</emphasis> facet. An example is placed below.
</para>
- <programlisting role="XML"> ...
-<f:facet name="controlsSeparator">
- <h:graphicImage value="/image/sep.png"/>
-</f:facet>
-...</programlisting>
+ <programlisting role="XML"><![CDATA[ ...
+<f:facet name="controlsSeparator">
+ <h:graphicImage value="/image/sep.png"/>
+</f:facet>
+...]]></programlisting>
<para> Starting from 3.2.1 of RichFaces multiple <emphasis
role="bold">
<property><rich:datascroller></property>
</emphasis> instances behavior and page bindings are
corrected.
@@ -452,74 +451,140 @@
</tbody>
</tgroup>
</table>
- <table id="tab_cn2">
- <title>Classes names that define a component
appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
-
<entry>rich-datascr</entry>
- <entry>Defines styles for a
wrapper
- <div> element of
- a datascroller</entry>
- </row>
- <row>
-
<entry>rich-dtascroller-table</entry>
- <entry>Defines styles for a
wrapper
- <table> element of a
- datascroller</entry>
- </row>
- <row>
-
<entry>rich-datascr-button</entry>
- <entry>Defines styles for a
- button</entry>
- </row>
-
- <row>
-
<entry>rich-datascr-ctrls-separator</entry>
- <entry>Defines styles for a
separator
- between buttons</entry>
- </row>
- </tbody>
-
- </tgroup>
- </table>
- <table>
- <title>Classes names that define a buttons
appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
-
<entry>rich-datascr-act</entry>
- <entry>Defines styles for an
active
- button</entry>
- </row>
- <row>
-
<entry>rich-datascr-inact</entry>
- <entry>Defines styles for an
inactive
- button</entry>
- </row>
- <row>
-
<entry>rich-datascr-button-dsbld</entry>
- <entry>Defines styles for a
disabled
- button</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- You can find all necessary information about style classes redefinition in
+
+ <table>
+ <title>Style classes (selectors) with the corresponding skin
parameters</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Class (selector) name</entry>
+ <entry>Description</entry>
+ <entry>Skin Parameters</entry>
+ <entry>CSS properties mapped</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry morerows="4">.rich-datascr-button</entry>
+ <entry morerows="4">Defines styles for a button</entry>
+ <entry>additionalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+
+ <row>
+ <entry morerows="4">.rich-datascr-ctrls-separator</entry>
+ <entry morerows="4">Defines styles for a separator between
buttons</entry>
+ <entry>additionalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+
+ <row>
+ <entry>.rich-datascr-button-dsbld</entry>
+ <entry>Defines styles for a disabled button</entry>
+ <entry>panelBorderColor</entry>
+ <entry>color</entry>
+ </row>
+
+ <row>
+ <entry morerows="2">.rich-datascr-act</entry>
+ <entry morerows="2">Defines styles for an active
button</entry>
+ <entry>generalTextColor</entry>
+ <entry>border-top-color, color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+
+ <row>
+ <entry morerows="2">.rich-datascr-inact</entry>
+ <entry morerows="2">Defines styles for an inactive
button</entry>
+ <entry>headerBackgroundColor</entry>
+ <entry>border-top-color, color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-dtascroller-table</entry>
+ <entry morerows="1">Defines styles for a wrapper
<table> element of a datascroller</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>tableBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Style classes (selectors) without skin parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-datascr</entry>
+ <entry>Defines styles for a wrapper
+ <div> element of
+ a datascroller</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>You can find all necessary information about style classes redefinition
in
<link linkend="customstyles">Definition of Custom Style
Classes</link>
- section.
+ section.</para>
</section>
<section>
<title>Relevant Resources Links</title>