[richfaces-svn-commits] JBoss Rich Faces SVN: r442 - in trunk/richfaces/dropdown-menu/src/main: java/org/richfaces/renderkit/html/images and 3 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Apr 18 10:52:02 EDT 2007


Author: a.izobov
Date: 2007-04-18 10:52:02 -0400 (Wed, 18 Apr 2007)
New Revision: 442

Added:
   trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/images/
   trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/images/background/
   trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/images/background/MenuListBackground.java
Modified:
   trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
   trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
skinning

Added: trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/images/background/MenuListBackground.java
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/images/background/MenuListBackground.java	                        (rev 0)
+++ trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/images/background/MenuListBackground.java	2007-04-18 14:52:02 UTC (rev 442)
@@ -0,0 +1,32 @@
+/**
+ * License Agreement.
+ *
+ *  JBoss RichFaces 3.0 - 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.background;
+
+import org.richfaces.renderkit.html.BaseGradient;
+
+public class MenuListBackground extends BaseGradient {
+
+    public MenuListBackground() {
+        super(22, 3, "additionalBackgroundColor", "tabBackgroundColor", true);
+    }
+
+}

Modified: trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss	2007-04-18 14:49:11 UTC (rev 441)
+++ trunk/richfaces/dropdown-menu/src/main/resources/org/richfaces/renderkit/html/css/dropdownmenu.xcss	2007-04-18 14:52:02 UTC (rev 442)
@@ -6,17 +6,13 @@
 <f:verbatim><![CDATA[
 
 
-.dr-menu_list_position { 
-	top : 17; 
-	left: -1
-}
-.dr-menu_list_border { 
+.dr-menu-list-border { 
 	border : 1px solid #bfbfc0; 
 	background-color : #e7f2fb; 
 	float : left; 
 	position : absolute;
 }
-.dr-menu_list_bg {
+.dr-menu-list-bg {
 	border-top : 1px solid #e7f2fb; 
 	border-left : 1px solid #e7f2fb; 
 	border-right : 1px solid #e7f2fb; 
@@ -25,11 +21,9 @@
 .dr-menu-label {
 	padding : 2px 5px 2px 5px; 
 	white-space : nowrap; 
-	font-family : arial; 
-	font-size : 11px; 
+	position: relative;
 	width : 75px; 
 	height : 18px;
-	position: relative;
 }
 .dr-menu-label-unselect {
 	border : 1px solid transparent;
@@ -51,12 +45,35 @@
 	top:0px;
 	height:1px;
 	width:1px;
-	/*display:none;*/
 }
 
 ]]>
 
 </f:verbatim>
 
+<u:selector name=".dr-menu-list-border">
+	<u:style name="border-color" skin="panelBorderColor" />
+	<u:style name="background-color" skin="additionalBackgroundColor" />
+</u:selector>
 
+<u:selector name=".dr-menu-list-bg">
+	<u:style name="background-image">
+		<f:resource f:key="org.richfaces.renderkit.html.images.background.MenuListBackground"/>
+	</u:style>
+	<u:style name="border-top-color" skin="additionalBackgroundColor" />
+	<u:style name="border-left-color" skin="additionalBackgroundColor" />
+	<u:style name="border-right-color" skin="additionalBackgroundColor" />
+</u:selector>
+
+<u:selector name=".dr-menu-label">
+	<u:style name="font-family" skin="generalFamilyFont" />
+	<u:style name="font-size" skin="generalSizeFont" />
+</u:selector>
+
+<u:selector name=".dr-menu-label-select">
+	<u:style name="border-color" skin="panelBorderColor" />
+	<u:style name="background-color" skin="headerBackgroundColor" />
+	<u:style name="color" skin="headerTextColor" />
+</u:selector>
+
 </f:template>

Modified: trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx	2007-04-18 14:49:11 UTC (rev 441)
+++ trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx	2007-04-18 14:52:02 UTC (rev 442)
@@ -21,10 +21,10 @@
     <jsp:scriptlet>
 		<![CDATA[org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context,component);]]>		                                               
     </jsp:scriptlet>	
-    <div id="#{clientId}" class="dr-menu-label dr-menu-label-unselect rich-menu-label rich-menu-label-unselect #{component.attributes['styleClass']}"
+    <div id="#{clientId}" class="dr-menu-label dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect #{component.attributes['styleClass']}"
          style="#{component.attributes['style']};" 
-         onmouseover="this.className='dr-menu-label dr-menu-label-select rich-menu-label rich-menu-label-select' ; #{component.attributes['onmouseover']}" 
-         onmouseout="this.className='dr-menu-label dr-menu-label-unselect rich-menu-label rich-menu-label-unselect'; #{component.attributes['onmouseout']}"         
+         onmouseover="this.className='dr-menu-label dr-menu-label-select rich-ddmenu-label rich-ddmenu-label-select' ; #{component.attributes['onmouseover']}" 
+         onmouseout="this.className='dr-menu-label dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect'; #{component.attributes['onmouseout']}"         
          onmousemove="#{component.attributes['onmousemove']}">
 		 <jsp:scriptlet>
 					<![CDATA[if(component.getFacet("label")!=null && component.getFacet("label").isRendered()) {]]>




More information about the richfaces-svn-commits mailing list