JBoss Rich Faces SVN: r3836 - in trunk/ui/panelbar/src/main: java/org/richfaces/renderkit/html and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-08 14:51:52 -0500 (Thu, 08 Nov 2007)
New Revision: 3836
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
trunk/ui/panelbar/src/main/templates/panelBar.jspx
Log:
add panelbar onitemchange client event (in the context of the RF-256)
Modified: trunk/ui/panelbar/src/main/config/component/panelbar.xml
===================================================================
--- trunk/ui/panelbar/src/main/config/component/panelbar.xml 2007-11-08 19:49:02 UTC (rev 3835)
+++ trunk/ui/panelbar/src/main/config/component/panelbar.xml 2007-11-08 19:51:52 UTC (rev 3836)
@@ -111,12 +111,22 @@
<name>onclick</name>
<classname>java.lang.String</classname>
<description>JavaScript code for call before header onclick</description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>selectedPanel</name>
<classname>java.lang.Object</classname>
<description>Attribure defines name of selected item</description>
- </property>
+ </property>
+ <property>
+ <name>onitemchange</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Event must occurs on than item has been changed
+ </description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+
&ui_component_attributes;
&header_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-08 19:49:02 UTC (rev 3835)
+++ trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2007-11-08 19:51:52 UTC (rev 3836)
@@ -22,22 +22,29 @@
package org.richfaces.renderkit.html;
import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
import javax.faces.el.ValueBinding;
import org.ajax4jsf.javascript.AjaxScript;
import org.ajax4jsf.javascript.ImageCacheScript;
+import org.ajax4jsf.javascript.JSFunction;
+import org.ajax4jsf.javascript.JSReference;
import org.ajax4jsf.javascript.PrototypeScript;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
+import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.ajax4jsf.resource.InternetResource;
import org.richfaces.component.UIPanelBar;
import org.richfaces.component.UIPanelBarItem;
import org.richfaces.event.SwitchablePanelSwitchEvent;
+import org.richfaces.renderkit.ScriptOptions;
public abstract class PanelBarRendererBase extends HeaderResourcesRendererBase {
@@ -118,4 +125,40 @@
}*/
}
+ protected List getPanelBarItems(FacesContext context,UIPanelBar panelBar){
+ List items = new ArrayList();
+ List children = panelBar.getChildren();
+ for (Iterator iterator = children.iterator(); iterator.hasNext();) {
+ UIComponent child = (UIComponent) iterator.next();
+ if(child instanceof UIPanelBarItem){
+ items.add(((UIPanelBarItem)child).getClientId(context));
+ }
+ }
+
+ return items;
+ }
+
+ public void encodeScript(FacesContext context, UIComponent component) throws IOException{
+
+ if(component instanceof UIPanelBar){
+ UIPanelBar panelBar = (UIPanelBar)component;
+
+ ScriptOptions options = new ScriptOptions(component);
+ options.addOption("onitemchange",panelBar.getAttributes().get("onitemchange"));
+ options.addOption("onclick", panelBar.getAttributes().get("onclick"));
+
+ StringBuffer script = new StringBuffer();
+ JSFunction function = new JSFunction("new Richfaces.PanelBar");
+ function.addParameter(panelBar.getClientId(context));
+ function.addParameter(options);
+ function.appendScript(script);
+
+ ResponseWriter writer = context.getResponseWriter();
+ writer.startElement(HTML.SCRIPT_ELEM, panelBar);
+ writer.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);
+ String outerScript = script.append(";").toString();
+ writer.write(outerScript);
+ writer.endElement(HTML.SCRIPT_ELEM);
+ }
+ }
}
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-08 19:49:02 UTC (rev 3835)
+++ trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-11-08 19:51:52 UTC (rev 3836)
@@ -5,12 +5,12 @@
Richfaces.PanelBar.prototype = {
- initialize: function(panelId, onclick) {
+ initialize: function(panelId, options) {
this.FF = (RichFaces.navigatorType() == RichFaces.FF)?true:false;
this.isIE = ((navigator.userAgent.toLowerCase().indexOf("msie")!=-1) || (navigator.userAgent.toLowerCase().indexOf("explorer")!=-1))?true:false;
this.panel=$(panelId); //+"_p"
-
+
if (!this.panel) {
return;
}
@@ -19,14 +19,15 @@
this.STEP=0;
this.slides=new Array();
this.ch=this.panel.clientHeight;
+ this.options = options;
- this.onclick = onclick;
+ this.onclick = options.onclick;
+ this.onitemchange = options.onitemchange;
this._attachBehaviors();
this.input=$(panelId+"_panelBarInput");
-
this.defaultIndex=this.findPanelById($F(panelId+"_panelBarInput"));
-
+
Event.observe(window,'load',this.handleOnLoad.bindAsEventListener(this));
this.showSlide(this.slides[this.defaultIndex]);
@@ -43,7 +44,6 @@
this.timer = setTimeout(this.handleOnLoad.bind(this), 100);
}
-
this.showSlide(this.slides[this.defaultIndex]);
},
@@ -71,6 +71,7 @@
},
showSlide: function(slide) {
+
if (this.current) this.current.hideContent();
var h=this.getContentHeight();
if (this.current) this.current.hideHeader();
@@ -82,10 +83,27 @@
}
slide.showContent();
this.current=slide;
+
+
// this.input.value=this.current.index;
this.input.value=this.current.item.id;
-
+ this.firstLoad = false;
},
+
+ onItemChange: function(event,slide){
+ var onitemchange = this.onitemchange;
+ var changeEvent = event;
+ if(onitemchange && onitemchange != ""){
+ var leftItem_id = this.current.item.id;
+ var enterItem_id = slide.item.id;
+ var panel_id = this.panel.id;
+ var func = new Function("event","panel_id","leftItem_id","enterItem_id",onitemchange);
+ var result = func(changeEvent,panel_id,leftItem_id,enterItem_id);
+ if (result != undefined && !result) {
+ return;
+ }
+ }
+ },
_attachBehaviors: function() {
var rows=this._getDirectChildrenByTag(this.panel,'DIV');
@@ -176,7 +194,7 @@
this.header.style.display="";
},
- headerOnClick: function() {
+ headerOnClick: function(event) {
if (this.onclickFunction){
var result = this.onclickFunction();
if (result != undefined && !result) {
@@ -187,7 +205,9 @@
if (this.content.style.display=="block") return;
//this.header.style.display="none";
//this.header_act.style.display="";
+ this.slidePanel.onItemChange(event,this);
this.slidePanel.showSlide(this);
+
this.slidePanel.panel.style.maxHeight="";
this.slidePanel.panel.style.minHeight="";
},
Modified: trunk/ui/panelbar/src/main/templates/panelBar.jspx
===================================================================
--- trunk/ui/panelbar/src/main/templates/panelBar.jspx 2007-11-08 19:49:02 UTC (rev 3835)
+++ trunk/ui/panelbar/src/main/templates/panelBar.jspx 2007-11-08 19:51:52 UTC (rev 3836)
@@ -13,14 +13,16 @@
<h:styles>css/panelbar.xcss</h:styles>
<f:clientid var="clientId" />
+
<div id="#{clientId}" class="dr-pnlbar rich-panelbar dr-pnlbar-b #{component.attributes['styleClass']}" style="padding: 0px; #{this:height(context, component)} #{this:width(context, component)} #{component.attributes['style']}">
<vcp:body>
- <f:call name="renderChildren" />
+ <f:call name="renderChildren"/>
</vcp:body>
+
<f:clientid var="clientId" />
<input type="hidden" name="#{clientId}" id="#{clientId}_panelBarInput"
value="#{this:expanded(context, component)}"/>
- <script type="text/javascript">new Richfaces.PanelBar("#{clientId}", "#{component.attributes['onclick']}");</script>
+ <f:call name="encodeScript"/>
</div>
</f:root>
18 years, 6 months
JBoss Rich Faces SVN: r3835 - in trunk/sandbox/ui/orderingList/src/main: java/org/richfaces/renderkit/html and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-08 14:49:02 -0500 (Thu, 08 Nov 2007)
New Revision: 3835
Added:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java
Modified:
trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
Log:
Icon images added to ordering list.
Added: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java (rev 0)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java 2007-11-08 19:49:02 UTC (rev 3835)
@@ -0,0 +1,129 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.renderkit.html.images;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics2D;
+import java.awt.RenderingHints;
+import java.util.Date;
+
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.resource.GifRenderer;
+import org.ajax4jsf.resource.InternetResourceBuilder;
+import org.ajax4jsf.resource.Java2Dresource;
+import org.ajax4jsf.resource.ResourceContext;
+import org.ajax4jsf.util.HtmlColor;
+import org.ajax4jsf.util.Zipper2;
+import org.richfaces.skin.Skin;
+import org.richfaces.skin.SkinFactory;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public abstract class OrderingListIconBase extends Java2Dresource {
+
+ public OrderingListIconBase() {
+ setRenderer(new GifRenderer());
+ setLastModified(new Date(InternetResourceBuilder.getInstance().getStartTime()));
+ }
+
+ abstract protected void paintImage(ResourceContext context, Graphics2D g2d, Color textColor);
+
+ protected void paint(ResourceContext context, Graphics2D g2d) {
+
+ int [] data = (int[]) restoreData(context);
+ Color textColor = new Color(data[0]);
+ Color backgroundColor = new Color(data[1]);
+
+ // TODO hans - Cosmetic changes for icons needed.
+ g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+ g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
+ g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
+
+ Dimension dim = getDimensions(context);
+ g2d.setColor(backgroundColor);
+ g2d.fillRect(0, 0, dim.width, dim.height);
+
+ if (textColor != null && backgroundColor != null && g2d != null) {
+ paintImage(context, g2d, textColor);
+ }
+
+ }
+
+ protected Dimension calculateDimensions(Object data){
+ return new Dimension(16, 16);
+ }
+
+ public Dimension getDimensions(FacesContext facesContext, Object data) {
+ return calculateDimensions(getDataToStore(facesContext, data));
+ }
+ protected Dimension getDimensions(ResourceContext resourceContext) {
+ return calculateDimensions(restoreData(resourceContext));
+ }
+
+ /**
+ * @param data - pass icon color and background color
+ */
+ protected Object getDataToStore(FacesContext context, Object data) {
+ Skin skin = SkinFactory.getInstance().getSkin(context);
+ Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(context);
+
+ int [] ret = new int[2];
+
+ Color color = null;
+
+ String skinParameter = "headerTextColor";
+ String color1 = (String) skin.getParameter(context, skinParameter);
+ if (null == color1 || "".equals(color1))
+ color1 = (String) defaultSkin.getParameter(context, skinParameter);
+
+ if (color1 == null) {
+ color1 = "#FFFFFF";
+ }
+
+ color = HtmlColor.decode(color1);
+
+ ret[0] = color.getRGB();
+
+ skinParameter = "headerBackgroundColor";
+ String color2 = (String) skin.getParameter(context, skinParameter);
+ if (null == color2 || "".equals(color2))
+ color2 = (String) defaultSkin.getParameter(context, skinParameter);
+
+ if (color2 == null) {
+ color2 = "#000000";
+ }
+
+ color = HtmlColor.decode(color2);
+ ret[1] = color.getRGB();
+
+ return ret;
+ }
+
+ public boolean isCacheable() {
+ return true;
+ }
+
+}
Added: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java (rev 0)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java 2007-11-08 19:49:02 UTC (rev 3835)
@@ -0,0 +1,66 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.renderkit.html.images;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+import org.ajax4jsf.resource.ResourceContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconBottom extends OrderingListIconBase {
+
+ @Override
+ protected void paintImage(ResourceContext context, Graphics2D g2d,
+ Color textColor) {
+ GeneralPath path = new GeneralPath();
+
+ Dimension dimension = getDimensions(context);
+ g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
+
+ g2d.setColor(textColor);
+
+ g2d.drawRect(31, 108, 67, 2);
+
+ g2d.translate(31,38);
+ path.moveTo(0,0);
+ path.lineTo(33,33);
+ path.lineTo(34,33);
+ path.lineTo(67,0);
+ path.closePath();
+ g2d.fill(path);
+
+ g2d.translate(0,35);
+ path.moveTo(0,0);
+ path.lineTo(33,33);
+ path.lineTo(34,33);
+ path.lineTo(67,0);
+ path.closePath();
+ g2d.fill(path);
+ }
+
+}
Added: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java (rev 0)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java 2007-11-08 19:49:02 UTC (rev 3835)
@@ -0,0 +1,57 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.renderkit.html.images;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics2D;
+import java.awt.RenderingHints;
+import java.awt.geom.GeneralPath;
+
+import org.ajax4jsf.resource.ResourceContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconDown extends OrderingListIconBase {
+
+ @Override
+ protected void paintImage(ResourceContext context, Graphics2D g2d,
+ Color textColor) {
+ GeneralPath path = new GeneralPath();
+
+ Dimension dimension = getDimensions(context);
+ g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
+
+ g2d.translate(31,54);
+ path.moveTo(0,0);
+ path.lineTo(33,33);
+ path.lineTo(34,33);
+ path.lineTo(67,0);
+ path.closePath();
+
+ g2d.setColor(textColor);
+ g2d.fill(path);
+ }
+
+}
Added: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java (rev 0)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java 2007-11-08 19:49:02 UTC (rev 3835)
@@ -0,0 +1,66 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.renderkit.html.images;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+import org.ajax4jsf.resource.ResourceContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconTop extends OrderingListIconBase {
+
+ @Override
+ protected void paintImage(ResourceContext context, Graphics2D g2d,
+ Color textColor) {
+ GeneralPath path = new GeneralPath();
+
+ Dimension dimension = getDimensions(context);
+ g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
+
+ g2d.setColor(textColor);
+
+ g2d.drawRect(31, 29, 67, 2);
+
+ g2d.translate(31,31);
+ path.moveTo(0,33);
+ path.lineTo(33,0);
+ path.lineTo(34,0);
+ path.lineTo(67,33);
+ path.closePath();
+ g2d.fill(path);
+
+ g2d.translate(0,35);
+ path.moveTo(0,33);
+ path.lineTo(33,0);
+ path.lineTo(34,0);
+ path.lineTo(67,33);
+ path.closePath();
+ g2d.fill(path);
+ }
+
+}
Added: trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java (rev 0)
+++ trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java 2007-11-08 19:49:02 UTC (rev 3835)
@@ -0,0 +1,56 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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.renderkit.html.images;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics2D;
+import java.awt.geom.GeneralPath;
+
+import org.ajax4jsf.resource.ResourceContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconUp extends OrderingListIconBase {
+
+ @Override
+ protected void paintImage(ResourceContext context, Graphics2D g2d,
+ Color textColor) {
+ GeneralPath path = new GeneralPath();
+
+ Dimension dimension = getDimensions(context);
+ g2d.scale(dimension.getHeight()/128,dimension.getHeight()/128);
+
+ g2d.translate(31,47);
+ path.moveTo(0,33);
+ path.lineTo(33,0);
+ path.lineTo(34,0);
+ path.lineTo(67,33);
+ path.closePath();
+
+ g2d.setColor(textColor);
+ g2d.fill(path);
+ }
+
+}
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-08 19:44:02 UTC (rev 3834)
+++ trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-08 19:49:02 UTC (rev 3835)
@@ -11,11 +11,30 @@
>
<h:styles>css/orderingList.xcss</h:styles>
- <h:scripts>
- scripts/SelectItem.js,scripts/LayoutManager.js,scripts/OrderingList.js
+ <h:scripts>
+ scripts/SelectItem.js,
+ scripts/OrderingList.js,
+ scripts/LayoutManager.js
</h:scripts>
- <f:clientId var="clientId"/>
+ <f:clientId var="clientId"/>
+
+ <f:resource
+ name="images/spacer.gif"
+ var="spacer" />
+ <f:resource
+ name="org.richfaces.renderkit.html.images.OrderingListIconDown"
+ var="downIcon" />
+ <f:resource
+ name="org.richfaces.renderkit.html.images.OrderingListIconUp"
+ var="upIcon" />
+ <f:resource
+ name="org.richfaces.renderkit.html.images.OrderingListIconTop"
+ var="topIcon" />
+ <f:resource
+ name="org.richfaces.renderkit.html.images.OrderingListIconBottom"
+ var="bottomIcon" />
+
<div id="#{clientId}" x:passThruWithExclusions="id">
<input id="#{clientId}focusKeeper" type="button" value="" style="position: absolute; left: -32767px;" name="focusKeeper"/>
<input id="#{clientId}valueKeeper" type="hidden" name="#{clientId}" value="#{component.submittedValueAsString}"/>
@@ -43,11 +62,23 @@
</tr>
</table>
<f:clientId var="clientId"/>
- <a id="#{clientId}sortLabel" href="#">Header</a><br/>
- <a id="#{clientId}up" href="#" >up</a><br/>
- <a id="#{clientId}down" href="#" >down</a><br/>
- <a id="#{clientId}first" href="#" >first</a><br/>
- <a id="#{clientId}last" href="#" >last</a>
+ <a id="#{clientId}sortLabel" href="#">Header</a>
+ <img src="#{spacer}" border="0" width="1" height="1"/>
+ <a id="#{clientId}up" href="#" >
+ <img src="#{upIcon}" border="0" />
+ </a>
+ <img src="#{spacer}" border="0" width="1" height="1"/>
+ <a id="#{clientId}down" href="#" >
+ <img src="#{downIcon}" border="0" />
+ </a>
+ <img src="#{spacer}" border="0" width="1" height="1"/>
+ <a id="#{clientId}first" href="#" >
+ <img src="#{topIcon}" border="0" />
+ </a>
+ <img src="#{spacer}" border="0" width="1" height="1"/>
+ <a id="#{clientId}last" href="#" >
+ <img src="#{bottomIcon}" border="0" />
+ </a>
</div>
<f:clientId var="cId"/>
<script type="text/javascript">
18 years, 6 months
JBoss Rich Faces SVN: r3834 - branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/state.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-08 14:44:02 -0500 (Thu, 08 Nov 2007)
New Revision: 3834
Modified:
branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/state/TreeState.java
Log:
http://jira.jboss.com/jira/browse/RF-1239
Modified: branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/state/TreeState.java
===================================================================
--- branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/state/TreeState.java 2007-11-08 18:01:17 UTC (rev 3833)
+++ branches/3.1.x/ui/tree/src/main/java/org/richfaces/component/state/TreeState.java 2007-11-08 19:44:02 UTC (rev 3834)
@@ -22,6 +22,7 @@
package org.richfaces.component.state;
import java.io.IOException;
+import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
@@ -41,7 +42,13 @@
* @author Nick Belaevski - nbelaevski(a)exadel.com created 23.11.2006
*
*/
-public class TreeState implements DataComponentState, TreeStateCommandsListener, StateHolder {
+public class TreeState implements DataComponentState, TreeStateCommandsListener, StateHolder, Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 9083705369340888171L;
+
private final class Visitor implements DataVisitor {
private TreeRowKey key;
private UITree tree;
@@ -99,6 +106,10 @@
private Set queuedCollapsedNodes = new HashSet();
+ public TreeState() {
+ super();
+ }
+
public TreeState(boolean stopInCollapsed) {
super();
this.stopInCollapsed = stopInCollapsed;
18 years, 6 months
JBoss Rich Faces SVN: r3833 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-11-08 13:01:17 -0500 (Thu, 08 Nov 2007)
New Revision: 3833
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
RF-1306
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-11-08 17:53:05 UTC (rev 3832)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-11-08 18:01:17 UTC (rev 3833)
@@ -449,12 +449,12 @@
var cols = this.getColumns();
for(var i = 0; i < cols.length; i++) {
var col = cols[i];
- var th = col.object;
+ var div = col.object.getElement().firstChild;
var icon = this._getCellElements(i)[1];
if (icon) {
- var newPosX = th.getWidth() - icon.getWidth();
- var newPosY = (th.getHeight() - icon.getHeight())/2;
+ var newPosX = div.clientWidth - icon.getWidth();
+ var newPosY = (div.clientHeight - icon.getHeight())/2;
newPosX = Math.floor(newPosX);
newPosY = Math.floor(newPosY);
18 years, 6 months
JBoss Rich Faces SVN: r3832 - trunk/sandbox/samples/orderingListDemo/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-08 12:53:05 -0500 (Thu, 08 Nov 2007)
New Revision: 3832
Modified:
trunk/sandbox/samples/orderingListDemo/src/main/webapp/WEB-INF/web.xml
Log:
Skin definition added to web.xml file.
Modified: trunk/sandbox/samples/orderingListDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/orderingListDemo/src/main/webapp/WEB-INF/web.xml 2007-11-08 16:30:52 UTC (rev 3831)
+++ trunk/sandbox/samples/orderingListDemo/src/main/webapp/WEB-INF/web.xml 2007-11-08 17:53:05 UTC (rev 3832)
@@ -13,6 +13,10 @@
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.SKIN</param-name>
+ <param-value>#{skinBean.skin}</param-value>
</context-param>
<!--
-->
18 years, 6 months
JBoss Rich Faces SVN: r3831 - 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-08 11:30:52 -0500 (Thu, 08 Nov 2007)
New Revision: 3831
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
trunk/docs/userguide/en/src/main/resources/images/calendar2.png
Log:
http://jira.jboss.com/jira/browse/RF-974 - improved description, added and described picture
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-11-08 16:29:34 UTC (rev 3830)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-11-08 16:30:52 UTC (rev 3831)
@@ -144,7 +144,7 @@
</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"/>
+ <a4j:support event="ondateselected" reRender="mainTable"/>
</rich:calendar>
...]]></programlisting>
<para><emphasis>
@@ -222,79 +222,80 @@
<property>"optionalFooter"</property>
</emphasis> facets. The following elements are available in these facets:
{currentMonthControl}, {nextMonthControl}, {nextYearControl}, {previousYearControl},
- {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">
- <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>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>
+ {previousMonthControl}, {todayControl}, {selectedDateControl}. </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. </para>
+ {elementId} elements. {weekDayLabel}, {weekDayLabelShort}, {weekDayNumber} elements could be
+ used for labels output, {isWeekend}, {elementId} - for additional processing in JavaScript
+ code.</para>
<para>Simple example is placed below.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
+<style>
+ .width100{
+ width:100%;
+ }
+ .talign{
+ text-align:center;
+ }
+</style>
+
+<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">
+ <f:facet name="header">
+ <h:panelGrid columns="2" width="100%" columnClasses="width100, fake">
+ <h:outputText value="{selectedDateControl}" />
+ <h:outputText value="{todayControl}" style="font-weight:bold; text-align:left"/>
+ </h:panelGrid>
+ </f:facet>
<f:facet name="weekDay">
- <h:panelGroup>
- <h:outputText value="{weekDayLabel}|"/>
+ <h:panelGroup style="width:60px; overflow:hidden;" layout="block">
+ <h:outputText value="{weekDayLabelShort}"/>
</h:panelGroup>
</f:facet>
<f:facet name="weekNumber">
- <h:panelGroup>
+ <h:panelGroup>
<h:outputText value="{weekNumber}" style="color:red"/>
</h:panelGroup>
- </f:facet>
+ </f:facet>
+ <f:facet name="footer">
+ <h:panelGrid columns="3" width="100%" columnClasses="fake, width100 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>
+ <h:outputText value="{day}"></h:outputText>
+</rich:calendar>
...]]></programlisting>
+
<para>This is a result:</para>
<figure>
- <title>Using <emphasis>
- <property>"weekNumber"</property>
- </emphasis> and <emphasis>
- <property>"weekDay"</property>
- </emphasis> facets</title>
+ <title>Using facets </title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/calendar3.png"/>
+ <imagedata fileref="images/calendar2.png"/>
</imageobject>
</mediaobject>
</figure>
+ <para>As it's shown on the picture below {selectedDateControl}, {todayControl} elements
+ are placed in the <emphasis>
+ <property>"header"</property>
+ </emphasis> facet, {previousMonthControl}, {currentMonthControl}, {nextMonthControl} - in the <emphasis>
+ <property>"footer"</property>
+ </emphasis> facet, {weekDayLabelShort} - in the <emphasis>
+ <property>"weekDay"</property>
+ </emphasis> facet, {nextYearControl}, {previousYearControl} are absent. Numbers of weeks are
+ red colored.</para>
+
<para>The example of using JavaScript API is placed below:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/resources/images/calendar2.png
===================================================================
(Binary files differ)
18 years, 6 months
JBoss Rich Faces SVN: r3828 - trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-08 11:05:32 -0500 (Thu, 08 Nov 2007)
New Revision: 3828
Modified:
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
Log:
http://jira.jboss.com/jira/browse/RF-1310
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-08 15:50:45 UTC (rev 3827)
+++ trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2007-11-08 16:05:32 UTC (rev 3828)
@@ -131,7 +131,7 @@
this.header=header;
this.header_act=header_act;
this.content=content;
- this.item.style.overflow="hidden";
+// this.item.style.overflow="hidden";
// this.header.style.overflowX="hidden";
// this.header.style.overflowY="visible";
// this.header.style.cursor="pointer";
18 years, 6 months
JBoss Rich Faces SVN: r3827 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-11-08 10:50:45 -0500 (Thu, 08 Nov 2007)
New Revision: 3827
Added:
trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
Log:
http://jira.jboss.com/jira/browse/RF-1184 - Writing Details of Usage, Definition of Custom Style Classes, JavaScript API of orderingList component
Added: trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/orderingList.xml 2007-11-08 15:50:45 UTC (rev 3827)
@@ -0,0 +1,283 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>rich:orderingList</keyword>
+ <keyword>orderingList</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>Here is a simple example as it could be used on a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:orderingList value=”#{bean.list}” var=”list”>
+ <rich:column>
+ <h:outputText value=”#{list.text}”>
+ </rich:column>
+ <rich:orderingList>
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.OrderingList;
+...
+HtmlOrderingList myOrderingList = new HtmlOrderingList();
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Details of Usage</title>
+ <para>The <property>orderingList</property> component consists of <property>
+ <emphasis>Item list</emphasis></property> element,
+ which 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>
+
+ <para>
+ The
+ <property><rich:orderingList></property> component provides to use
+ <property>caption</property> facet defined with an end developer.
+ </para>
+
+ <para>It's possible to define
+ <property><emphasis>"header"</emphasis>
+ </property> facet. It has two possible
+ types of representation: <itemizedlist>
+ <listitem>sortable</listitem>
+ <listitem>non-sortable</listitem>
+ </itemizedlist>
+ </para>
+
+ <para>
+ <property>
+ IAlso you can use<property><emphasis>"footer"</emphasis></property>/ facet
+ </property> is an optional element defined with an end developer
+ </para>
+
+ <para>The <property><rich:orderingList></property> component provides the possibility to use
+ <property>
+ <emphasis>"ordering controls set"</emphasis></property>, which performs reordering. Every control has possibility
+ to be disabled. All controls are disabled when the whole component is disabled. The
+ 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> The <property>
+ <emphasis>"value"</emphasis>
+ </property> and <property>
+ <emphasis>"var"</emphasis>
+ </property> attributes are used to access the values of a list. Example of page
+ definition: <programlisting role="XML"><![CDATA[...
+ <rich:orderingList value=”#{bean.list}” var=”list”>
+ <f:facet name=header><h:outputText value=”Header1”/></f:facet>
+ <rich:column>
+ <h:outputText value=”#{list.text}”>
+ </rich:column>
+ <rich:orderingList>
+...]]>
+ </programlisting>
+ </para>
+ </section>
+ <section>
+ <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>
+ <table>
+ <title>JavaScript API</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Function</entry>
+ <entry>Description</entry>
+ <entry>Element</entry>
+ </row>
+ </thead>
+ <tbody>
+ <!--Sorting API -->
+ <row>
+ <entry>doSortAscending()</entry>
+ <entry>Invert current sorting</entry>
+ <entry>Component</entry>
+ </row>
+ <row>
+ <entry>doSortDescending()</entry>
+ <entry/>
+ <entry>Component</entry>
+ </row>
+ <row>
+ <entry>doSort()</entry>
+ <entry/>
+ <entry>Component</entry>
+ </row>
+ <!--Controls common API -->
+ <row>
+ <entry>doHide()</entry>
+ <entry/>
+ <entry>Any Ordering control</entry>
+ </row>
+ <row>
+ <entry>doShow()</entry>
+ <entry/>
+ <entry>Any Ordering control</entry>
+ </row>
+ <row>
+ <entry>isShown()</entry>
+ <entry/>
+ <entry>Any Ordering control</entry>
+ </row>
+ <row>
+ <entry>doEnable()</entry>
+ <entry/>
+ <entry>Any Ordering control</entry>
+ </row>
+ <row>
+ <entry>doDisable()</entry>
+ <entry/>
+ <entry>Any Ordering control</entry>
+ </row>
+ <row>
+ <entry>isEnabled()</entry>
+ <entry/>
+ <entry>Any Ordering control</entry>
+ </row>
+ <!--List managing API -->
+ <row>
+ <entry>moveUp()</entry>
+ <entry/>
+ <entry>Any Item</entry>
+ </row>
+ <row>
+ <entry>moveDown()</entry>
+ <entry/>
+ <entry>Any Item</entry>
+ </row>
+ <row>
+ <entry>moveTop()</entry>
+ <entry/>
+ <entry>Any Item</entry>
+ </row>
+ <row>
+ <entry>moveBottom()</entry>
+ <entry/>
+ <entry>Any Item</entry>
+ </row>
+ <row>
+ <entry>getSelection()</entry>
+ <entry/>
+ <entry>Any Item</entry>
+ </row>
+ <row>
+ <entry>getItems()</entry>
+ <entry/>
+ <entry>Any Item</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </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> Default style classes are mapped on <emphasis>
+ <property>skin parameters.</property>
+ </emphasis></para>
+ </section>
+ <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>Style classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="" scalefit="1"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <table>
+ <title>Classes names that define a rows representations</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-ordering-list-row</entry>
+ <entry>Defines a default class for any item row</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-list-row-selected</entry>
+ <entry>Defines class to be added to selected item rows</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-list-row-active</entry>
+ <entry>Defines class to be added to active item rows</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-list-cell-disabled</entry>
+ <entry>Defines a class for row in disabled state</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Classes names that define a rows representations</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-ordering-list-item-cell</entry>
+ <entry>Defines a default class for any item cell</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-list-item-cell-selected</entry>
+ <entry>Defines class to be added to selected item cells</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-list-item-cell-active</entry>
+ <entry>Defines class to be added to active item cells</entry>
+ </row>
+ <row>
+ <entry>rich-ordering-list-cell-disabled</entry>
+ <entry>Defines a class for cell in disabled state</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+</section>
18 years, 6 months