JBoss Rich Faces SVN: r3876 - in trunk/sandbox/ui/orderingList/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-09 12:53:08 -0500 (Fri, 09 Nov 2007)
New Revision: 3876
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
Log:
width&height for items list
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-09 17:52:35 UTC (rev 3875)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-09 17:53:08 UTC (rev 3876)
@@ -21,8 +21,8 @@
}
.ol_list {
- width : 300px;
- height : 250px;
+ /*width : 600px;
+ height : 650px;*/
background : #FFFFFF;
border : 1px solid #bfbfc0;
margin : 0px 8px 8px 8px;
Modified: trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-09 17:52:35 UTC (rev 3875)
+++ trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-09 17:53:08 UTC (rev 3876)
@@ -28,15 +28,17 @@
<tr>
<td>
<div id="#{clientId}headerBox" class="ol_list">
- <div class="ol_list_header">
+ <div class="ol_list_header" style="width: #{component.attributes['listHeight']}px;">
<table id="#{clientId}internal_header_tab" class="ol_internal_header_tab" cellpadding="0" cellspacing="0">
<f:call name="encodeHeader"/>
</table>
</div>
- <div id="#{clientId}contentBox" class="ol_list_content">
+ <div id="#{clientId}contentBox" class="ol_list_content" style="width: #{component.attributes['listHeight']}px; height:#{component.attributes['listWidth']}px;">
<table id="#{clientId}internal_tab" class="ol_internal_tab" cellpadding="0" cellspacing="0">
- <tbody id="#{clientId}tbody"><vcp:body>
- <f:call name="encodeRows" /></vcp:body>
+ <tbody id="#{clientId}tbody">
+ <vcp:body>
+ <f:call name="encodeRows" />
+ </vcp:body>
</tbody>
</table>
</div>
18 years, 6 months
JBoss Rich Faces SVN: r3875 - in trunk/sandbox/ui/orderingList/src/main: java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-09 12:52:35 -0500 (Fri, 09 Nov 2007)
New Revision: 3875
Modified:
trunk/sandbox/ui/orderingList/src/main/config/component/orderinglist.xml
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
Log:
width&height for items list
Modified: trunk/sandbox/ui/orderingList/src/main/config/component/orderinglist.xml
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/config/component/orderinglist.xml 2007-11-09 16:08:29 UTC (rev 3874)
+++ trunk/sandbox/ui/orderingList/src/main/config/component/orderinglist.xml 2007-11-09 17:52:35 UTC (rev 3875)
@@ -38,7 +38,29 @@
</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
-
+
+ <property>
+ <name>listWidth</name>
+ <classname>int</classname>
+ <description>
+ listWidth
+ </description>
+ </property>
+ <property>
+ <name>listHeight</name>
+ <classname>int</classname>
+ <description>
+ listHeight
+ </description>
+ </property>
+ <property>
+ <name>rowClasses</name>
+ <classname>java.lang.String</classname>
+ <description>
+ rowClasses
+ </description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
<property>
<name>rowClasses</name>
<classname>java.lang.String</classname>
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2007-11-09 16:08:29 UTC (rev 3874)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2007-11-09 17:52:35 UTC (rev 3875)
@@ -877,4 +877,12 @@
public abstract String getControlsType();
public abstract void setControlsType(String type);
+
+ public abstract int getListWidth();
+
+ public abstract void setListWidth(int listWidth);
+
+ public abstract int getListHeight();
+
+ public abstract void setListHeight(int listHeight);
}
Modified: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-11-09 16:08:29 UTC (rev 3874)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2007-11-09 17:52:35 UTC (rev 3875)
@@ -194,8 +194,8 @@
String headerClass = (String) orderingList.getAttributes().get("headerClass");
writer.startElement("tr", orderingList);
- encodeStyleClass(writer, null, "dr-table-subheader rich-table-subheader", null, headerClass);
- encodeHeaderFacets(context, writer, headers, "ol_col rich-table-subheadercell", headerClass, "header", "th", orderingList);
+ encodeStyleClass(writer, null, "rich-table-header", null, headerClass);
+ encodeHeaderFacets(context, writer, headers, "ol_col rich-table-header-cell", headerClass, "header", "th", orderingList);
writer.endElement("tr");
}
@@ -289,7 +289,7 @@
writer.startElement(element, column);
if (!headers.hasNext()) {
- skinCellClass = "ol_endcol rich-table-subheadercell";
+ skinCellClass = "ol_endcol rich-table-header-cell-end";
}
encodeStyleClass(writer, null, skinCellClass, headerClass, columnHeaderClass);
getUtils().encodeAttribute(context, column, "colspan");
18 years, 6 months
JBoss Rich Faces SVN: r3874 - trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-09 11:08:29 -0500 (Fri, 09 Nov 2007)
New Revision: 3874
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
the changed custom events
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-09 16:01:36 UTC (rev 3873)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-09 16:08:29 UTC (rev 3874)
@@ -72,16 +72,16 @@
var topControl = document.getElementById(firstControlId);
var bottomControl = document.getElementById(lastControlId);
if (upControl) {
- upControl.onclick = function(e) {obj.moveSelectedItems('up', e);return false;};
+ Shuttle.addClickListener(upControl, function(e) {obj.moveSelectedItems('up', e);return false;});
}
if (downControl) {
- downControl.onclick = function(e) {obj.moveSelectedItems('down', e);return false;};
+ Shuttle.addClickListener(downControl, function(e) {obj.moveSelectedItems('down', e);return false;});
}
if (topControl) {
- topControl.onclick = function(e) {obj.moveSelectedItems('first', e);return false;};
+ Shuttle.addClickListener(topControl, function(e) {obj.moveSelectedItems('first', e);return false;});
}
if (bottomControl) {
- bottomControl.onclick = function(e) {obj.moveSelectedItems('last', e);return false;};
+ Shuttle.addClickListener(bottomControl, function(e) {obj.moveSelectedItems('last', e);return false;});
}
document.getElementById(contentTableId).onclick = function(e) {obj.onclickHandler(window.event || e);};
this.shuttleTop = LayoutManager.getElemXY(this.shuttleTable).top;
@@ -495,7 +495,7 @@
if (item._selected) {
result.push(Shuttle.SELECTION_MARKER);
}
- if (this.activeItem.rowIndex == item._node.rowIndex) {
+ if (this.activeItem && (this.activeItem.rowIndex == item._node.rowIndex)) {
result.push(Shuttle.ACTIVITY_MARKER);
}
if (i != (this.shuttleItems.length - 1)) {
@@ -506,7 +506,9 @@
}
Shuttle.prototype.saveState = function() {
- this.valueKeeper.value = this.toString();
+ if (this.activeItem != null || (this.selectedItems.length > 0)) {
+ this.valueKeeper.value = this.toString();
+ }
}
Shuttle.prototype.compareByLabel = function(obj1, obj2) {
@@ -528,3 +530,16 @@
Shuttle.setFocus = function(targetObjectId) {
document.getElementById(targetObjectId).focus();
}
+
+Shuttle.addEventListener = function(elem, event, func) {
+ if (window.attachEvent) {
+ elem.attachEvent("on" + event, func);
+ } else {
+ elem.addEventListener(event, func, false);
+ }
+}
+
+Shuttle.addClickListener = function(elem, func) {
+ Shuttle.addEventListener(elem, "click", func);
+}
+
18 years, 6 months
JBoss Rich Faces SVN: r3873 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-09 11:01:36 -0500 (Fri, 09 Nov 2007)
New Revision: 3873
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml
Log:
http://jira.jboss.com/jira/browse/RF-926 - verified codes for dataFilterSlider, fixed some errors.
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml 2007-11-09 15:57:37 UTC (rev 3872)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml 2007-11-09 16:01:36 UTC (rev 3873)
@@ -43,12 +43,8 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:dataFilterSlider sliderListener="#{mybean.doSlide}"
- startRange="0"
- endRange="50000"
- increment="10000"
- handleValue="1"
- />
+ <rich:dataFilterSlider sliderListener="#{mybean.doSlide}" startRange="0"
+ endRange="50000" increment="10000" handleValue="1" />
...
]]></programlisting>
</section>
@@ -66,10 +62,11 @@
</section>
<section>
<title>Details of Usage</title>
- <para>The <property>dataFilterSlider</property> component is bound to some UIData component
- using a <emphasis>
+ <para>The <emphasis role="bold">
+ <property>dataFilterSlider</property>
+ </emphasis> component is bound to some UIData component using a <emphasis>
<property>"for"</property>
- </emphasis> attribute and filters data in this table. </para>
+ </emphasis> attribute and filters data in a table. </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -127,9 +124,9 @@
<para>
<ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataFilterSlider.jsf?..."
- >Here</ulink> you can see the example of <emphasis role="bold"
- ><property><rich:dataFilterSlider></property></emphasis> usage and sources for the given example.
- </para>
+ >Here</ulink> you can see the example of <emphasis role="bold">
+ <property><rich:dataFilterSlider></property>
+ </emphasis> usage and sources for the given example. </para>
</section>
</section>
18 years, 6 months
JBoss Rich Faces SVN: r3871 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-09 10:57:10 -0500 (Fri, 09 Nov 2007)
New Revision: 3871
Modified:
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - unifying table titles and fixing some mistakes
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-11-09 15:56:49 UTC (rev 3870)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-11-09 15:57:10 UTC (rev 3871)
@@ -335,14 +335,14 @@
<title>Skin Parameters Redefinition</title>
<table>
- <title>Panel skin parameters</title>
+ <title>Skin parameters for a component</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Panel skin parameters</entry>
+ <entry>Skin parameters</entry>
- <entry>Properties corresponding to CSS parameter</entry>
+ <entry>CSS properties</entry>
</row>
</thead>
@@ -363,14 +363,14 @@
</table>
<table>
- <title>Header parameters</title>
+ <title>Skin parameters redefinition for a header element</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Headers parameters</entry>
+ <entry>Skin parameters</entry>
- <entry>Properties corresponding to CSS parameter</entry>
+ <entry>CSS properties</entry>
</row>
</thead>
@@ -391,14 +391,14 @@
</table>
<table>
- <title>Header content parameters</title>
+ <title>Skin parameters redefinition for a header content</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Headers content parameters</entry>
+ <entry>Skin parameters</entry>
- <entry>Properties corresponding to CSS parameter</entry>
+ <entry>CSS properties</entry>
</row>
</thead>
@@ -431,14 +431,14 @@
</table>
<table>
- <title>Body parameters</title>
+ <title>Skin parameters redefinition for a body element</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Body parameters</entry>
+ <entry>Skin parameters</entry>
- <entry>Properties corresponding to CSS parameter</entry>
+ <entry>CSS properties</entry>
</row>
</thead>
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-11-09 15:56:49 UTC (rev 3870)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-11-09 15:57:10 UTC (rev 3871)
@@ -144,7 +144,7 @@
<title>Definition of Custom Style Classes</title>
<table>
- <title>Classes names that define a whole component appearance</title>
+ <title>Classes names that define a component appearance</title>
<tgroup cols="2">
<thead>
<row>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-11-09 15:56:49 UTC (rev 3870)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-11-09 15:57:10 UTC (rev 3871)
@@ -446,10 +446,10 @@
<para>There is only one skin parameter for <emphasis
role="bold">
<property><rich:tree></property>
- </emphasis> as it's a wrapper component for <emphasis
+ </emphasis>. As it's a wrapper component for <emphasis
role="bold">
<property><rich:treeNode></property>
- </emphasis> components. Look and feel customizationis is described in details in the <link linkend="SPRofTN">following section.</link></para>
+ </emphasis> components, look and feel customization is described in the <link linkend="SPRofTN">corresponding section.</link></para>
<table>
<title>Skin parameters for a wrapper element</title>
<tgroup cols="2">
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-11-09 15:56:49 UTC (rev 3870)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-11-09 15:57:10 UTC (rev 3871)
@@ -290,27 +290,13 @@
<entry>rich-tree-node</entry>
<entry> Defines styles for a tree node</entry>
</row>
+
<row>
- <entry>rich-tree-node-selected</entry>
- <entry>Defines styles for a selected tree node </entry>
- </row>
- <row>
- <entry>rich-tree-node-highlighted</entry>
- <entry>Defines styles for a highlighted tree node </entry>
- </row>
- <row>
<entry>rich-tree-node-handleicon</entry>
<entry>Defines styles for a tree node handleicon</entry>
</row>
+
<row>
- <entry>rich-tree-node-handleicon-collapsed</entry>
- <entry>Defines styles for a collapsed tree node handleicon </entry>
- </row>
- <row>
- <entry>rich-tree-node-handleicon-expanded</entry>
- <entry>Defines styles for a expanded tree node handleicon</entry>
- </row>
- <row>
<entry>rich-tree-node-children</entry>
<entry>Defines styles for all tree node subnodes</entry>
</row>
@@ -330,6 +316,39 @@
</tgroup>
</table>
+ <table>
+ <title>Classes names that define states for a node element</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+
+ <row>
+ <entry>rich-tree-node-selected</entry>
+ <entry>Defines styles for a selected tree node </entry>
+ </row>
+ <row>
+ <entry>rich-tree-node-highlighted</entry>
+ <entry>Defines styles for a highlighted tree node </entry>
+ </row>
+
+ <row>
+ <entry>rich-tree-node-handleicon-collapsed</entry>
+ <entry>Defines styles for a collapsed tree node handleicon </entry>
+ </row>
+ <row>
+ <entry>rich-tree-node-handleicon-expanded</entry>
+ <entry>Defines styles for a expanded tree node handleicon</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
<para>In order to redefine the style for all <emphasis role="bold">
<property><rich:treeNode></property>
</emphasis> components on a page using CSS, it's enough to create classes with the
18 years, 6 months
JBoss Rich Faces SVN: r3870 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-11-09 10:56:49 -0500 (Fri, 09 Nov 2007)
New Revision: 3870
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-925 - Code patterns explanation, added picture.
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-11-09 15:40:16 UTC (rev 3869)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-11-09 15:56:49 UTC (rev 3870)
@@ -222,21 +222,34 @@
<property>"optionalFooter"</property>
</emphasis> facets. The following elements are available in these facets:
{currentMonthControl}, {nextMonthControl}, {nextYearControl}, {previousYearControl},
- {previousMonthControl}, {todayControl}, {selectedDateControl}. </para>
+ {previousMonthControl}, {todayControl}, {selectedDateControl}. These elements could be used
+ for labels output.</para>
<para>Also you can use <emphasis>
<property>"weekNumber"</property>
</emphasis> facet with available {weekNumber}, {elementId} elements and <emphasis>
<property>"weekDay"</property>
</emphasis> facet with {weekDayLabel}, {weekDayLabelShort}, {weekDayNumber}, {isWeekend},
- {elementId} elements. {weekDayLabel}, {weekDayLabelShort}, {weekDayNumber} elements could be
+ {elementId} elements. {weekNumber}, {weekDayLabel}, {weekDayLabelShort}, {weekDayNumber} elements could be
used for labels output, {isWeekend}, {elementId} - for additional processing in JavaScript
code.</para>
+ <para>These elements are shown on the picture below.</para>
+
+ <figure>
+ <title>Available elements</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/calendar3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>Simple example is placed below.</para>
+ <para>Simple example of usage is placed below.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
+<!--Styles for cells -->
<style>
.width100{
width:100%;
@@ -248,6 +261,8 @@
<rich:calendar id="myCalendar" popup="true" locale="#{calendarBean.locale}" value="#{bean.date}"
preloadRangeBegin="#{bean.date}" preloadRangeEnd="#{bean.date}" selectedDate="#{bean.date}" cellWidth="40px" cellHeight="40px">
+
+<!-- Customization with usage of facets and accessible elements -->
<f:facet name="header">
<h:panelGrid columns="2" width="100%" columnClasses="width100, fake">
<h:outputText value="{selectedDateControl}" />
18 years, 6 months
JBoss Rich Faces SVN: r3868 - in trunk/ui/panelbar/src/main: java/org/richfaces/renderkit/html and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-09 10:38:06 -0500 (Fri, 09 Nov 2007)
New Revision: 3868
Modified:
trunk/ui/panelbar/src/main/config/component/panelbar.xml
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
Log:
add mousemove mouseout mouseover client events to the panelBar component
Modified: trunk/ui/panelbar/src/main/config/component/panelbar.xml
===================================================================
--- trunk/ui/panelbar/src/main/config/component/panelbar.xml 2007-11-09 15:34:22 UTC (rev 3867)
+++ trunk/ui/panelbar/src/main/config/component/panelbar.xml 2007-11-09 15:38:06 UTC (rev 3868)
@@ -126,6 +126,30 @@
</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
+ <property>
+ <name>mouseover</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Event must occurs on than item has been changed
+ </description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>mouseout</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Event must occurs on than item has been changed
+ </description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+ <property>
+ <name>mousemove</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Event must occurs on than item has been changed
+ </description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
&ui_component_attributes;
Modified: trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
===================================================================
--- trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2007-11-09 15:34:22 UTC (rev 3867)
+++ trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2007-11-09 15:38:06 UTC (rev 3868)
@@ -146,6 +146,9 @@
ScriptOptions options = new ScriptOptions(component);
options.addOption("onitemchange",panelBar.getAttributes().get("onitemchange"));
options.addOption("onclick", panelBar.getAttributes().get("onclick"));
+ options.addOption("mouseouver", panelBar.getAttributes().get("mouseouver"));
+ options.addOption("mouseout", panelBar.getAttributes().get("mouseout"));
+ options.addOption("mousemove", panelBar.getAttributes().get("mousemove"));
StringBuffer script = new StringBuffer();
JSFunction function = new JSFunction("new Richfaces.PanelBar");
Modified: trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
===================================================================
--- trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-11-09 15:34:22 UTC (rev 3867)
+++ trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-11-09 15:38:06 UTC (rev 3868)
@@ -20,8 +20,6 @@
this.slides=new Array();
this.ch=this.panel.clientHeight;
this.options = options;
-
- this.onclick = options.onclick;
this.onitemchange = options.onitemchange;
this._attachBehaviors();
@@ -29,9 +27,25 @@
this.defaultIndex=this.findPanelById($F(panelId+"_panelBarInput"));
Event.observe(window,'load',this.handleOnLoad.bindAsEventListener(this));
+
+ this.mouseover = options.mouseover;
+ this.mouseout = options.mouseout;
+ this.mousemove = options.mousemove;
+
+ if (this.mouseover && this.mouseover != ""){
+ Event.observe(this.panel,'mouseover',new Function("event", "return " + this.mouseout + ";").bindAsEventListener(this));
+ }
+
+ if (this.mouseout && this.mouseout != ""){
+ Event.observe(this.panel,'mouseout',new Function("event", "return " + this.mouseout + ";").bindAsEventListener(this));
+ }
+
+ if (this.mousemove && this.mousemove != ""){
+ Event.observe(this.panel,'mousemove',new Function("event", "return " + this.mouseout + ";").bindAsEventListener(this));
+ }
+
+ this.showSlide(this.slides[this.defaultIndex]);
- this.showSlide(this.slides[this.defaultIndex]);
-
this.contentHight = -1;
},
@@ -109,7 +123,7 @@
var rows=this._getDirectChildrenByTag(this.panel,'DIV');
for(var i=0; i<rows.length; i++) {
var subrows=this._getDirectChildrenByTag(rows[i],'DIV');
- this.slides.push(new Richfaces.PanelBar.Slide(this,rows[i],subrows[0],subrows[1],subrows[2],i,this.onclick)); //ndex
+ this.slides.push(new Richfaces.PanelBar.Slide(this,rows[i],subrows[0],subrows[1],subrows[2],i,this.onclick)); //index
}
},
@@ -135,7 +149,6 @@
return 0;
}
-
}
Richfaces.PanelBar.Slide = Class.create();
@@ -149,6 +162,8 @@
this.header=header;
this.header_act=header_act;
this.content=content;
+ this.onclick = onclick;
+
// this.item.style.overflow="hidden";
// this.header.style.overflowX="hidden";
// this.header.style.overflowY="visible";
@@ -162,7 +177,7 @@
this.content.style.height="0px";
// this.content.style.paddingRight="0px";
this.hightFirefoxDelta = 0;
-
+
if (this.slidePanel.isIE){
if (this.slidePanel.panel.style.width.indexOf("%")!=-1) {
this.item.style.width="100%";
@@ -171,8 +186,8 @@
}
}
- if (onclick && onclick != ""){
- this.onclickFunction = new Function("return " + onclick + ";").bindAsEventListener(this);
+ if (this.onclick && this.onclick != ""){
+ this.onclickFunction = new Function("return " + this.onclick + ";").bindAsEventListener(this);
}
},
18 years, 6 months
JBoss Rich Faces SVN: r3867 - in trunk/sandbox/ui: contextMenu and 14 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-11-09 10:34:22 -0500 (Fri, 09 Nov 2007)
New Revision: 3867
Added:
trunk/sandbox/ui/contextMenu/
trunk/sandbox/ui/contextMenu/pom.xml
trunk/sandbox/ui/contextMenu/src/
trunk/sandbox/ui/contextMenu/src/main/
trunk/sandbox/ui/contextMenu/src/main/config/
trunk/sandbox/ui/contextMenu/src/main/config/component/
trunk/sandbox/ui/contextMenu/src/main/config/component/README
trunk/sandbox/ui/contextMenu/src/main/java/
trunk/sandbox/ui/contextMenu/src/main/java/org/
trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/
trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/component/
trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/component/README
trunk/sandbox/ui/contextMenu/src/main/resources/
trunk/sandbox/ui/contextMenu/src/main/templates/
trunk/sandbox/ui/contextMenu/src/main/templates/README
trunk/sandbox/ui/contextMenu/src/test/
trunk/sandbox/ui/contextMenu/src/test/java/
trunk/sandbox/ui/contextMenu/src/test/java/org/
trunk/sandbox/ui/contextMenu/src/test/java/org/richfaces/
trunk/sandbox/ui/contextMenu/src/test/java/org/richfaces/component/
trunk/sandbox/ui/contextMenu/src/test/java/org/richfaces/component/JSFComponentTest.java
Log:
New component: contextMenu
Property changes on: trunk/sandbox/ui/contextMenu
___________________________________________________________________
Name: svn:ignore
+ target
Added: trunk/sandbox/ui/contextMenu/pom.xml
===================================================================
--- trunk/sandbox/ui/contextMenu/pom.xml (rev 0)
+++ trunk/sandbox/ui/contextMenu/pom.xml 2007-11-09 15:34:22 UTC (rev 3867)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>contextMenu</artifactId>
+ <name>contextMenu</name>
+ <version>3.2.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>contextMenu</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/sandbox/ui/contextMenu/src/main/config/component/README
===================================================================
Added: trunk/sandbox/ui/contextMenu/src/main/java/org/richfaces/component/README
===================================================================
Added: trunk/sandbox/ui/contextMenu/src/main/templates/README
===================================================================
Added: trunk/sandbox/ui/contextMenu/src/test/java/org/richfaces/component/JSFComponentTest.java
===================================================================
--- trunk/sandbox/ui/contextMenu/src/test/java/org/richfaces/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/contextMenu/src/test/java/org/richfaces/component/JSFComponentTest.java 2007-11-09 15:34:22 UTC (rev 3867)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}
18 years, 6 months