[richfaces-svn-commits] JBoss Rich Faces SVN: r1236 - in trunk/sandbox/scrollable-grid/src/main: templates/org/richfaces and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Jun 20 10:18:54 EDT 2007


Author: konstantin.mishin
Date: 2007-06-20 10:18:54 -0400 (Wed, 20 Jun 2007)
New Revision: 1236

Modified:
   trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
   trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx
   trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx
   trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
Log:
add css classes

Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js	2007-06-20 12:05:14 UTC (rev 1235)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js	2007-06-20 14:18:54 UTC (rev 1236)
@@ -237,8 +237,8 @@
 				var nElement = $(this.prefix + ":n:" + j);
 				Element.addClassName(fElement, "idg-row-selected-h");
 				Element.addClassName(nElement, "idg-row-selected-h");
-				Element.addClassName(fElement, "idg-row-selected");
-				Element.addClassName(nElement, "idg-row-selected");
+				Element.addClassName(fElement, "Idg-row-selected");
+				Element.addClassName(nElement, "Idg-row-selected");
 				Element.addClassName(fElement, this.selectedClass);
 				Element.addClassName(nElement, this.selectedClass);
 				j++;
@@ -436,8 +436,8 @@
 		var nElement = $(this.prefix + ":n:" + rowIndex);
 		Element.addClassName(fElement, "idg-row-selected-h");
 		Element.addClassName(nElement, "idg-row-selected-h");
-		Element.addClassName(fElement, "idg-row-selected");
-		Element.addClassName(nElement, "idg-row-selected");
+		Element.addClassName(fElement, "Idg-row-selected");
+		Element.addClassName(nElement, "Idg-row-selected");
 		Element.addClassName(fElement, this.selectedClass);
 		Element.addClassName(nElement, this.selectedClass);
 	},
@@ -448,8 +448,8 @@
 		var nElement = $(this.prefix + ":n:" + rowIndex);
 		Element.removeClassName(fElement, "idg-row-selected-h");
 		Element.removeClassName(nElement, "idg-row-selected-h");
-		Element.removeClassName(fElement, "idg-row-selected");
-		Element.removeClassName(nElement, "idg-row-selected");
+		Element.removeClassName(fElement, "Idg-row-selected");
+		Element.removeClassName(nElement, "Idg-row-selected");
 		Element.removeClassName(fElement, this.selectedClass);
 		Element.removeClassName(nElement, this.selectedClass);
 	},
@@ -461,8 +461,8 @@
 			nElement = $(this.prefix + ":n:" + this.activeRow);
 		Element.removeClassName(fElement, "idg-row-active-h");
 		Element.removeClassName(nElement, "idg-row-active-h");
-		Element.removeClassName(fElement, "idg-row-active");
-		Element.removeClassName(nElement, "idg-row-active");
+		Element.removeClassName(fElement, "Idg-row-active");
+		Element.removeClassName(nElement, "Idg-row-active");
 		Element.removeClassName(fElement, this.activeClass);
 		Element.removeClassName(nElement, this.activeClass);
 		}
@@ -470,8 +470,8 @@
 		nElement = $(this.prefix + ":n:" + rowIndex);
 		Element.addClassName(fElement, "idg-row-active-h");
 		Element.addClassName(nElement, "idg-row-active-h");
-		Element.addClassName(fElement, "idg-row-active");
-		Element.addClassName(nElement, "idg-row-active");
+		Element.addClassName(fElement, "Idg-row-active");
+		Element.addClassName(nElement, "Idg-row-active");
 		Element.addClassName(fElement, this.activeClass);
 		Element.addClassName(nElement, this.activeClass);
 		this.activeRow = rowIndex;

Modified: trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx	2007-06-20 12:05:14 UTC (rev 1235)
+++ trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx	2007-06-20 14:18:54 UTC (rev 1236)
@@ -11,9 +11,9 @@
 	component="javax.faces.component.UIComponent" 
 	>
 	
-	<td class="ClientUI_Grid_BC" id="#{client_id}:c_#{cell_id}">
+	<td class="ClientUI_Grid_BC Idg-column-cell #{columnClass} #{component.attributes['styleClass']}" id="#{client_id}:c_#{cell_id}">
 		<span id="#{client_id}:bc_#{cell_index}" class="ClientUI_Grid_BCBody1">
-			<span class="ClientUI_Grid_BCBody #{columnClass}" id="#{client_id}:bc_#{cell_id}">
+			<span class="ClientUI_Grid_BCBody" id="#{client_id}:bc_#{cell_id}">
 				<vcp:body/>
 			</span>
 		</span>

Modified: trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx	2007-06-20 12:05:14 UTC (rev 1235)
+++ trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx	2007-06-20 14:18:54 UTC (rev 1236)
@@ -11,7 +11,7 @@
 	component="javax.faces.component.UIComponent" 
 	>
 	
-	<td class="ClientUI_Grid_FC">
+	<td class="ClientUI_Grid_FC Idg-footer-cell #{component.attributes['footerClass']}">
 		<span id="#{client_id}:fc_#{cell_index}" class="ClientUI_Grid_FCBody1">
 			<span class="ClientUI_Grid_FCBody">
 				<vcp:body/>

Modified: trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx	2007-06-20 12:05:14 UTC (rev 1235)
+++ trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx	2007-06-20 14:18:54 UTC (rev 1236)
@@ -12,9 +12,10 @@
 	component="javax.faces.component.UIComponent" 
 	>
 
-	<td class="ClientUI_Grid_HC" id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}" sortable="#{component.attributes['sortable']}">
+	<td class="ClientUI_Grid_HC Idg-header-cell #{component.attributes['headerClass']}" id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}" sortable="#{component.attributes['sortable']}">
 		<span id="#{client_id}:hcc_#{cell_index}" class="ClientUI_Grid_HCBody1">
-			<span id="#{clientId}:hcb_#{cell_index}" class="ClientUI_Grid_HCBody">
+			<span id="#{clientId}:hcb_#{cell_index}" 
+				class="ClientUI_Grid_HCBody">
 				<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
 					 <tbody>
 						 <tr>




More information about the richfaces-svn-commits mailing list