Author: sergeyhalipov
Date: 2007-11-12 11:21:38 -0500 (Mon, 12 Nov 2007)
New Revision: 3929
Added:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottomDisabled.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDownDisabled.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTopDisabled.java
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUpDisabled.java
Modified:
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
Log:
Disabled icon images added to ordering list.
Modified:
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 2007-11-12
16:19:46 UTC (rev 3928)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBase.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -88,7 +88,9 @@
/**
* @param data - pass icon color and background color
*/
- protected Object getDataToStore(FacesContext context, Object data) {
+ protected abstract Object getDataToStore(FacesContext context, Object data);
+
+ protected Object storeData(FacesContext context, String colorSkinParam, String
backgroundSkinParam) {
Skin skin = SkinFactory.getInstance().getSkin(context);
Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(context);
@@ -96,10 +98,9 @@
Color color = null;
- String skinParameter = "headerTextColor";
- String color1 = (String) skin.getParameter(context, skinParameter);
+ String color1 = (String) skin.getParameter(context, colorSkinParam);
if (null == color1 || "".equals(color1))
- color1 = (String) defaultSkin.getParameter(context, skinParameter);
+ color1 = (String) defaultSkin.getParameter(context, colorSkinParam);
if (color1 == null) {
color1 = "#FFFFFF";
@@ -109,10 +110,9 @@
ret[0] = color.getRGB();
- skinParameter = "headerBackgroundColor";
- String color2 = (String) skin.getParameter(context, skinParameter);
+ String color2 = (String) skin.getParameter(context, backgroundSkinParam);
if (null == color2 || "".equals(color2))
- color2 = (String) defaultSkin.getParameter(context, skinParameter);
+ color2 = (String) defaultSkin.getParameter(context, backgroundSkinParam);
if (color2 == null) {
color2 = "#000000";
Modified:
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 2007-11-12
16:19:46 UTC (rev 3928)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottom.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -26,6 +26,8 @@
import java.awt.Graphics2D;
import java.awt.geom.GeneralPath;
+import javax.faces.context.FacesContext;
+
import org.ajax4jsf.resource.ResourceContext;
/**
@@ -63,4 +65,9 @@
g2d.fill(path);
}
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "headerTextColor",
"headerBackgroundColor");
+ }
+
}
Added:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottomDisabled.java
===================================================================
---
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottomDisabled.java
(rev 0)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconBottomDisabled.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -0,0 +1,35 @@
+/**
+ * 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 javax.faces.context.FacesContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconBottomDisabled extends OrderingListIconBottom {
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "tabDisabledTextColor",
"tabBackgroundColor");
+ }
+}
Modified:
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 2007-11-12
16:19:46 UTC (rev 3928)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDown.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -27,6 +27,8 @@
import java.awt.RenderingHints;
import java.awt.geom.GeneralPath;
+import javax.faces.context.FacesContext;
+
import org.ajax4jsf.resource.ResourceContext;
/**
@@ -53,5 +55,10 @@
g2d.setColor(textColor);
g2d.fill(path);
}
+
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "headerTextColor",
"headerBackgroundColor");
+ }
}
Added:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDownDisabled.java
===================================================================
---
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDownDisabled.java
(rev 0)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconDownDisabled.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -0,0 +1,35 @@
+/**
+ * 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 javax.faces.context.FacesContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconDownDisabled extends OrderingListIconDown {
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "tabDisabledTextColor",
"tabBackgroundColor");
+ }
+}
Modified:
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 2007-11-12
16:19:46 UTC (rev 3928)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTop.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -26,6 +26,8 @@
import java.awt.Graphics2D;
import java.awt.geom.GeneralPath;
+import javax.faces.context.FacesContext;
+
import org.ajax4jsf.resource.ResourceContext;
/**
@@ -62,5 +64,10 @@
path.closePath();
g2d.fill(path);
}
+
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "headerTextColor",
"headerBackgroundColor");
+ }
}
Added:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTopDisabled.java
===================================================================
---
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTopDisabled.java
(rev 0)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconTopDisabled.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -0,0 +1,35 @@
+/**
+ * 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 javax.faces.context.FacesContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconTopDisabled extends OrderingListIconTop {
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "tabDisabledTextColor",
"tabBackgroundColor");
+ }
+}
Modified:
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 2007-11-12
16:19:46 UTC (rev 3928)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUp.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -26,6 +26,8 @@
import java.awt.Graphics2D;
import java.awt.geom.GeneralPath;
+import javax.faces.context.FacesContext;
+
import org.ajax4jsf.resource.ResourceContext;
/**
@@ -52,5 +54,10 @@
g2d.setColor(textColor);
g2d.fill(path);
}
+
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "headerTextColor",
"headerBackgroundColor");
+ }
}
Added:
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUpDisabled.java
===================================================================
---
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUpDisabled.java
(rev 0)
+++
trunk/sandbox/ui/orderingList/src/main/java/org/richfaces/renderkit/html/images/OrderingListIconUpDisabled.java 2007-11-12
16:21:38 UTC (rev 3929)
@@ -0,0 +1,35 @@
+/**
+ * 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 javax.faces.context.FacesContext;
+
+/**
+ * @author Siarhej Chalipau
+ *
+ */
+public class OrderingListIconUpDisabled extends OrderingListIconUp {
+ @Override
+ protected Object getDataToStore(FacesContext context, Object data) {
+ return storeData(context, "tabDisabledTextColor",
"tabBackgroundColor");
+ }
+}