JBoss Rich Faces SVN: r3916 - in trunk/ui/dropdown-menu/src/main: java/org/richfaces/component and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-12 09:33:36 -0500 (Mon, 12 Nov 2007)
New Revision: 3916
Modified:
trunk/ui/dropdown-menu/src/main/config/component/dropdownmenu.xml
trunk/ui/dropdown-menu/src/main/java/org/richfaces/component/UIDropDownMenu.java
trunk/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1290
Modified: trunk/ui/dropdown-menu/src/main/config/component/dropdownmenu.xml
===================================================================
--- trunk/ui/dropdown-menu/src/main/config/component/dropdownmenu.xml 2007-11-12 14:23:10 UTC (rev 3915)
+++ trunk/ui/dropdown-menu/src/main/config/component/dropdownmenu.xml 2007-11-12 14:33:36 UTC (rev 3916)
@@ -30,7 +30,15 @@
</taghandler>
&ui_component_attributes;
-
+
+ <property>
+ <name>disabled</name>
+ <classname>boolean</classname>
+ <description>
+ Attribute 'disabled' provides possibility to make the whole menu disabled if its value equals to "true".
+ </description>
+ <defaultvalue>false</defaultvalue>
+ </property>
<property>
<name>event</name>
<classname>java.lang.String</classname>
Modified: trunk/ui/dropdown-menu/src/main/java/org/richfaces/component/UIDropDownMenu.java
===================================================================
--- trunk/ui/dropdown-menu/src/main/java/org/richfaces/component/UIDropDownMenu.java 2007-11-12 14:23:10 UTC (rev 3915)
+++ trunk/ui/dropdown-menu/src/main/java/org/richfaces/component/UIDropDownMenu.java 2007-11-12 14:33:36 UTC (rev 3916)
@@ -38,5 +38,9 @@
public abstract void setSubmitMode(String submitMode);
public abstract String getSubmitMode();
+
+ public abstract boolean isDisabled();
+
+ public abstract void setDisabled(boolean disabled);
}
Modified: trunk/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java
===================================================================
--- trunk/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java 2007-11-12 14:23:10 UTC (rev 3915)
+++ trunk/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java 2007-11-12 14:33:36 UTC (rev 3916)
@@ -21,6 +21,8 @@
package org.richfaces.renderkit.html;
+import java.io.IOException;
+
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
@@ -98,5 +100,10 @@
return buffer.toString();
}
+ public void encodeChildren(FacesContext context, UIComponent component)
+ throws IOException {
+ if (!((org.richfaces.component.UIDropDownMenu)component).isDisabled())
+ super.encodeChildren(context, component);
+ }
}
Modified: trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
--- trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-11-12 14:23:10 UTC (rev 3915)
+++ trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-11-12 14:33:36 UTC (rev 3916)
@@ -20,16 +20,37 @@
<f:clientid var="clientId"/>
<jsp:scriptlet>
<![CDATA[if (!((org.richfaces.component.UIDropDownMenu)component).getSubmitMode().equalsIgnoreCase("none")) org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context,component);]]>
- </jsp:scriptlet>
+ </jsp:scriptlet>
+ <jsp:scriptlet>
+ <![CDATA[if (!((org.richfaces.component.UIDropDownMenu)component).isDisabled()) {]]>
+ </jsp:scriptlet>
<div id="#{clientId}"
style="#{component.attributes['style']};"
class="#{component.attributes['styleClass']} dr-menu-label dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect"
onmouseover="this.className='dr-menu-label dr-menu-label-select rich-ddmenu-label rich-ddmenu-label-select' ; #{component.attributes['onmouseover']}"
onmouseout="this.className='dr-menu-label dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect'; #{component.attributes['onmouseout']}"
onmousemove="#{component.attributes['onmousemove']}">
-
+ <jsp:scriptlet>
+ <![CDATA[} else {]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}"
+ style="#{component.attributes['style']};"
+ class="#{component.attributes['styleClass']} dr-menu-label dr-menu-label-unselect rich-ddmenu-label-disabled rich-ddmenu-label-unselect"
+ onmouseover="#{component.attributes['onmouseover']}"
+ onmouseout="#{component.attributes['onmouseout']}"
+ onmousemove="#{component.attributes['onmousemove']}">
+ <jsp:scriptlet>
+ <![CDATA[}]]>
+ </jsp:scriptlet>
<jsp:scriptlet>
- <![CDATA[if(component.getFacet("label")!=null && component.getFacet("label").isRendered()) {]]>
+ <![CDATA[if (((org.richfaces.component.UIDropDownMenu)component).isDisabled() &&
+ (component.getFacet("labelDisabled")!=null && component.getFacet("labelDisabled").isRendered())) {]]>
+ </jsp:scriptlet>
+ <span class="dr-label-text-decor rich-label-text-decor">
+ <u:insertFacet name="labelDisabled" />
+ </span>
+ <jsp:scriptlet>
+ <![CDATA[} else if(component.getFacet("label")!=null && component.getFacet("label").isRendered()) {]]>
</jsp:scriptlet>
<span class="dr-label-text-decor rich-label-text-decor">
<u:insertFacet name="label" />
@@ -48,6 +69,15 @@
</vcp:body>
</div>
- </div>
-
+ <jsp:scriptlet>
+ <![CDATA[if (!((org.richfaces.component.UIDropDownMenu)component).isDisabled()) {]]>
+ </jsp:scriptlet>
+ </div>
+ <jsp:scriptlet>
+ <![CDATA[} else {]]>
+ </jsp:scriptlet>
+ </div>
+ <jsp:scriptlet>
+ <![CDATA[}]]>
+ </jsp:scriptlet>
</f:root>
\ No newline at end of file
18 years, 5 months
JBoss Rich Faces SVN: r3915 - trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-11-12 09:23:10 -0500 (Mon, 12 Nov 2007)
New Revision: 3915
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
RF-1163
Modified: trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
--- trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-11-12 13:37:21 UTC (rev 3914)
+++ trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2007-11-12 14:23:10 UTC (rev 3915)
@@ -343,6 +343,7 @@
},
editChange: function(e) {
+ if (this.input.value=='-') return;
if (isNaN(Number(this.input.value))){
this.setValue(Number(this.value));
this.input.value = this.value;
18 years, 5 months
JBoss Rich Faces SVN: r3914 - branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-12 08:37:21 -0500 (Mon, 12 Nov 2007)
New Revision: 3914
Modified:
branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java
Log:
RF-1324
Modified: branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java
===================================================================
--- branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java 2007-11-12 13:36:56 UTC (rev 3913)
+++ branches/3.1.x/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java 2007-11-12 13:37:21 UTC (rev 3914)
@@ -82,7 +82,7 @@
if (! (child instanceof UIToolBarGroup)) {
writer.endElement("td");
}
- if (it.hasNext() || !childrenToTheRight.isEmpty()) {
+ if (it.hasNext()) {
insertSeparatorIfNeed(writer, facesContext, toolBar);
}
}
@@ -90,9 +90,9 @@
writer.startElement("td", component);
writer.writeAttribute("width", "100%", null);
writer.endElement("td");
- if (!childrenToTheLeft.isEmpty() && !childrenToTheRight.isEmpty()) {
- insertSeparatorIfNeed(writer, facesContext, toolBar);
- }
+// if (!childrenToTheLeft.isEmpty() && !childrenToTheRight.isEmpty()) {
+// insertSeparatorIfNeed(writer, facesContext, toolBar);
+// }
for (Iterator it = childrenToTheRight.iterator(); it.hasNext();) {
UIComponent child = (UIComponent) it.next();
18 years, 5 months
JBoss Rich Faces SVN: r3913 - trunk/ui/toolBar/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-12 08:36:56 -0500 (Mon, 12 Nov 2007)
New Revision: 3913
Modified:
trunk/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java
Log:
RF-1324
Modified: trunk/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java
===================================================================
--- trunk/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java 2007-11-12 13:01:16 UTC (rev 3912)
+++ trunk/ui/toolBar/src/main/java/org/richfaces/renderkit/html/ToolBarRendererBase.java 2007-11-12 13:36:56 UTC (rev 3913)
@@ -82,7 +82,7 @@
if (! (child instanceof UIToolBarGroup)) {
writer.endElement("td");
}
- if (it.hasNext() || !childrenToTheRight.isEmpty()) {
+ if (it.hasNext()) {
insertSeparatorIfNeed(writer, facesContext, toolBar);
}
}
@@ -90,9 +90,9 @@
writer.startElement("td", component);
writer.writeAttribute("width", "100%", null);
writer.endElement("td");
- if (!childrenToTheLeft.isEmpty() && !childrenToTheRight.isEmpty()) {
- insertSeparatorIfNeed(writer, facesContext, toolBar);
- }
+// if (!childrenToTheLeft.isEmpty() && !childrenToTheRight.isEmpty()) {
+// insertSeparatorIfNeed(writer, facesContext, toolBar);
+// }
for (Iterator it = childrenToTheRight.iterator(); it.hasNext();) {
UIComponent child = (UIComponent) it.next();
18 years, 5 months
JBoss Rich Faces SVN: r3912 - trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-12 08:01:16 -0500 (Mon, 12 Nov 2007)
New Revision: 3912
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
cosmetic changes
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-12 12:53:58 UTC (rev 3911)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-12 13:01:16 UTC (rev 3912)
@@ -97,36 +97,24 @@
var control;
//FIXME
if ((this.shuttleItems.length <= 1) || (this.selectedItems.length == 0)) {
- for (var i = 0; i < this.controlList.length; i++) {
- control = this.controlList[i];
- control.doDisable();
- }
+ this.controlsProcessing(["first", "last", "down", "up"]);
} else if (this.selectedItems[0].rowIndex == 0) {
- this.getControlByAction("first").doDisable();
- this.getControlByAction("up").doDisable();
- this.getControlByAction("down").doEnable();
- this.getControlByAction("last").doEnable();
+ this.controlsProcessing(["first", "up"]);
} else if (this.selectedItems[this.selectedItems.length - 1].rowIndex == (this.shuttleItems.length - 1)) {
- this.getControlByAction("down").doDisable();
- this.getControlByAction("last").doDisable();
- this.getControlByAction("first").doEnable();
- this.getControlByAction("up").doEnable();
+ this.controlsProcessing(["down", "last"]);
} else {
- for (var i = 0; i < this.controlList.length; i++) {
- control = this.controlList[i];
- control.doEnable();
- }
+ this.controlsProcessing();
}
}
-Shuttle.prototype.getControlByAction = function(action) {
+Shuttle.prototype.controlsProcessing = function(disabledControls) {
for (var i = 0; i < this.controlList.length; i++) {
- var control = this.controlList[i];
- if (control.action == action) {
- return control;
+ control = this.controlList[i];
+ if (control != null) {
+ if (disabledControls != null && disabledControls.indexOf(control.action) != -1) control.doDisable();
+ else control.doEnable();
}
- }
- return null;
+ }
}
Shuttle.prototype.retrieveShuttleItems = function(containerId) {
@@ -286,6 +274,7 @@
}
this.activeItem.className = Shuttle.ACTIVE_ITEM_CLASS;
this.saveState();
+ this.controlListManager();
Shuttle.setFocus(this.focusKeeper.id);
}
}
18 years, 5 months
JBoss Rich Faces SVN: r3911 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-12 07:53:58 -0500 (Mon, 12 Nov 2007)
New Revision: 3911
Modified:
trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml
Log:
RF-1184 - edit description
Modified: trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml 2007-11-12 12:41:54 UTC (rev 3910)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml 2007-11-12 12:53:58 UTC (rev 3911)
@@ -12,7 +12,7 @@
<imagedata fileref=""/>
</imageobject>
</mediaobject>
- <para>An <property>ordering list</property> is a component for ordering items in a list. This component provides possibilities to reorder a list and sort it on the client side.</para>
+ <para>An <property>orderingList</property> is a component for ordering items in a list. This component provides possibilities to reorder a list and sort it on the client side.</para>
</section>
<section>
<title>Key Features</title>
18 years, 5 months
JBoss Rich Faces SVN: r3910 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-12 07:41:54 -0500 (Mon, 12 Nov 2007)
New Revision: 3910
Modified:
trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
Log:
RF-1184 - Edit Details of Usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2007-11-12 12:32:58 UTC (rev 3909)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2007-11-12 12:41:54 UTC (rev 3910)
@@ -42,11 +42,9 @@
</emphasis> component consists of <property>
<emphasis>Item list</emphasis>
</property> element that displays a list of items. It has three different
- representations for a single element: <itemizedlist>
- <listitem>common</listitem>
- <listitem>selected</listitem>
- <listitem>active</listitem>
- </itemizedlist> Combination of these states is possible </para>
+ representations for a single element: common, selected, active. <para>Combination of
+ these states is possible</para>
+ </para>
<para> The <emphasis role="bold">
<property><rich:orderingList></property>
</emphasis> component provides to use <emphasis>
@@ -54,34 +52,39 @@
</emphasis> facet.</para>
<para>It's possible to define <property>
<emphasis>"optionalHeader"</emphasis>
- </property> facet. It has two possible types of representation: <itemizedlist>
- <listitem>sortable</listitem>
- <listitem>non-sortable</listitem>
- </itemizedlist>
- </para>
+ </property> facet. It has two possible types of representation: sortable and
+ non-sortable. </para>
<para> Also you can use<property>
<emphasis>"optionalFooter"</emphasis>
- </property> facet is an optional element.</para>
+ </property> facet.</para>
<!-- add simple and screenshot-->
+
+ <!-- ordering control set-->
<para>The <emphasis role="bold">
<property><rich:orderingList></property>
</emphasis> component provides the possibility to use <property>
<emphasis>"ordering controls set"</emphasis>
- </property>, which performs reordering. Every control has possibility to be disabled.
- The <emphasis role="bold">
- <property><rich:orderingList></property>
- </emphasis> component has a possibility to hide any of the controls by pairs:<itemizedlist>
- <listitem>"Up" and "Down"</listitem>
- <listitem>"Top" and "Bottom"</listitem>
- </itemizedlist>
- </para>
- <para> "topControl", "topControlDisabled",
- "bottomControl", "bottomControlDisabled",
- "upControl", "upControlDisabled",
- "downControl", "downControlDisabled" facets are used
- to replaces the default control with facets content. </para>
+ </property>, which performs reordering. Every control has possibility to be disabled. </para>
+ <para>
+ <property>
+ <emphasis>"topControl"</emphasis>
+ </property>, <property>
+ <emphasis>"topControlDisabled"</emphasis>
+ </property>, <property>
+ <emphasis>"bottomControl"</emphasis>
+ </property>, <property>
+ <emphasis>"bottomControlDisabled"</emphasis>
+ </property>, <property>
+ <emphasis>"upControl"</emphasis>
+ </property>, <property>
+ <emphasis>"upControlDisabled"</emphasis>
+ </property>, <property>
+ <emphasis>"downControl"</emphasis>
+ </property>, <property>
+ <emphasis>"downControlDisabled"</emphasis>
+ </property> facets are used to replaces the default control with facets content. </para>
<!-- attributes of component orderingList -->
@@ -107,85 +110,189 @@
selected. If the index from a set is out of bounds, it should be ignored. </para>
<para>Controls rendering is based on the <property>
<emphasis>"controlsType"</emphasis>
- </property> attribute. Possible types are <itemizedlist>
- <listitem>button</listitem>
- <listitem>link</listitem>
- <listitem>none</listitem>
- </itemizedlist></para>
+ </property> attribute. Possible types are button, link, none.</para>
+ <para>Example of page definition:</para>
+ <programlisting role="XML"><![CDATA[...
+<rich:orderingList controlType=”button”>
+ <f:facet name=”Top”>
+ <h:outputText value=”Move to top”>
+ </f:facet>
+<rich:orderingList>
+...
+]]></programlisting>
+
+ <para>The position of the controls relatively to a list could be customized with <itemizedlist>
+ <listitem>
+ <property>
+ <emphasis>controlsPosition</emphasis>
+ </property>attribute. Possible values: <itemizedlist>
+ <listitem>left - controls could be rendered to the left side of a list</listitem>
+ <listitem>right(default) controls could be rendered to the right side of a
+ list </listitem>
+ <listitem>top - controls could be rendered above the list </listitem>
+ <listitem>bottom - controls could be rendered below the list </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem><property>
+ <emphasis>controlsHorizontalAlign</emphasis>
+ </property>attribute. Possible values: <itemizedlist>
+ <listitem>left - controls could be rendered to the left side of a list</listitem>
+ <listitem>right(default) controls could be rendered to the right side of a
+ list</listitem>
+ <listitem>center - controls could be centered</listitem>
+
+ </itemizedlist>
+ </listitem>
+
+ <listitem><property>
+ <emphasis>controlsVerticalAlign </emphasis>
+ </property>attribute. Possible values: <itemizedlist>
+ <listitem>top - controls could be rendered aligned to top side of a list </listitem>
+ <listitem>bottom - controls could be rendered aligned to bottom side of a
+ list </listitem>
+ <listitem>center(default) - controls could be rendered centered relatively
+ to a list </listitem>
+
+ </itemizedlist>
+ </listitem>
+
+ <listitem><property>
+ <emphasis>controlsLayout </emphasis>
+ </property>attribute. Possible values: <itemizedlist>
+ <listitem>inline - controls defined one by one in line </listitem>
+ <listitem>block - controls defined in column </listitem>
+ <listitem/>
+ </itemizedlist>
+ </listitem>
+
+ </itemizedlist>
+ </para>
+
+ <para>The <emphasis role="bold">
+ <property><rich:orderingList></property>
+ </emphasis> component has a possibility to hide any of the controls by pairs using
+ following attributes: <itemizedlist>
+ <listitem><property>
+ <emphasis>"orderControlsVisible"</emphasis>
+ </property>attribute may have two values: true or false. If false
+ "Up" and "Down" controls couldn't be
+ displayed.</listitem>
+ <listitem><property>
+ <emphasis>"fastOrderControlsVisible"</emphasis>
+ </property>attribute may have two values: true or false. If false
+ "Top" and "Bottom" controls couldn't be
+ displayed</listitem>
+ </itemizedlist>
+ </para>
+
+
+
+ <para>The <property>
+ <emphasis>"captionLabel"</emphasis>
+ </property>attribute defines the text placed inside a caption.</para>
+
+ <para>The <property>
+ <emphasis>"disabled"</emphasis>
+ </property>attribute disables the whole component.</para>
+
+ <para>The component provides possibility to be customized using templating. The
+ customization could be performed by a layout definition nested into the component. 5
+ elements are provided to be defined inside template: {list}, {topControl},
+ {bottomControl}, {downCotrol}, {upControl}. <para>Thus the markup defined in the initial
+ picture could be defined as in the example placed below.</para>
+ </para>
+ <para>Example:</para>
+ <programlisting role="XML"><![CDATA[...
+
+<rich:orderingList>
+ <h:panelGrid columns=”2” columnClasses=”class1 class2”>
+ <h:outputText value=”{list}”/>
+ <h:panelGroup>
+ <h:outputText value=”{topControl}”/>
+ <h:outputText value=”{upControl}”/>
+ <h:outputText value=”{downControl}”/>
+ <h:outputText value=”{bottomControl}”/>
+ </h:panelGroup>
+ </h:panelGrid>
+</rich:orderingList>
+
+ ...]]>
+ </programlisting>
</section>
-
-<para>Keyboard usage</para>
- <table>
- <title>Keyboard usage for elements selection TO DO</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Keys and combinations </entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <!--Sorting API -->
- <row>
- <entry>CTRL+click</entry>
- <entry>Described in selection behaviour requirement</entry>
- </row>
- <row>
- <entry>SHIFT+click</entry>
- <entry>Described in selection behaviour requirement</entry>
- </row>
- <row>
- <entry>CTRL+A</entry>
- <entry>Selects all elements inside the list if some active element is
- already present in a list</entry>
- </row>
- <row>
- <entry>Space</entry>
- <entry>Inverts selection on the active element</entry>
- </row>
- <row>
- <entry>Up, Down arrows</entry>
- <entry>Changes the active elements to the next or previous in a list</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
+ <para>Keyboard usage</para>
+ <table>
+ <title>Keyboard usage for elements selection TO DO</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Keys and combinations </entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <!--Sorting API -->
+ <row>
+ <entry>CTRL+click</entry>
+ <entry>Described in selection behaviour requirement</entry>
+ </row>
+ <row>
+ <entry>SHIFT+click</entry>
+ <entry>Described in selection behaviour requirement</entry>
+ </row>
+ <row>
+ <entry>CTRL+A</entry>
+ <entry>Selects all elements inside the list if some active element is already
+ present in a list</entry>
+ </row>
+ <row>
+ <entry>Space</entry>
+ <entry>Inverts selection on the active element</entry>
+ </row>
+ <row>
+ <entry>Up, Down arrows</entry>
+ <entry>Changes the active elements to the next or previous in a list</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
- <table>
- <title>Keyboard usage for elements reordering</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Keys and combinations </entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <!--Sorting API -->
- <row>
- <entry>Top</entry>
- <entry>Moves selected set to the top of a list</entry>
- </row>
- <row>
- <entry>Bottom</entry>
- <entry>Moves selected set to the bottomof a list</entry>
- </row>
- <row>
- <entry>CTRL+Up arrow</entry>
- <entry>Moves selected item to one position uppert</entry>
- </row>
- <row>
- <entry>CTRL+Down arrow</entry>
- <entry>Moves selected item to one position lower</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <para>All the changes uses the same rules that defined in requirement for ordering with
- controls.</para>
+ <table>
+ <title>Keyboard usage for elements reordering</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Keys and combinations </entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <!--Sorting API -->
+ <row>
+ <entry>Top</entry>
+ <entry>Moves selected set to the top of a list</entry>
+ </row>
+ <row>
+ <entry>Bottom</entry>
+ <entry>Moves selected set to the bottomof a list</entry>
+ </row>
+ <row>
+ <entry>CTRL+Up arrow</entry>
+ <entry>Moves selected item to one position uppert</entry>
+ </row>
+ <row>
+ <entry>CTRL+Down arrow</entry>
+ <entry>Moves selected item to one position lower</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>All the changes uses the same rules that defined in requirement for ordering with
+ controls.</para>
+
<section>
<title>Drag-and-Drop support in the list</title>
<para> It's possible to drag items and drop to the position needed. </para>
@@ -202,13 +309,8 @@
<title>JavaScript API</title>
<para> Controls are accessible for developer on client-side using controls attribute of
JavaScript component instance. The value of the attribute is an associative array of
- controls keyed by the following strings: <itemizedlist>
- <listitem>"top"</listitem>
- <listitem>"up"</listitem>
- <listitem>"down"</listitem>
- <listitem>"bottom"</listitem>
- </itemizedlist>
- </para>
+ controls keyed by the following strings: "top",
+ "up", "down", "bottom".</para>
<table>
<title>JavaScript API</title>
<tgroup cols="3">
@@ -383,5 +485,43 @@
</tbody>
</tgroup>
</table>
+
+ <table>
+ <title>Classes names that define controls representations</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-ordering-controls</entry>
+ <entry>Could be applied to the whole group of the controls.</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-control-top</entry>
+ <entry>Defines class for Top control</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-control-bottom</entry>
+ <entry>Defines class for Bottom control</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-control-up</entry>
+ <entry>Defines class for Up control</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-control-down</entry>
+ <entry>Defines class for Down control</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-control-disabled</entry>
+ <entry>Defines a class for any control in a disabled state</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
</section>
</section>
18 years, 5 months
JBoss Rich Faces SVN: r3909 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-12 07:32:58 -0500 (Mon, 12 Nov 2007)
New Revision: 3909
Modified:
trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml
Log:
RF-1184 - Edit Key Features
Modified: trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml 2007-11-12 12:15:20 UTC (rev 3908)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.desc.xml 2007-11-12 12:32:58 UTC (rev 3909)
@@ -27,8 +27,7 @@
<listitem>Keyboard</listitem>
<listitem>Server side</listitem>
</itemizedlist>
- </listitem>
- <listitem>Possibility to drag and drop items to the required position</listitem>
+ </listitem>
</itemizedlist>
</section>
</section>
18 years, 5 months
JBoss Rich Faces SVN: r3908 - in trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html: scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-12 07:15:20 -0500 (Mon, 12 Nov 2007)
New Revision: 3908
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/scripts/OrderingList.js
Log:
management of controls
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-12 12:02:27 UTC (rev 3907)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-12 12:15:20 UTC (rev 3908)
@@ -121,11 +121,11 @@
}
.ol_control_shown {
+ visibility: visible;
+}
+.ol_control_hidden {
visibility: hidden;
}
-.ol_control_shown {
- visibity: visible;
-}
.body {
-moz-user-select: none;
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-12 12:02:27 UTC (rev 3907)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-12 12:15:20 UTC (rev 3908)
@@ -96,10 +96,10 @@
this.selectedItems.sort(this.compareByRowIndex);
var control;
//FIXME
- if (this.selectedItems.length <= 1) {
- for (var i = 0; i < this.controlList; i++) {
+ if ((this.shuttleItems.length <= 1) || (this.selectedItems.length == 0)) {
+ for (var i = 0; i < this.controlList.length; i++) {
control = this.controlList[i];
- this.controlList[i].doDisable();
+ control.doDisable();
}
} else if (this.selectedItems[0].rowIndex == 0) {
this.getControlByAction("first").doDisable();
@@ -112,9 +112,9 @@
this.getControlByAction("first").doEnable();
this.getControlByAction("up").doEnable();
} else {
- for (var i = 0; i < this.controlList; i++) {
+ for (var i = 0; i < this.controlList.length; i++) {
control = this.controlList[i];
- this.controlList[i].doEnable();
+ control.doEnable();
}
}
}
18 years, 5 months
JBoss Rich Faces SVN: r3907 - branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-12 07:02:27 -0500 (Mon, 12 Nov 2007)
New Revision: 3907
Modified:
branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
Log:
RF-1327
Modified: branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java
===================================================================
--- branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2007-11-12 12:01:54 UTC (rev 3906)
+++ branches/3.1.x/ui/message/src/main/java/org/richfaces/renderkit/RichMessageBaseRenderer.java 2007-11-12 12:02:27 UTC (rev 3907)
@@ -10,8 +10,6 @@
import javax.faces.application.FacesMessage.Severity;
import javax.faces.component.NamingContainer;
import javax.faces.component.UIComponent;
-import javax.faces.component.UIMessage;
-import javax.faces.component.UIMessages;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
@@ -328,7 +326,7 @@
boolean accept = false;
- if(acceptLevels.contains(ALL_NAME)){
+ if(acceptLevels.contains(ALL_NAME) || message == null){
return true;
}
18 years, 5 months