JBoss Rich Faces SVN: r6398 - trunk/sandbox/ui/inplaceSelect/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 06:37:24 -0500 (Thu, 28 Feb 2008)
New Revision: 6398
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
add hover behavior
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-28 11:33:42 UTC (rev 6397)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-28 11:37:24 UTC (rev 6398)
@@ -143,8 +143,8 @@
SELECTED : 'rich-inplace-select-item rich-inplace-select-font rich-inplace-select-selected-item #{itemSelectedClass}'
}
},
- COMPONENT : {CHANGED : {NORMAL : 'rich-inplace rich-inplace-select-view rich-inplace-select-changed #{component.attributes["changedClass"]}', HOVERED : '#{component.attributes["changedHoverClass"]}'},
- VIEW : {NORMAL : 'rich-inplace rich-inplace-select-view #{component.attributes["viewClass"]}', HOVERED : '#{component.attributes["viewHoverClass"]}'},
+ COMPONENT : {CHANGED : {NORMAL : 'rich-inplace rich-inplace-select-view rich-inplace-select-changed #{component.attributes["changedClass"]}', HOVERED : 'rich-inplace-select-changed-hover #{component.attributes["changedHoverClass"]}'},
+ VIEW : {NORMAL : 'rich-inplace rich-inplace-select-view #{component.attributes["viewClass"]}', HOVERED : 'rich-inplace-select-view-hover #{component.attributes["viewHoverClass"]}'},
EDITABLE : 'rich-inplace rich-inplace-select-edit #{component.attributes["editClass"]}'
}
};
17 years, 10 months
JBoss Rich Faces SVN: r6397 - in trunk/sandbox/ui/fileUpload/src/main: resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-02-28 06:33:42 -0500 (Thu, 28 Feb 2008)
New Revision: 6397
Added:
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgGradient.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgLightGradient.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonPressedBgGradient.java
Removed:
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadAddIcon.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadClearIcon.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadStartIcon.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadHeaderBg.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadPressedBtnBg.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadStopIcon.java
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/OneColorBasedResource.java
Modified:
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
Log:
skinning
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadAddIcon.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadAddIcon.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadAddIcon.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,51 +0,0 @@
-/**
- * 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.org.jboss.seam.ui.renderkit.html.images;
-
-import static org.richfaces.renderkit.html.images.ColorUtils.adjustLightness;
-
-import java.awt.GradientPaint;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
-import org.ajax4jsf.resource.ResourceContext;
-
-public class BaseFileUploadAddIcon extends OneColorBasedResource {
-
- public BaseFileUploadAddIcon(String basicColorParamName) {
- super(16, 16, basicColorParamName);
- }
-
- /**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
- */
- protected void paint(ResourceContext context, Graphics2D g2d) {
- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- g2d.setColor(getBasicColor());
- g2d.fillPolygon(new int[] { 2, 6, 6, 10, 10, 14, 14, 10, 10, 6, 6, 2 },
- new int[] { 6, 6, 2, 2, 6, 6, 10, 10, 14, 14, 10, 10 }, 12);
- g2d.setPaint(new GradientPaint(0, 4, adjustLightness(getBasicColor(), 0.2f), 0, 10, adjustLightness(getBasicColor(), 0.05f)));
- g2d.fillPolygon(new int[] { 3, 6, 6, 7, 7, 9, 9, 10, 10, 13, 13, 10, 10, 6, 6, 3 },
- new int[] { 7, 7, 6, 6, 3, 3, 6, 6, 7, 7, 9, 9, 10, 10, 9, 9 }, 16);
- }
-
-}
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadClearIcon.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadClearIcon.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadClearIcon.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,34 +0,0 @@
-package org.richfaces.org.jboss.seam.ui.renderkit.html.images;
-
-
-import java.awt.GradientPaint;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
-import org.ajax4jsf.resource.ResourceContext;
-
-import static org.richfaces.renderkit.html.images.ColorUtils.adjustLightness;
-
-public class BaseFileUploadClearIcon extends OneColorBasedResource {
-
- public BaseFileUploadClearIcon(String basicColorParamName) {
- super(16, 16, basicColorParamName);
- }
-
- /**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
- */
- protected void paint(ResourceContext context, Graphics2D g2d) {
- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- g2d.setPaint(new GradientPaint(0, 4, adjustLightness(getBasicColor(), 0.2f), 0, 13, getBasicColor()));
- g2d.drawLine(5, 4, 13, 12);
- g2d.drawLine(4, 5, 12, 13);
- g2d.drawLine(5, 5, 12, 12);
-
- g2d.drawLine(4, 12, 12, 4);
- g2d.drawLine(5, 13, 13, 5);
- g2d.drawLine(5, 12, 12, 5);
- }
-
-}
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadStartIcon.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadStartIcon.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/BaseFileUploadStartIcon.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,30 +0,0 @@
-package org.richfaces.org.jboss.seam.ui.renderkit.html.images;
-
-import static org.richfaces.renderkit.html.images.ColorUtils.adjustLightness;
-
-import java.awt.GradientPaint;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
-import org.ajax4jsf.resource.ResourceContext;
-
-public class BaseFileUploadStartIcon extends OneColorBasedResource {
-
- public BaseFileUploadStartIcon(String basicColorParamName) {
- super(16, 16, basicColorParamName);
- }
-
- /**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
- */
- protected void paint(ResourceContext context, Graphics2D g2d) {
- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- g2d.setColor(getBasicColor());
- g2d.fillPolygon(new int[] { 6, 12, 5, 5, 6 }, new int[] { 2, 8, 8, 6, 6 }, 5);
- g2d.setPaint(new GradientPaint(0, 9, adjustLightness(getBasicColor(), 0.05f), 0, 15, adjustLightness(getBasicColor(), 0.2f)));
- g2d.fillPolygon(new int[] { 6, 12, 5, 5, 6 }, new int[] { 14, 8, 8, 10, 10 }, 5);
- g2d.setPaint(new GradientPaint(0, 4, adjustLightness(getBasicColor(), 0.2f), 0, 10, adjustLightness(getBasicColor(), 0.05f)));
- g2d.fillPolygon(new int[] { 7, 11, 11, 6, 6, 7 }, new int[] { 4, 8, 9, 9, 7, 7 }, 6);
- }
-}
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadHeaderBg.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadHeaderBg.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadHeaderBg.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,30 +0,0 @@
-package org.richfaces.org.jboss.seam.ui.renderkit.html.images;
-
-import static org.richfaces.renderkit.html.images.ColorUtils.adjustLightness;
-
-import java.awt.GradientPaint;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
-import org.ajax4jsf.resource.ResourceContext;
-
-public class FileUploadHeaderBg extends OneColorBasedResource {
-
- /**
- * <P>
- * No args constructor.
- * </p>
- */
- public FileUploadHeaderBg() {
- super(16, 16, "");
- }
-
- /**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
- */
- protected void paint(ResourceContext context, Graphics2D g2d) {
- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- g2d.setPaint(new GradientPaint(0, 0, adjustLightness(getBasicColor(), 0.2f), 0, 16, getBasicColor()));
- }
-}
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadPressedBtnBg.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadPressedBtnBg.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadPressedBtnBg.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,30 +0,0 @@
-package org.richfaces.org.jboss.seam.ui.renderkit.html.images;
-
-import static org.richfaces.renderkit.html.images.ColorUtils.adjustLightness;
-
-import java.awt.GradientPaint;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
-import org.ajax4jsf.resource.ResourceContext;
-
-public class FileUploadPressedBtnBg extends OneColorBasedResource {
-
- /**
- * <P>
- * No args constructor.
- * </p>
- */
- public FileUploadPressedBtnBg() {
- super(16, 16, "");
- }
-
- /**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
- */
- protected void paint(ResourceContext context, Graphics2D g2d) {
- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- g2d.setPaint(new GradientPaint(0, 0, getBasicColor(), 0, 16, adjustLightness(getBasicColor(), 0.2f)));
- }
-}
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadStopIcon.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadStopIcon.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/FileUploadStopIcon.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,34 +0,0 @@
-package org.richfaces.org.jboss.seam.ui.renderkit.html.images;
-
-import static org.richfaces.renderkit.html.images.ColorUtils.adjustLightness;
-import static org.richfaces.renderkit.html.images.ColorUtils.overwriteAlpha;
-
-import java.awt.GradientPaint;
-import java.awt.Graphics2D;
-import java.awt.RenderingHints;
-
-import org.ajax4jsf.resource.Java2Dresource;
-import org.ajax4jsf.resource.ResourceContext;
-
-public class FileUploadStopIcon extends OneColorBasedResource {
-
- /**
- * <P>
- * No args constructor.
- * </p>
- */
- public FileUploadStopIcon() {
- super(16, 16, "");
- }
-
- /**
- * @see Java2Dresource#paint(ResourceContext, Graphics2D)
- */
- protected void paint(ResourceContext context, Graphics2D g2d) {
- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- g2d.setPaint(new GradientPaint(0, 4, adjustLightness(getBasicColor(), -0.3f) , 0, 13, getBasicColor()));
- g2d.fillRect(4, 4, 10, 10);
- g2d.setPaint(new GradientPaint(0, 5, overwriteAlpha(adjustLightness(getBasicColor(), 0.3f), 0.6f), 0, 10, overwriteAlpha(getBasicColor(), 0.6f)));
- g2d.fillRect(5, 5, 8, 7);
- }
-}
Deleted: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/OneColorBasedResource.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/OneColorBasedResource.java 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/OneColorBasedResource.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -1,96 +0,0 @@
-package org.richfaces.org.jboss.seam.ui.renderkit.html.images;
-
-import java.awt.Color;
-import java.awt.Dimension;
-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.SkinFactory;
-
-public class OneColorBasedResource extends Java2Dresource {
-
- private Dimension dimension;
-
- private String basicColorParamName;
-
- private Color basicColor;
-
- public OneColorBasedResource(int width, int height, final String basicColorParamName) {
- this.basicColorParamName = basicColorParamName;
- this.dimension = new Dimension(width, height);
- setRenderer(new GifRenderer());
- setLastModified(new Date(InternetResourceBuilder.getInstance().getStartTime()));
- }
-
- /**
- * @see Java2Dresource#getDimensions(ResourceContext)
- */
- protected Dimension getDimensions(ResourceContext resourceContext) {
- return dimension;
- }
-
- /**
- * @see Java2Dresource#getDimensions(FacesContext, Object)
- */
- public Dimension getDimensions(FacesContext facesContext, Object data) {
- return dimension;
- }
-
- /**
- * @see Java2Dresource#isCacheable(ResourceContext)
- */
- public boolean isCacheable(ResourceContext ctx) {
- return true;
- }
-
- /**
- * Gets value of basicColor field.
- * @return value of basicColor field
- */
- public Color getBasicColor() {
- return basicColor;
- }
-
- /**
- * @see InternetResourceBase#getDataToStore(FacesContext, Object)
- */
- protected Object getDataToStore(FacesContext context, Object data) {
- byte[] retVal = null;
- if (basicColor == null) {
- basicColor = getColorValueParameter(context, basicColorParamName);
- }
-
- retVal = new byte[3 * 1];
- new Zipper2(retVal).addColor(basicColor);
-
- return retVal;
- }
-
- /**
- * @see InternetResourceBase#deserializeData(byte[])
- */
- protected Object deserializeData(byte[] objectArray) {
- if (objectArray != null) {
- Zipper2 zipper2 = new Zipper2(objectArray);
- basicColor = zipper2.nextColor();
- }
-
- return objectArray;
- }
-
- private Color getColorValueParameter(FacesContext context, String name) {
- Color retVal = null;
- String color = (String) SkinFactory.getInstance().getSkin(context).getParameter(context, name);
- if (color != null && !color.trim().equals("")) {
- retVal = HtmlColor.decode(color);
- }
- return retVal;
- }
-}
Added: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgGradient.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgGradient.java (rev 0)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgGradient.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -0,0 +1,30 @@
+/**
+ * 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.org.jboss.seam.ui.renderkit.html.images;
+
+import org.richfaces.renderkit.html.BaseGradient;
+
+public class UploadButtonBgGradient extends BaseGradient {
+
+ public UploadButtonBgGradient() {
+ super(8, 18, 18, "additionalBackgroundColor", "trimColor");
+ }
+}
Property changes on: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgGradient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgLightGradient.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgLightGradient.java (rev 0)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgLightGradient.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -0,0 +1,30 @@
+/**
+ * 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.org.jboss.seam.ui.renderkit.html.images;
+
+import org.richfaces.renderkit.html.BaseGradient;
+
+public class UploadButtonBgLightGradient extends BaseGradient {
+
+ public UploadButtonBgLightGradient() {
+ super(8, 18, 18, "additionalBackgroundColor", "headerGradientColor");
+ }
+}
\ No newline at end of file
Property changes on: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonBgLightGradient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonPressedBgGradient.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonPressedBgGradient.java (rev 0)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonPressedBgGradient.java 2008-02-28 11:33:42 UTC (rev 6397)
@@ -0,0 +1,30 @@
+/**
+ * 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.org.jboss.seam.ui.renderkit.html.images;
+
+import org.richfaces.renderkit.html.BaseGradient;
+
+public class UploadButtonPressedBgGradient extends BaseGradient {
+
+ public UploadButtonPressedBgGradient() {
+ super(7, 15, 15, "additionalBackgroundColor", "trimColor");
+ }
+}
Property changes on: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/html/images/UploadButtonPressedBgGradient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-02-28 11:28:47 UTC (rev 6396)
+++ trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/css/fileUpload.xcss 2008-02-28 11:33:42 UTC (rev 6397)
@@ -106,11 +106,11 @@
<u:selector name=".upload_button">
<u:style name="background-repeat" value="repeat-x" />
<u:style name="background-position" value="top left" />
- <u:style name="background-color" value="#C6D6EA" />
+ <u:style name="background-color" skin="trimColor" />
<u:style name="padding" value="2px" />
<u:style name="cursor" value="pointer" />
<u:style name="background-image">
- <f:resource f:key="/org/richfaces/renderkit/html/images/bg_header.png" />
+ <f:resource f:key="org.richfaces.org.jboss.seam.ui.renderkit.html.images.UploadButtonBgGradient" />
</u:style>
</u:selector>
@@ -118,12 +118,12 @@
<u:selector name=".upload_button_light">
<u:style name="background-repeat" value="repeat-x" />
<u:style name="background-position" value="top left" />
- <u:style name="background-color" value="#C6D6EA" />
+ <u:style name="background-color" skin="trimColor" />
<u:style name="border" value="1px solid" />
<u:style name="cursor" value="pointer" />
<u:style name="padding" value="1px" />
<u:style name="background-image">
- <f:resource f:key="/org/richfaces/renderkit/html/images/bg_header.png" />
+ <f:resource f:key="org.richfaces.org.jboss.seam.ui.renderkit.html.images.UploadButtonBgLightGradient" />
</u:style>
<u:style name="border-color" skin="selectControlColor" />
</u:selector>
@@ -131,13 +131,14 @@
<u:selector name=".upload_button_press">
<u:style name="background-image">
- <f:resource f:key="/org/richfaces/renderkit/html/images/bg_press.png" />
+ <f:resource f:key="org.richfaces.org.jboss.seam.ui.renderkit.html.images.UploadButtonPressedBgGradient" />
</u:style>
<u:style name="border-color" skin="selectControlColor" />
<u:style name="border" value="1px solid" />
<u:style name="padding" value="2px 0px 0px 2px" />
<u:style name="background-repeat" value="repeat-x" />
<u:style name="background-position" value="top left" />
+ <u:style name="background-color" skin="additionalBackgroundColor" />
</u:selector>
<u:selector name=".upload_ico_add">
17 years, 10 months
JBoss Rich Faces SVN: r6396 - in trunk/sandbox/ui/inplaceSelect/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 06:28:47 -0500 (Thu, 28 Feb 2008)
New Revision: 6396
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
remove applyFromControlsOnly attr
Modified: trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-28 11:21:47 UTC (rev 6395)
+++ trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-28 11:28:47 UTC (rev 6396)
@@ -86,13 +86,7 @@
<description></description>
<defaultvalue><![CDATA["right"]]></defaultvalue>
</property>
- <property>
- <name>applyFromControlsOnly</name>
- <classname>boolean</classname>
- <description></description>
- <defaultvalue>false</defaultvalue>
- </property>
- <property>
+ <property>
<name>oneditactivation</name>
<classname>java.lang.String</classname>
<description></description>
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-28 11:21:47 UTC (rev 6395)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-28 11:28:47 UTC (rev 6396)
@@ -151,7 +151,6 @@
var richInplaceSelAttributes = {defaultLabel : '#{component.attributes["defaultLabel"]}',
showControls : #{component.attributes["showControls"]},
- applyFromControlsOnly : #{component.attributes["applyFromControlsOnly"]},
editEvent : '#{component.attributes["editEvent"]}',
verticalPosition : '#{component.attributes["controlsVerticalPosition"]}',
horizontalPosition : '#{component.attributes["controlsHorizontalPosition"]}',
17 years, 10 months
JBoss Rich Faces SVN: r6395 - in trunk/sandbox/ui/inplaceInput/src: main/java/org/richfaces/renderkit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 06:21:47 -0500 (Thu, 28 Feb 2008)
New Revision: 6395
Modified:
trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java
Log:
fix test, remove applyFromControlsOnly attr
Modified: trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-28 10:48:33 UTC (rev 6394)
+++ trunk/sandbox/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-02-28 11:21:47 UTC (rev 6395)
@@ -71,12 +71,6 @@
<defaultvalue>false</defaultvalue>
</property>
<property>
- <name>applyFromControlsOnly</name>
- <classname>boolean</classname>
- <description></description>
- <defaultvalue>false</defaultvalue>
- </property>
- <property>
<name>editEvent</name>
<classname>java.lang.String</classname>
<description></description>
Modified: trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-02-28 10:48:33 UTC (rev 6394)
+++ trunk/sandbox/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-02-28 11:21:47 UTC (rev 6395)
@@ -117,7 +117,6 @@
ScriptOptions options = new ScriptOptions(component);
options.addOption("defaultLabel");
options.addOption("showControls");
- options.addOption("applyFromControlsOnly");
options.addOption("editEvent");
options.addOption("selectOnEdit");
options.addOption("verticalPosition", component.getAttributes().get("controlsVerticalPosition"));
Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-28 10:48:33 UTC (rev 6394)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-02-28 11:21:47 UTC (rev 6395)
@@ -125,7 +125,7 @@
return;
}
- if (!this.attributes.applyFromControlsOnly) {
+ if (!this.attributes.showControls) {
this.inputProcessing();
}
},
Modified: trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java 2008-02-28 10:48:33 UTC (rev 6394)
+++ trunk/sandbox/ui/inplaceInput/src/test/java/org/richfaces/component/InplaceInputComponentTest.java 2008-02-28 11:21:47 UTC (rev 6395)
@@ -26,6 +26,8 @@
static {
javaScripts.add("a4j_3_2_0-SNAPSHOTorg.ajax4jsf.javascript.PrototypeScript");
javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/inplaceinput.js");
+ javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/utils.js");
+
}
public InplaceInputComponentTest(String name) {
@@ -72,8 +74,6 @@
if (item.getFirstChild() != null) {
String scriptBodyString = item.getFirstChild().toString();
assertTrue(scriptBodyString.contains("Richfaces.InplaceInput"));
- assertTrue(scriptBodyString.contains("Richfaces.InplaceInput.CLASSES"));
-
}
if (StringUtils.isNotBlank(srcAttr)) {
boolean found = false;
17 years, 10 months
JBoss Rich Faces SVN: r6394 - trunk/ui/dataTable/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-02-28 05:48:33 -0500 (Thu, 28 Feb 2008)
New Revision: 6394
Added:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
Rendering of table headers. Some optimization.
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-02-28 10:40:04 UTC (rev 6393)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-02-28 10:48:33 UTC (rev 6394)
@@ -138,6 +138,10 @@
throws IOException {
int t_colCount = 0;
String spacerUrl = getResource(SPACER_PATH).getUri(context, null);
+
+ HeaderEncodeStrategy richEncodeStrategy = new RichHeaderEncodeStrategy();
+ HeaderEncodeStrategy simpleEncodeStrategy = new SimpleHeaderEncodeStrategy();
+
while (headers.hasNext()) {
UIComponent column = (UIComponent) headers.next();
if((Integer)column.getAttributes().get("colspan")!=null){
@@ -158,65 +162,21 @@
writer.writeAttribute("scope", "col", null);
getUtils().encodeAttribute(context, column, "colspan");
- boolean richHeader = column instanceof org.richfaces.component.UIColumn
- && "header".equals(facetName);
boolean sortableColumn = column.getValueExpression("comparator") != null
|| column.getValueExpression("sortBy") != null;
- if (richHeader) {
- org.richfaces.component.UIColumn col =
- (org.richfaces.component.UIColumn) column;
- String clientId = col.getClientId(context) + facetName;
- writer.writeAttribute("id", clientId, null);
-
- writer.startElement(HTML.DIV_ELEM, column);
-
- if (sortableColumn) {
- if (col.isSelfSorted()) {
- writer.writeAttribute(HTML.onclick_ATTRIBUTE, buildAjaxFunction(context, column, true)
- .toString(), null);
- writer.writeAttribute(HTML.class_ATTRIBUTE, "dr-table-cursor-pointer", null);
- }
- writer.startElement(HTML.SPAN_ELEM, column);
- String spanClass = "";
- if (Ordering.ASCENDING.equals(col.getSortOrder())) {
- spanClass = "dr-table-header-sort-up dr-table-sortable-header";
- } else if (Ordering.DESCENDING.equals(col.getSortOrder())) {
- spanClass = "dr-table-header-sort-down dr-table-sortable-header";
- }
- writer.writeAttribute(HTML.class_ATTRIBUTE, spanClass, null);
- }
- }
+ HeaderEncodeStrategy strategy = (column instanceof org.richfaces.component.UIColumn
+ && "header".equals(facetName)) ? richEncodeStrategy : simpleEncodeStrategy;
+ strategy.encodeBegin(context, writer, column, facetName, sortableColumn);
+
UIComponent facet = column.getFacet(facetName);
if (facet != null) {
renderChild(context, facet);
}
- if (richHeader) {
- org.richfaces.component.UIColumn col =
- (org.richfaces.component.UIColumn) column;
- if (sortableColumn) {
- if (Ordering.ASCENDING.equals(col.getSortOrder()) ||
- Ordering.DESCENDING.equals(col.getSortOrder())) {
- writer.startElement(HTML.IMG_ELEMENT, column);
- writer.writeAttribute(HTML.src_ATTRIBUTE, spacerUrl, null);
- writer.writeAttribute(HTML.width_ATTRIBUTE, "16", null);
- writer.endElement(HTML.IMG_ELEMENT);
- }
- writer.endElement(HTML.SPAN_ELEM);
- }
-
- writer.endElement(HTML.DIV_ELEM);
-
- if (col.getFilterMethod() == null
- && col.getValueExpression("filterExpression") == null
- && col.getValueExpression("filterBy") != null) {
-
- writer.startElement(HTML.DIV_ELEM, column);
- addInplaceInput(context, column, buildAjaxFunction(context, column, false));
- writer.endElement(HTML.DIV_ELEM);
- }
- }
+
+ strategy.encodeEnd(context, writer, column, facetName, sortableColumn, spacerUrl);
+
writer.endElement(element);
@@ -520,9 +480,10 @@
}
}
- protected void addInplaceInput(FacesContext context, UIComponent column, StringBuffer buffer)
- throws IOException {
- UIInput filterValueInput = (UIInput)column.getFacet(FILTER_INPUT_FACET_NAME);
+ protected void addInplaceInput(FacesContext context, UIComponent column,
+ StringBuffer buffer) throws IOException {
+ UIInput filterValueInput = (UIInput) column
+ .getFacet(FILTER_INPUT_FACET_NAME);
boolean inplaceInput = true;
if (null == filterValueInput) {
try {
@@ -536,17 +497,17 @@
column.getFacets().put(FILTER_INPUT_FACET_NAME, filterValueInput);
}
String onkeydownEvent = inplaceInput ? "oninputkeydown" : "onkeydown";
-
+
filterValueInput.getAttributes().put("onchange", buffer.toString());
filterValueInput.getAttributes().put(onkeydownEvent, "RichFaces.blurFilterInput(event);");
filterValueInput.setValue(column.getAttributes().get("filterValue"));
-
+
getUtils().encodeBeginFormIfNessesary(context, column);
renderChild(context, filterValueInput);
getUtils().encodeEndFormIfNessesary(context, column);
}
- private StringBuffer buildAjaxFunction(FacesContext context, UIComponent column, boolean sortable) {
+ protected StringBuffer buildAjaxFunction(FacesContext context, UIComponent column, boolean sortable) {
UIComponent table = column.getParent();
String id = table.getClientId(context);
JSFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(table, context);
@@ -562,4 +523,78 @@
return buffer;
}
+
+ protected class SimpleHeaderEncodeStrategy implements HeaderEncodeStrategy {
+
+ public void encodeBegin(FacesContext context, ResponseWriter writer,
+ UIComponent column, String facetName, boolean sortableColumn)
+ throws IOException {
+
+ }
+
+ public void encodeEnd(FacesContext context, ResponseWriter writer,
+ UIComponent column, String facetName, boolean sortableColumn, String spacelUrl)
+ throws IOException {
+
+ }
+
+
+ }
+
+ protected class RichHeaderEncodeStrategy implements HeaderEncodeStrategy {
+
+ public void encodeBegin(FacesContext context, ResponseWriter writer,
+ UIComponent column, String facetName, boolean sortableColumn)
+ throws IOException {
+ org.richfaces.component.UIColumn col =
+ (org.richfaces.component.UIColumn) column;
+ String clientId = col.getClientId(context) + facetName;
+ writer.writeAttribute("id", clientId, null);
+
+ writer.startElement(HTML.DIV_ELEM, column);
+
+ if (sortableColumn) {
+ if (col.isSelfSorted()) {
+ writer.writeAttribute(HTML.onclick_ATTRIBUTE, buildAjaxFunction(context, column, true)
+ .toString(), null);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, "dr-table-cursor-pointer", null);
+ }
+ writer.startElement(HTML.SPAN_ELEM, column);
+ String spanClass = "";
+ if (Ordering.ASCENDING.equals(col.getSortOrder())) {
+ spanClass = "dr-table-header-sort-up dr-table-sortable-header";
+ } else if (Ordering.DESCENDING.equals(col.getSortOrder())) {
+ spanClass = "dr-table-header-sort-down dr-table-sortable-header";
+ }
+ writer.writeAttribute(HTML.class_ATTRIBUTE, spanClass, null);
+ }
+ }
+
+ public void encodeEnd(FacesContext context, ResponseWriter writer,
+ UIComponent column, String facetName, boolean sortableColumn, String spacerUrl) throws IOException {
+ org.richfaces.component.UIColumn col =
+ (org.richfaces.component.UIColumn) column;
+ if (sortableColumn) {
+ if (Ordering.ASCENDING.equals(col.getSortOrder()) ||
+ Ordering.DESCENDING.equals(col.getSortOrder())) {
+ writer.startElement(HTML.IMG_ELEMENT, column);
+ writer.writeAttribute(HTML.src_ATTRIBUTE, spacerUrl, null);
+ writer.writeAttribute(HTML.width_ATTRIBUTE, "16", null);
+ writer.endElement(HTML.IMG_ELEMENT);
+ }
+ writer.endElement(HTML.SPAN_ELEM);
+ }
+
+ writer.endElement(HTML.DIV_ELEM);
+
+ if (col.getFilterMethod() == null
+ && col.getValueExpression("filterExpression") == null
+ && col.getValueExpression("filterBy") != null) {
+
+ writer.startElement(HTML.DIV_ELEM, column);
+ addInplaceInput(context, column, buildAjaxFunction(context, column, false));
+ writer.endElement(HTML.DIV_ELEM);
+ }
+ }
+ }
}
\ No newline at end of file
Added: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java (rev 0)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/HeaderEncodeStrategy.java 2008-02-28 10:48:33 UTC (rev 6394)
@@ -0,0 +1,44 @@
+/**
+ * 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;
+
+import java.io.IOException;
+import java.util.Map;
+
+import javax.faces.FacesException;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIInput;
+import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
+
+import org.ajax4jsf.javascript.JSFunction;
+import org.ajax4jsf.renderkit.AjaxRendererUtils;
+
+public interface HeaderEncodeStrategy {
+
+ public abstract void encodeBegin(FacesContext context, ResponseWriter writer,
+ UIComponent column, String facetName, boolean sortableColumn) throws IOException;
+
+ public abstract void encodeEnd(FacesContext context, ResponseWriter writer,
+ UIComponent column, String facetName, boolean sortableColumn, String spacerUrl) throws IOException;
+
+}
17 years, 10 months
JBoss Rich Faces SVN: r6393 - trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 05:40:04 -0500 (Thu, 28 Feb 2008)
New Revision: 6393
Modified:
trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
Log:
add right border behavior
Modified: trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss
===================================================================
--- trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-28 10:17:09 UTC (rev 6392)
+++ trunk/sandbox/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/css/inplaceinput.xcss 2008-02-28 10:40:04 UTC (rev 6393)
@@ -12,11 +12,15 @@
.rich-inplace-changed {
background-position:left top;
background-repeat:no-repeat;
+ padding-left:3px;
+ padding-right:3px;
+ border-bottom-width: 1px;
+ border-bottom-style: dashed;
}
.rich-inplace-view {
- border-width: 1px;
- border-style: dashed;
+ border-bottom-width: 1px;
+ border-bottom-style: dashed;
padding-left:3px;
padding-right:3px;
white-space:nowrap;
@@ -37,7 +41,7 @@
}
.rich-inplace-input-changed-hover {
- border: thin solid blue;
+ color: red;
}
.rich-inplace-input-strut {
@@ -101,12 +105,6 @@
]]>
</f:verbatim>
- <u:selector name=".rich-inplace-changed">
- <u:style name="background-image">
- <f:resource f:key="org.richfaces.renderkit.html.images.EditIcon"/>
- </u:style>
- </u:selector>
-
<u:selector name=".rich-inplace-control">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.SpinnerButtonGradient"/>
@@ -149,9 +147,17 @@
<u:selector name=".rich-inplace-view">
<u:style name="background-color" skin="editorBackgroundColor"/>
- <u:style name="border-color" skin="generalTextColor"/>
+ <u:style name="border-bottom-color" skin="generalTextColor"/>
</u:selector>
+ <u:selector name=".rich-inplace-changed">
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.EditIcon"/>
+ </u:style>
+ <u:style name="background-color" skin="editorBackgroundColor"/>
+ <u:style name="border-bottom-color" skin="generalTextColor"/>
+ </u:selector>
+
<u:selector name=".rich-inplace-field">
<u:style name="background-color" skin="editBackgroundColor"/>
</u:selector>
17 years, 10 months
JBoss Rich Faces SVN: r6392 - trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 05:17:09 -0500 (Thu, 28 Feb 2008)
New Revision: 6392
Modified:
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-02-28 10:16:44 UTC (rev 6391)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp 2008-02-28 10:17:09 UTC (rev 6392)
@@ -42,10 +42,10 @@
<h:outputText value="maxInputWidth (in 'px'): " />
<h:inputText value="#{bean.maxInputWidth}" />
- <h:outputText value="controlsPosition (default: right) is: " />
+ <h:outputText value="controlsVerticalPosition (default: center) is: " />
<h:inputText value="#{bean.controlsPosition}" />
- <h:outputText value="controlsHorizontalAlign (default: left) is: " />
+ <h:outputText value="controlsHorizontalPosition (default: left) is: " />
<h:inputText value="#{bean.controlsHorizontalAlign}" />
<h:outputText value="tabindex: " />
Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml 2008-02-28 10:16:44 UTC (rev 6391)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml 2008-02-28 10:17:09 UTC (rev 6392)
@@ -49,10 +49,10 @@
<h:outputText value="inputMaxLength: " />
<h:inputText value="#{bean.inputMaxLength}" />
- <h:outputText value="controlsPosition (default: right) is: " />
+ <h:outputText value="controlsVerticalPosition (default: center is: " />
<h:inputText value="#{bean.controlsPosition}" />
- <h:outputText value="controlsHorizontalAlign (default: left) is: " />
+ <h:outputText value="controlsHorizontalPosition (default: left) is: " />
<h:inputText value="#{bean.controlsHorizontalAlign}" />
<h:outputText value="tabindex: " />
17 years, 10 months
JBoss Rich Faces SVN: r6391 - in trunk/sandbox/samples/inplaceSelect-sample/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 05:16:44 -0500 (Thu, 28 Feb 2008)
New Revision: 6391
Modified:
trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java 2008-02-28 10:16:14 UTC (rev 6390)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java 2008-02-28 10:16:44 UTC (rev 6391)
@@ -33,7 +33,7 @@
private String selectWidth;
- private String defaultLabel;
+ private String defaultLabel = "Click ...";
private String controlsPosition = "center";
@@ -50,6 +50,10 @@
private boolean showControls;
private boolean applyFromControlsOnly;
+
+ private boolean editOnTab;
+
+ private boolean openOnEdit;
@@ -156,6 +160,22 @@
public void setListHeight(String listHeight) {
this.listHeight = listHeight;
}
+
+ public boolean isEditOnTab() {
+ return editOnTab;
+ }
+
+ public void setEditOnTab(boolean editOnTab) {
+ this.editOnTab = editOnTab;
+ }
+
+ public boolean isOpenOnEdit() {
+ return openOnEdit;
+ }
+
+ public void setOpenOnEdit(boolean openOnEdit) {
+ this.openOnEdit = openOnEdit;
+ }
}
\ No newline at end of file
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-02-28 10:16:14 UTC (rev 6390)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-02-28 10:16:44 UTC (rev 6391)
@@ -29,10 +29,10 @@
<h:outputText value="defaultLabel is: "></h:outputText>
<h:inputText value="#{bean.defaultLabel}"></h:inputText>
- <h:outputText value="controlsPosition is: "></h:outputText>
+ <h:outputText value="controlsVerticalPosition is: "></h:outputText>
<h:inputText value="#{bean.controlsPosition}"></h:inputText>
- <h:outputText value="controlsHorizontalAlign is: "></h:outputText>
+ <h:outputText value="controlsHorizontalPosition is: "></h:outputText>
<h:inputText value="#{bean.controlsHorizontalAlign}"></h:inputText>
<h:outputText value="value is: "></h:outputText>
@@ -53,10 +53,15 @@
<h:outputText value="applyFromControlsOnly (default: false): " />
<h:selectBooleanCheckbox value="#{bean.applyFromControlsOnly}" />
-
+ <h:outputText value="editOnTab (default: true): " />
+ <h:selectBooleanCheckbox value="#{bean.editOnTab}" />
+
+ <h:outputText value="openOnEdit (default: false): " />
+ <h:selectBooleanCheckbox value="#{bean.openOnEdit}" />
+
</h:panelGrid>
- <div style="width: 300px">
+
Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
<is:inplaceSelect
editEvent="#{bean.editEvent}"
@@ -64,16 +69,17 @@
minSelectWidth="#{bean.minSelectWidth}"
selectWidth="#{bean.selectWidth}"
defaultLabel="#{bean.defaultLabel}"
- controlsPosition="#{bean.controlsPosition}"
- controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
value="#{bean.value}"
listWidth="#{bean.listWidth}"
listHeight="#{bean.listHeight}"
selectOnEdit="#{bean.selectOnEdit}"
showControls="#{bean.showControls}"
applyFromControlsOnly="#{bean.applyFromControlsOnly}"
-
- >
+ editOnTab="#{bean.editOnTab}"
+ openOnEdit="#{bean.openOnEdit}"
+ >
<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
@@ -85,7 +91,7 @@
<f:selectItem itemLabel="option 9" itemValue="New York"/>
</is:inplaceSelect>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
- </div>
+
<br/>
<h:outputText value="value is: #{bean.value}"></h:outputText>
<h:commandButton value="submit"></h:commandButton>
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-02-28 10:16:14 UTC (rev 6390)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-02-28 10:16:44 UTC (rev 6391)
@@ -35,10 +35,10 @@
<h:outputText value="defaultLabel is: "></h:outputText>
<h:inputText value="#{bean.defaultLabel}"></h:inputText>
- <h:outputText value="controlsPosition is: "></h:outputText>
+ <h:outputText value="controlsVerticalPosition is: "></h:outputText>
<h:inputText value="#{bean.controlsPosition}"></h:inputText>
- <h:outputText value="controlsHorizontalAlign is: "></h:outputText>
+ <h:outputText value="controlsHorizontalposition is: "></h:outputText>
<h:inputText value="#{bean.controlsHorizontalAlign}"></h:inputText>
<h:outputText value="value is: "></h:outputText>
@@ -70,8 +70,8 @@
minSelectWidth="#{bean.minSelectWidth}"
selectWidth="#{bean.selectWidth}"
defaultLabel="#{bean.defaultLabel}"
- controlsPosition="#{bean.controlsPosition}"
- controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+ controlsVerticalPosition="#{bean.controlsPosition}"
+ controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
value="#{bean.value}"
listWidth="#{bean.listWidth}"
listHeight="#{bean.listHeight}"
17 years, 10 months
JBoss Rich Faces SVN: r6390 - trunk/sandbox/ui/inplaceSelect/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 05:16:14 -0500 (Thu, 28 Feb 2008)
New Revision: 6390
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-28 10:15:45 UTC (rev 6389)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-28 10:16:14 UTC (rev 6390)
@@ -50,17 +50,18 @@
variables.setVariable("cancelIcon", cancelIcon);
}
- String controllClass = (String)component.getAttributes().get("controllClass");
- variables.setVariable("controllClass", controllClass);
- String controllHoveredClass = (String)component.getAttributes().get("controllHoveredClass");
- variables.setVariable("controllHoveredClass", controllHoveredClass);
- String controllPressedClass = (String)component.getAttributes().get("controllPressedClass");
- variables.setVariable("controllPressedClass", controllPressedClass);*/
+ String controlClass = (String)component.getAttributes().get("controlClass");
+ variables.setVariable("controlClass", controlClass);
+ String controlHoveredClass = (String)component.getAttributes().get("controlHoveredClass");
+ variables.setVariable("controlHoveredClass", controlHoveredClass);
+ String controlPressedClass = (String)component.getAttributes().get("controlPressedClass");
+ variables.setVariable("controlPressedClass", controlPressedClass);*/
+
]]>
</jsp:scriptlet>
<f:resource var="spacer" name="images/spacer.gif"/>
-<span id="#{clientId}" class="rich-inplace-select-default-state"
+<span id="#{clientId}" class="rich-inplace-select-view"
x:passThruWithExclusions="id,styleClass,class,style">
<input id="#{clientId}tabber" type="button" value="" style="width: 1px; position: absolute; left: -32767px;" />
<img id="#{clientId}inplaceStrut" src="#{spacer}" class="rich-inplace-select-strut"/>
@@ -74,7 +75,7 @@
readonly="readonly"
class="rich-inplace-select-field"/>
<input id='#{clientId}inplaceValue' name='#{clientId}inplaceValue' type='hidden' value='#{fieldValue}'/>
- <div id="#{clientId}bar" class="rich-inplace-select-btn-set" style="display:none;">
+ <div id="#{clientId}bar" class="rich-inplace-select-control-set" style="display:none;">
<div class="rich-inplace-select-shadow" id="#{clientId}btns_shadow">
<table cellpadding="0" cellspacing="0" border="0" class="rich-inplace-select-shadow-size">
<tr>
@@ -96,8 +97,8 @@
</table>
</div>
<div id="#{clientId}buttons" style="position : relative">
- <input id="#{clientId}ok" type="image" src="#{saveIcon}" class="rich-inplace-select-btn" onmousedown="this.className='rich-inplace-select-btn-press'" onmouseout="this.className='rich-inplace-select-btn'" onmouseup="this.className='rich-inplace-select-btn'"/>
- <input id="#{clientId}cancel" type="image" src="#{cancelIcon}" class="rich-inplace-select-btn" onmousedown="this.className='rich-inplace-select-btn-press'" onmouseout="this.className='rich-inplace-select-btn'" onmouseup="this.className='rich-inplace-select-btn'"/>
+ <input id="#{clientId}ok" type="image" src="#{saveIcon}" class="rich-inplace-select-control" onmousedown="this.className='rich-inplace-select-control-press'" onmouseout="this.className='rich-inplace-select-control'" onmouseup="this.className='rich-inplace-select-control'"/>
+ <input id="#{clientId}cancel" type="image" src="#{cancelIcon}" class="rich-inplace-select-control" onmousedown="this.className='rich-inplace-select-control-press'" onmouseout="this.className='rich-inplace-select-control'" onmouseup="this.className='rich-inplace-select-control'"/>
</div>
</div>
@@ -134,26 +135,17 @@
</span>
<script type="text/javascript">
Richfaces.InplaceSelect.CLASSES = {
- FIELD : {CLASSES:
- {NORMAL : "rich-combobox-font-inactive rich-combobox-input-inactive #{inputInactiveClass}",
- ACTIVE : "rich-combobox-font rich-combobox-input #{inputClass}",
- DISABLED : "rich-combobox-font-disabled rich-combobox-input-disabled #{inputDisabledClass}"},
- STYLE :
- {NORMAL : "#{inputStyle}",
- ACTIVE : "#{inputStyle}",
- DISABLED : "#{inputDisabledStyle}"}
- },
COMBO_LIST : {
- LIST : {CLASSES :{ACTIVE : "rich-inplace-select-list-scroll rich-inplace-select-list-decoration rich-inplace-select-list-position #{listClass}"},
- STYLE : {ACTIVE: "#{listStyle}"}
- },
+ LIST : {CLASSES :{ACTIVE : "rich-inplace-select-list-scroll rich-inplace-select-list-decoration rich-inplace-select-list-position #{listClass}"
+ }
+ },
ITEM : {NORMAL : "rich-inplace-select-item rich-inplace-select-font #{itemClass}",
- SELECTED : "rich-inplace-select-item rich-inplace-select-font rich-inplace-select-selected-item #{itemSelectedClass}"
- }
- },
- COMPONENT : {CHANGED : {NORMAL : 'rich-inplace rich-inplace-select-default-state rich-inplace-select-changed-state #{component.attributes["changedClass"]}', HOVERED : '#{component.attributes["changedHoveredClass"]}'},
- VIEW : {NORMAL : 'rich-inplace rich-inplace-select-default-state #{component.attributes["viewClass"]}', HOVERED : '#{component.attributes["viewHoveredClass"]}'},
- EDITABLE : 'rich-inplace rich-inplace-select-edit-state #{component.attributes["editClass"]}'
+ SELECTED : 'rich-inplace-select-item rich-inplace-select-font rich-inplace-select-selected-item #{itemSelectedClass}'
+ }
+ },
+ COMPONENT : {CHANGED : {NORMAL : 'rich-inplace rich-inplace-select-view rich-inplace-select-changed #{component.attributes["changedClass"]}', HOVERED : '#{component.attributes["changedHoverClass"]}'},
+ VIEW : {NORMAL : 'rich-inplace rich-inplace-select-view #{component.attributes["viewClass"]}', HOVERED : '#{component.attributes["viewHoverClass"]}'},
+ EDITABLE : 'rich-inplace rich-inplace-select-edit #{component.attributes["editClass"]}'
}
};
@@ -161,9 +153,9 @@
showControls : #{component.attributes["showControls"]},
applyFromControlsOnly : #{component.attributes["applyFromControlsOnly"]},
editEvent : '#{component.attributes["editEvent"]}',
- verticalPosition : '#{component.attributes["controlsPosition"]}',
- horizontalPosition : '#{component.attributes["controlsHorizontalAlign"]}',
- inputWidth : '#{component.attributes["inputWidth"]}',
+ verticalPosition : '#{component.attributes["controlsVerticalPosition"]}',
+ horizontalPosition : '#{component.attributes["controlsHorizontalPosition"]}',
+ inputWidth : '#{component.attributes["selectWidth"]}',
inputMinWidth : '#{component.attributes["minSelectWidth"]}',
inputMaxWidth : '#{component.attributes["maxSelectWidth"]}'
};
@@ -174,7 +166,7 @@
onviewactivated : #{this:getAsEventHandler(context, component, "onviewactivated")}};
var richInplaceList = new Richfaces.InplaceSelectList('list#{clientId}', 'listParent#{clientId}', true,
- Richfaces.InplaceSelect.CLASSES.COMBO_LIST, '100px', '100px', #{this:getItemsTextAsJSArray(context, component)}, null,
+ Richfaces.InplaceSelect.CLASSES.COMBO_LIST, '#{component.attributes["listWidth"]}', '#{component.attributes["listHeight"]}', #{this:getItemsTextAsJSArray(context, component)}, null,
'#{clientId}inplaceTmpValue', 'shadow#{clientId}', 0, 0);
var richInplaceSelect = new Richfaces.InplaceSelect(richInplaceList, '#{clientId}', '#{clientId}inplaceTmpValue',
'#{clientId}inplaceValue', '#{clientId}tabber', '#{clientId}inplaceStrut',
@@ -182,4 +174,4 @@
['#{clientId}bar', '#{clientId}ok', '#{clientId}cancel', '#{clientId}buttons', '#{clientId}btns_shadow']);
</script>
-</f:root>
\ No newline at end of file
+</f:root>
17 years, 10 months
JBoss Rich Faces SVN: r6389 - in trunk/sandbox/ui/inplaceSelect/src/main: java/org/richfaces/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-28 05:15:45 -0500 (Thu, 28 Feb 2008)
New Revision: 6389
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
Log:
cosmetic fixes
Modified: trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-28 10:14:59 UTC (rev 6388)
+++ trunk/sandbox/ui/inplaceSelect/src/main/config/component/inplaceselect.xml 2008-02-28 10:15:45 UTC (rev 6389)
@@ -75,13 +75,13 @@
<description></description>
</property>
<property>
- <name>controlsPosition</name>
+ <name>controlsVerticalPosition</name>
<classname>java.lang.String</classname>
<description></description>
<defaultvalue><![CDATA["center"]]></defaultvalue>
</property>
<property>
- <name>controlsHorizontalAlign</name>
+ <name>controlsHorizontalPosition</name>
<classname>java.lang.String</classname>
<description></description>
<defaultvalue><![CDATA["right"]]></defaultvalue>
@@ -140,6 +140,53 @@
<description></description>
<defaultvalue>"200px"</defaultvalue>
</property>
+ <property>
+ <name>editOnTab</name>
+ <classname>boolean</classname>
+ <description></description>
+ <defaultvalue>true</defaultvalue>
+ </property>
+ <property>
+ <name>openOnEdit</name>
+ <classname>boolean</classname>
+ <description></description>
+ <defaultvalue>false</defaultvalue>
+ </property>
+ <property>
+ <name>viewClass</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+ <property>
+ <name>editClass</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+ <property>
+ <name>changedClass</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+ <property>
+ <name>controlClass</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+ <property>
+ <name>viewHover</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+ <property>
+ <name>controlPressed</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
+ <property>
+ <name>controlHover</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ </property>
&html_events;
</properties>
</component>
Modified: trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-02-28 10:14:59 UTC (rev 6388)
+++ trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-02-28 10:15:45 UTC (rev 6389)
@@ -41,7 +41,7 @@
if (logger.isDebugEnabled()) {
logger.debug("No decoding necessary since the component "
+ component.getId() +
- " is not an instance or a sub class of UIComboBox");
+ " is not an instance or a sub class of UIInplaceSelect");
}
return;
}
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-28 10:14:59 UTC (rev 6388)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-28 10:15:45 UTC (rev 6389)
@@ -14,7 +14,7 @@
.rich-inplace {
}
-.rich-inplace-select-default-state{
+.rich-inplace-select-view{
white-space : nowrap;
border-bottom-width: 1px;
border-bottom-style: dashed;
@@ -22,12 +22,19 @@
padding-right : 3px;
}
-.rich-inplace-select-changed-state{
+.rich-inplace-select-changed{
background-position : top left;
background-repeat : no-repeat;
}
-.rich-inplace-select-edit-state{
+.rich-inplace-select-changed-hover{
+}
+
+.rich-inplace-select-view-hover{
+ color: blue;
+}
+
+.rich-inplace-select-edit{
position : relative;
}
@@ -36,19 +43,17 @@
border-width: 1px;
margin : 0px;
background-position : center right;
- background-repeat : no-repeat;*/
- background:#FFF281 none repeat scroll 0%;
+ background-repeat : no-repeat;
}
.rich-inplace-select-strut{
- /* width : 100px; */
height : 1px
}
-.rich-inplace-select-btn-set{
+.rich-inplace-select-control-set{
white-space : nowrap
}
-.rich-inplace-select-btn {
+.rich-inplace-select-control {
background-position : top;
background-repeat: repeat-x;
border-width: 1px;
@@ -57,7 +62,7 @@
margin : 0px;
}
-.rich-inplace-select-btn-press{
+.rich-inplace-select-control-press{
background-position: top;
background-repeat: repeat-x;
border-width: 1px;
@@ -140,13 +145,13 @@
]]>
</f:verbatim>
- <u:selector name=".rich-inplace-select-changed-state">
+ <u:selector name=".rich-inplace-select-changed">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.EditIcon"/>
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-select-default-state">
+ <u:selector name=".rich-inplace-select-view">
<u:style name="background-color" skin="editorBackgroundColor"/>
<u:style name="border-bottom-color" skin="generaTextColor"/>
</u:selector>
@@ -159,7 +164,7 @@
</u:style>
</u:selector>
- <u:selector name=".rich-inplace-select-btn">
+ <u:selector name=".rich-inplace-select-control">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.SpinnerButtonGradient"/>
</u:style>
@@ -167,7 +172,7 @@
<u:style name="border-color" skin="panelBorderColor"/>
</u:selector>
- <u:selector name=".rich-inplace-select-btn-press">
+ <u:selector name=".rich-inplace-select-control-press">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient"/>
</u:style>
17 years, 10 months