JBoss Rich Faces SVN: r3682 - in branches/3.1.x/ui/dataTable/src/main: java/org/richfaces/renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-01 13:13:25 -0400 (Thu, 01 Nov 2007)
New Revision: 3682
Modified:
branches/3.1.x/ui/dataTable/src/main/config/component/dataGrid.xml
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
Log:
fix doCleanup method RF-1274
Modified: branches/3.1.x/ui/dataTable/src/main/config/component/dataGrid.xml
===================================================================
--- branches/3.1.x/ui/dataTable/src/main/config/component/dataGrid.xml 2007-11-01 17:13:00 UTC (rev 3681)
+++ branches/3.1.x/ui/dataTable/src/main/config/component/dataGrid.xml 2007-11-01 17:13:25 UTC (rev 3682)
@@ -49,6 +49,7 @@
<property>
<name>columns</name>
<classname>int</classname>
+ <defaultvalue>0</defaultvalue>
<description>Quantity of columns
</description>
</property>
Modified: branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
--- branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-01 17:13:00 UTC (rev 3681)
+++ branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-01 17:13:25 UTC (rev 3682)
@@ -75,13 +75,15 @@
int gridRowCounter = holder.getGridRowCounter();
if ( cols >0 && currentRow%cols==0) {
if (currentRow != 0 ) {
- writer.endElement(HTML.TR_ELEMENT);
- holder.setGridRowCounter(++gridRowCounter);
+ writer.endElement(HTML.TR_ELEMENT);
+ holder.setGridRowCounter(++gridRowCounter);
}
+
writer.startElement(HTML.TR_ELEMENT, table);
String rowClass = holder.getRowClass(gridRowCounter);
encodeStyleClass(writer, null, "dr-table-row rich-table-row", null, rowClass);
encodeRowEvents(context, table);
+
}
writer.startElement(HTML.td_ELEM, table);
getUtils().encodeId(context, table);
@@ -98,8 +100,12 @@
UIDataAdaptor table = tableHolder.getTable();
ResponseWriter writer = context.getResponseWriter();
Integer columns = (Integer) table.getAttributes().get("columns");
+
if (null!=columns && columns.intValue()!=Integer.MIN_VALUE ) {
int rest = tableHolder.getRowCounter()-tableHolder.getGridRowCounter()*columns.intValue();
+ if(rest == 0){
+ writer.startElement(HTML.TR_ELEMENT, table);
+ }
for(int i = rest;i<columns.intValue();i++){
writer.startElement(HTML.td_ELEM, table);
String columnClass = tableHolder.getColumnClass(i);
17 years, 2 months
JBoss Rich Faces SVN: r3681 - in trunk/ui/dataTable/src/main: java/org/richfaces/renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-01 13:13:00 -0400 (Thu, 01 Nov 2007)
New Revision: 3681
Modified:
trunk/ui/dataTable/src/main/config/component/dataGrid.xml
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
Log:
fix doCleanup method RF-1274
Modified: trunk/ui/dataTable/src/main/config/component/dataGrid.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataGrid.xml 2007-11-01 17:03:57 UTC (rev 3680)
+++ trunk/ui/dataTable/src/main/config/component/dataGrid.xml 2007-11-01 17:13:00 UTC (rev 3681)
@@ -49,6 +49,7 @@
<property>
<name>columns</name>
<classname>int</classname>
+ <defaultvalue>0</defaultvalue>
<description>Quantity of columns
</description>
</property>
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-01 17:03:57 UTC (rev 3680)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-01 17:13:00 UTC (rev 3681)
@@ -75,13 +75,15 @@
int gridRowCounter = holder.getGridRowCounter();
if ( cols >0 && currentRow%cols==0) {
if (currentRow != 0 ) {
- writer.endElement(HTML.TR_ELEMENT);
- holder.setGridRowCounter(++gridRowCounter);
+ writer.endElement(HTML.TR_ELEMENT);
+ holder.setGridRowCounter(++gridRowCounter);
}
+
writer.startElement(HTML.TR_ELEMENT, table);
String rowClass = holder.getRowClass(gridRowCounter);
encodeStyleClass(writer, null, "dr-table-row rich-table-row", null, rowClass);
encodeRowEvents(context, table);
+
}
writer.startElement(HTML.td_ELEM, table);
getUtils().encodeId(context, table);
@@ -98,8 +100,12 @@
UIDataAdaptor table = tableHolder.getTable();
ResponseWriter writer = context.getResponseWriter();
Integer columns = (Integer) table.getAttributes().get("columns");
+
if (null!=columns && columns.intValue()!=Integer.MIN_VALUE ) {
int rest = tableHolder.getRowCounter()-tableHolder.getGridRowCounter()*columns.intValue();
+ if(rest == 0){
+ writer.startElement(HTML.TR_ELEMENT, table);
+ }
for(int i = rest;i<columns.intValue();i++){
writer.startElement(HTML.td_ELEM, table);
String columnClass = tableHolder.getColumnClass(i);
17 years, 2 months
JBoss Rich Faces SVN: r3680 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-01 13:03:57 -0400 (Thu, 01 Nov 2007)
New Revision: 3680
Added:
trunk/docs/userguide/en/src/main/resources/images/calendar2.png
trunk/docs/userguide/en/src/main/resources/images/calendar3.png
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-672 - added description about facets using
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-11-01 15:15:01 UTC (rev 3679)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-11-01 17:03:57 UTC (rev 3680)
@@ -112,22 +112,18 @@
<para>Ajax</para>
</listitem>
</itemizedlist>
-
<para>Calendar requests portions of data from Data Model for a page rendering. If <emphasis>
<property>"dataModel"</property>
</emphasis> attribute has <property>"null"</property> value, data requests
are not sent. In this case the "ajax" mode is equal to the
"client". </para>
-
<itemizedlist>
<listitem>
<para>Client</para>
</listitem>
</itemizedlist>
-
<para>Calendar loads an initial portion of data in a specified range and use this data to render
months. Additional data requests are not sent.</para>
-
<note>
<title>Note:</title><emphasis>
<property>"preloadDateRangeBegin"</property>
@@ -135,40 +131,31 @@
<property>"preloadDateRangeEnd"</property>
</emphasis> attributes was designed only for the
<property>"client"</property> mode to load some data initially.</note>
-
<para><emphasis>
- <property>"ondataselect"</property>
- </emphasis> attribute is used to define an event that is triggered
- before date selection.</para>
+ <property>"ondataselect"</property>
+ </emphasis> attribute is used to define an event that is triggered before date selection.</para>
<para><emphasis>
- <property>"ondateselected"</property>
- </emphasis> attribute is used to define an event that is triggered
- after date selection. </para>
+ <property>"ondateselected"</property>
+ </emphasis> attribute is used to define an event that is triggered after date selection. </para>
<para>For example, to fire some event after date selection you should use <emphasis role="bold">
<property><a4j:support></property>
- </emphasis>. And it should be bound to <emphasis>
- <property>"ondateselected"</property>
- </emphasis> event as
- it's shown in the example below:</para>
-
+ </emphasis>. And it should be bound to <emphasis>
+ <property>"ondateselected"</property>
+ </emphasis> event as it's shown in the example below:</para>
<programlisting role="XML"><![CDATA[...
<rich:calendar id="date" value="#{bean.dateTest}">
<a:support event="ondateselected" reRender="mainTable"/>
</rich:calendar>
...]]></programlisting>
-
<para><emphasis>
- <property>"ondataselect"</property>
- </emphasis> could be used for possibility of date selection canceling. See an example below:</para>
-
+ <property>"ondataselect"</property>
+ </emphasis> could be used for possibility of date selection canceling. See an example below:</para>
<programlisting role="XML"><![CDATA[...
<rich:calendar id="date" value="#{bean.dateTest}" ondateselect="if (!confirm('Are you sure to change date?')){return false;}"/>
...]]></programlisting>
-
<para>How to use these attributes see also on the <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092275#..."
- >RichFaces Users Forum</ulink>.</para>
-
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092275#..."
+ >RichFaces Users Forum</ulink>.</para>
<para>There are three button-related attributes:</para>
<itemizedlist>
<listitem>
@@ -225,53 +212,90 @@
</emphasis> attribute is set to "bottom-left".</para>
<para>The <emphasis role="bold">
<property><rich:calendar></property>
- </emphasis> component provides to use <emphasis>
+ </emphasis> component allows to use <emphasis>
<property>"header"</property>
- </emphasis> facet. For example, you can add following scrolling elements to the facet:
+ </emphasis>, <emphasis>
+ <property>"footer"</property>
+ </emphasis>, <emphasis>
+ <property>"optionalHeader"</property>
+ </emphasis>, <emphasis>
+ <property>"optionalFooter"</property>
+ </emphasis> facets. The following elements are available in these facets:
{currentMonthControl}, {nextMonthControl}, {nextYearControl}, {previousYearControl},
- {previousMonthControl}.</para>
+ {previousMonthControl}, {todayControl}, {selectedDateControl}.</para>
<para>Simple example is placed below.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <f:facet name="header">
- <f:verbatim>
- {previousMonthControl} | {nextMonthControl}
- </f:verbatim>
- </f:facet>
+ <f:facet name="header">
+ <h:panelGrid columns="2" width="100%" columnClasses="talign,talign,talign">
+ <h:outputText value="{todayControl}" style="font-weight:bold; text-align:left"/>
+ <h:outputText value="{selectedDateControl}" />
+ </h:panelGrid>
+ </f:facet>
+ <f:facet name="footer">
+ <h:panelGrid columns="3" width="100%" columnClasses="talign, talign, talign">
+ <h:outputText value="{previousMonthControl}" style="font-weight:bold;"/>
+ <h:outputText value="{currentMonthControl}" style="font-weight:bold;"/>
+ <h:outputText value="{nextMonthControl}" style="font-weight:bold;"/>
+ </h:panelGrid>
+</f:facet>
+
...]]></programlisting>
- <para>It's possible to define <emphasis>
- <property>"footer"</property>
- </emphasis> facet and replace in it (in the same way how it was described for <emphasis>
- <property>"header"</property>
- </emphasis> facet), for example, following today bar elements: {todayControl},
- {selectedDateControl}, {helpControl}.</para>
+ <para>This is a result:</para>
+ <figure>
+ <title>Using <emphasis>
+ <property>"header"</property>
+ </emphasis> and <emphasis>
+ <property>"footer"</property>
+ </emphasis> facets</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/calendar2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>Also you can use <emphasis>
- <property>"optionalHeader"</property>
- </emphasis> and <emphasis>
- <property>"optionalFooter"</property>
- </emphasis> facets. These facets define the top and the bottom elements of the calendar. They
- are not attached to the control parts of the calendar. You can replace in them any content.</para>
- <para>The <emphasis role="bold">
- <property><rich:calendar></property>
- </emphasis> component provides the possibility to use <emphasis>
<property>"weekNumber"</property>
- </emphasis> and <emphasis>
+ </emphasis> facet with available {weekNumber}, {elementId} elements and <emphasis>
<property>"weekDay"</property>
- </emphasis> facets. For example, using these facets you can change text style for the elements
- of the calendar as it's shown in the example below:</para>
+ </emphasis> facet with {weekDayLabel}, {weekDayLabelShort}, {weekDayNumber}, {isWeekend},
+ {elementId} elements. </para>
+
+ <para>Simple example is placed below.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <f:facet name="weekNumber">
- <h:outputText style="font-weight: bold;" value="{weekNumber}" />
- </f:facet>
+ <f:facet name="weekDay">
+ <h:panelGroup>
+ <h:outputText value="{weekDayLabel}|"/>
+ </h:panelGroup>
+ </f:facet>
+ <f:facet name="weekNumber">
+ <h:panelGroup>
+ <h:outputText value="{weekNumber}" style="color:red"/>
+ </h:panelGroup>
+ </f:facet>
...]]></programlisting>
+ <para>This is a result:</para>
+ <figure>
+ <title>Using <emphasis>
+ <property>"weekNumber"</property>
+ </emphasis> and <emphasis>
+ <property>"weekDay"</property>
+ </emphasis> facets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/calendar3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
<para>The example of using JavaScript API is placed below:</para>
-
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -290,32 +314,26 @@
</a4j:form>
...
]]></programlisting>
-
<para>Also the discussion about this problem can be found on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078301#..."
>RichFaces Users Forum</ulink>.</para>
-
<para>The <emphasis role="bold">
<property><rich:calendar></property>
</emphasis> component provides the possibility to use a special Data Model to define data for
element rendering. Data Model includes two major interfaces: </para>
-
<itemizedlist>
<listitem>CalendarDataModel</listitem>
<listitem>CalendarDataModelItem</listitem>
</itemizedlist>
-
<para><property>CalendarDataModel</property> provides the following function:</para>
<itemizedlist>
<listitem>CalendarDataModelItem[] getData(Date[]);</listitem>
</itemizedlist>
-
<para>This method is called when it's necessary to represent the next block of
CalendarDataItems. It happens during navigation to the next (previous) month or in any other
case when calendar renders. This method is called in <emphasis>
<property>"Ajax"</property>
</emphasis> mode when the calendar renders a new page. </para>
-
<para><property>CalendarDataModelItem</property> provides the following function:</para>
<itemizedlist>
<listitem>Date getDate() - returns date from the item. Default implementation returns date.</listitem>
@@ -332,7 +350,6 @@
object. It could be used in the custom date representation on the calendar (inside the
custom facet).</listitem>
</itemizedlist>
-
</section>
<section>
Added: trunk/docs/userguide/en/src/main/resources/images/calendar2.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/calendar2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/calendar3.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/calendar3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 2 months
JBoss Rich Faces SVN: r3679 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-01 11:15:01 -0400 (Thu, 01 Nov 2007)
New Revision: 3679
Modified:
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - fixing some mistakes in Definition of Custom Style Classes
Modified: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-11-01 15:14:00 UTC (rev 3678)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-11-01 15:15:01 UTC (rev 3679)
@@ -342,6 +342,8 @@
<section>
<title>Definition of Custom Style Classes</title>
+ <para>On the screenshot there are classes names that define styles for component elements.</para>
+
<figure>
<title>Classes names</title>
@@ -352,10 +354,8 @@
</mediaobject>
</figure>
- <para>On the screenshot, there are classes names defining specified elements.</para>
-
<table>
- <title>Classes names that define component appearance</title>
+ <title>Classes names that define a component appearance</title>
<tgroup cols="2">
<thead>
17 years, 2 months
JBoss Rich Faces SVN: r3678 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-01 11:14:00 -0400 (Thu, 01 Nov 2007)
New Revision: 3678
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - adding Look and Feel section, verifying Skin Parameters
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-11-01 15:13:37 UTC (rev 3677)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-11-01 15:14:00 UTC (rev 3678)
@@ -237,19 +237,28 @@
<section>
<title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a style class redefinition method.
- Default style classes are mapped on skin parameters.</para>
-
- <para>There are two ways to redefine the appearance of all panel menu items at once:</para>
-
+
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> components at once:</para>
+
<itemizedlist>
<listitem>
<para>Redefine the corresponding skin parameters</para>
</listitem>
-
+
<listitem>
- <para>Add to your style sheets style classes used by a panel menu item</para>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> component</para>
</listitem>
</itemizedlist>
</section>
@@ -258,7 +267,7 @@
<title> Skin Parameters Redefinition</title>
<table>
- <title>Skin parameters redefinition for a table element item of the first level</title>
+ <title>Skin parameters redefinition for a table element of the first level item</title>
<tgroup cols="2">
<thead>
@@ -317,7 +326,7 @@
<tbody>
<row>
- <entry>panelBorderColor</entry>
+ <entry>tabDisabledTextColor</entry>
<entry>color</entry>
</row>
@@ -342,7 +351,7 @@
</figure>
<table>
- <title>Classes names that define first level items</title>
+ <title>Classes names that define the first level items</title>
<tgroup cols="2">
<thead>
@@ -377,7 +386,7 @@
</table>
<table>
- <title>Classes names that define second and lower levels items</title>
+ <title>Classes names that define the second and lower level items</title>
<tgroup cols="2">
<thead>
@@ -430,6 +439,11 @@
<entry>Defines styles for a panel menu selected item</entry>
</row>
+ <row>
+ <entry>rich-pmenu-disabled-element</entry>
+
+ <entry>Defines styles for a disabled panel menu item</entry>
+ </row>
</tbody>
</tgroup>
</table>
17 years, 2 months
JBoss Rich Faces SVN: r3677 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-01 11:13:37 -0400 (Thu, 01 Nov 2007)
New Revision: 3677
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - adding Look and Feel section, verifying Skin Parameters
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-11-01 15:11:32 UTC (rev 3676)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-11-01 15:13:37 UTC (rev 3677)
@@ -234,19 +234,28 @@
<section>
<title>Look-and-Feel Customization</title>
-
- <para>For skinnability implementation, the components use a style class redefinition method.
- Default style classes are mapped on skin parameters.</para>
-
- <para>There are two ways to redefine the appearance of all panel menu groups at once:</para>
-
+
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+
+ <para>There are two ways to redefine the appearance of all <emphasis role="bold">
+ <property><rich:panelMenuGroup></property>
+ </emphasis> components at once:</para>
+
<itemizedlist>
<listitem>
<para>Redefine the corresponding skin parameters</para>
</listitem>
-
+
<listitem>
- <para>Add to your style sheets style classes used by a panel menu group</para>
+ <para>Add to your style sheets <emphasis>
+ <property>style classes</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:panelMenuGroup></property>
+ </emphasis> component</para>
</listitem>
</itemizedlist>
</section>
@@ -301,7 +310,7 @@
</table>
<table>
- <title>Skin parameters redefinition for a table element of second and next levels groups</title>
+ <title>Skin parameters redefinition for a table element of second and next level groups</title>
<tgroup cols="2">
<thead>
@@ -368,6 +377,52 @@
</tbody>
</tgroup>
</table>
+
+ <table>
+ <title>Skin parameters redefinition for a hovered group element</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>additionalBackgroundColor</entry>
+
+ <entry> background-color</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a disabled group element</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>tabDisabledTextColor</entry>
+
+ <entry>color</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
</section>
<section>
@@ -483,6 +538,11 @@
<entry>Defines styles for a hovered group element</entry>
</row>
+ <row>
+ <entry>rich-pmenu-disabled-element</entry>
+
+ <entry>Defines styles for a disabled group element</entry>
+ </row>
</tbody>
</tgroup>
17 years, 2 months
JBoss Rich Faces SVN: r3676 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-01 11:11:32 -0400 (Thu, 01 Nov 2007)
New Revision: 3676
Modified:
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - adding Look and Feel section
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-11-01 14:56:38 UTC (rev 3675)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-11-01 15:11:32 UTC (rev 3676)
@@ -233,15 +233,57 @@
</table>
</section>
+
+ <section>
+ <title>Look-and-Feel Customization</title>
+
+ <para>For skinnability implementation, the components use a <emphasis>
+ <property>style class redefinition method.</property>
+ </emphasis></para>
+
+ <para>To redefine the appearance of all <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> components at once, you should add to your style sheets <emphasis>
+ <property>style class</property>
+ </emphasis> used by a <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> component</para>
+ </section>
<section>
<title>Definition of Custom Style Classes</title>
+
+ <table>
+ <title>Classes names that define a component appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Class description</entry>
+ </row>
+ </thead>
+ <tbody>
+
+ <row>
+ <entry>rich-panel-menu</entry>
+ <entry>Defines styles for a wrapper <div> element of a component</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> components on a page using CSS, it's enough to create a class with the
+ same name and define necessary properties in it.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> components, define your own style class in the corresponding <emphasis
+ role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis>attributes.</para>
- <para>As this component is just a wrapper for its children its provide the only
- "rich-panel-menu" class for wrapper div element. To redefine appearance of
- particular panel menus, it's possible to define your own CSS class. And then just
- define it in the components class attribute. </para>
-
</section>
<section>
<title>Relevant Resources Links</title>
17 years, 2 months
JBoss Rich Faces SVN: r3675 - branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-01 10:56:38 -0400 (Thu, 01 Nov 2007)
New Revision: 3675
Modified:
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
JDK 1.4 incompatible code fixed
Modified: branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-11-01 14:56:14 UTC (rev 3674)
+++ branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-11-01 14:56:38 UTC (rev 3675)
@@ -383,9 +383,9 @@
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
JSFunction result = new JSFunction("new Date");
- result.addParameter(Integer.valueOf(calendar.get(Calendar.YEAR)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.MONTH)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.DATE)));
+ result.addParameter(new Integer(calendar.get(Calendar.YEAR)));
+ result.addParameter(new Integer(calendar.get(Calendar.MONTH)));
+ result.addParameter(new Integer(calendar.get(Calendar.DATE)));
return result;
}
17 years, 2 months
JBoss Rich Faces SVN: r3674 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-01 10:56:14 -0400 (Thu, 01 Nov 2007)
New Revision: 3674
Modified:
trunk/docs/userguide/en/src/main/docbook/included/treeNode.desc.xml
Log:
http://jira.jboss.com/jira/browse/RF-1137 - adding id to Key Feature section
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.desc.xml 2007-11-01 14:35:46 UTC (rev 3673)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.desc.xml 2007-11-01 14:56:14 UTC (rev 3674)
@@ -17,7 +17,7 @@
</mediaobject>
</figure>
</section>
- <section>
+ <section id="treeNodeKF">
<title>Key Features</title>
</section>
</section>
\ No newline at end of file
17 years, 2 months
JBoss Rich Faces SVN: r3673 - management/design/orderingList/markup.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-01 10:35:46 -0400 (Thu, 01 Nov 2007)
New Revision: 3673
Modified:
management/design/orderingList/markup/ordering_list.html
Log:
Markup updated
Modified: management/design/orderingList/markup/ordering_list.html
===================================================================
--- management/design/orderingList/markup/ordering_list.html 2007-11-01 14:31:53 UTC (rev 3672)
+++ management/design/orderingList/markup/ordering_list.html 2007-11-01 14:35:46 UTC (rev 3673)
@@ -4,10 +4,10 @@
<title>Ordering List</title>
<style>
.ol_header{padding : 1px;}
- .ol_headerlabel{background : #4A75B5; color : #FFFFFF; font-family : Arial; font-size :11px; font-weight : bold; padding : 3px 3px 3px 8px}
+ .ol_headerlabel{font-family : Arial; font-size :11px; font-weight : bold; padding : 3px 3px 3px 8px}
.ol_body{border : 1px solid #bfbfc0; background-color : #e7f2fb;}
- .ol_list{overflow : auto; width : 200px; height : 150px; background : #FFFFFF; border : 1px solid #bfbfc0; margin : 8px}
- .ol_button_layout{padding : 20px 8px 20px 0px; vertical-align : top}
+ .ol_list{overflow : auto; width : 200px; height : 150px; background : #FFFFFF; border : 1px solid #bfbfc0; margin : 0px 8px 8px 8px;}
+ .ol_button_layout{padding : 15px 8px 15px 0px; vertical-align : top}
.ol_button{background : #4A75B5; border : 1px solid #bfbfc0; margin-bottom : 3px; cursor : pointer; padding : 1px}
.ol_button_dis{background : #bfbfc0; border : 1px solid #bfbfc0; margin-bottom : 3px; padding : 1px}
.ol_button_press{background : #4A75B5; border : 1px solid #bfbfc0; margin-bottom : 3px; padding : 2px 0px 0px 2px}
17 years, 2 months