Author: konstantin.mishin
Date: 2007-07-30 06:23:09 -0400 (Mon, 30 Jul 2007)
New Revision: 1916
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
Log:
change name for CSS-classes
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
---
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-07-30
10:13:08 UTC (rev 1915)
+++
trunk/sandbox/ui/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-07-30
10:23:09 UTC (rev 1916)
@@ -270,8 +270,8 @@
var nElement = $(this.prefix + ":n:" + j);
Element.addClassName(fElement, "dr-sgrid-row-selected");
Element.addClassName(nElement, "dr-sgrid-row-selected");
- Element.addClassName(fElement, "Idg-row-selected");
- Element.addClassName(nElement, "Idg-row-selected");
+ Element.addClassName(fElement, "rich-sgrid-row-selected");
+ Element.addClassName(nElement, "rich-sgrid-row-selected");
Element.addClassName(fElement, this.selectedClass);
Element.addClassName(nElement, this.selectedClass);
j++;
@@ -479,8 +479,8 @@
var nElement = $(this.prefix + ":n:" + rowIndex);
Element.addClassName(fElement, "dr-sgrid-row-selected");
Element.addClassName(nElement, "dr-sgrid-row-selected");
- Element.addClassName(fElement, "Idg-row-selected");
- Element.addClassName(nElement, "Idg-row-selected");
+ Element.addClassName(fElement, "rich-sgrid-row-selected");
+ Element.addClassName(nElement, "rich-sgrid-row-selected");
Element.addClassName(fElement, this.selectedClass);
Element.addClassName(nElement, this.selectedClass);
},
@@ -491,8 +491,8 @@
var nElement = $(this.prefix + ":n:" + rowIndex);
Element.removeClassName(fElement, "dr-sgrid-row-selected");
Element.removeClassName(nElement, "dr-sgrid-row-selected");
- Element.removeClassName(fElement, "Idg-row-selected");
- Element.removeClassName(nElement, "Idg-row-selected");
+ Element.removeClassName(fElement, "rich-sgrid-row-selected");
+ Element.removeClassName(nElement, "rich-sgrid-row-selected");
Element.removeClassName(fElement, this.selectedClass);
Element.removeClassName(nElement, this.selectedClass);
},
@@ -504,8 +504,8 @@
nElement = $(this.prefix + ":n:" + this.activeRow);
Element.removeClassName(fElement, "dr-sgrid-row-active");
Element.removeClassName(nElement, "dr-sgrid-row-active");
- Element.removeClassName(fElement, "Idg-row-active");
- Element.removeClassName(nElement, "Idg-row-active");
+ Element.removeClassName(fElement, "rich-sgrid-row-active");
+ Element.removeClassName(nElement, "rich-sgrid-row-active");
Element.removeClassName(fElement, this.activeClass);
Element.removeClassName(nElement, this.activeClass);
}
@@ -513,8 +513,8 @@
nElement = $(this.prefix + ":n:" + rowIndex);
Element.addClassName(fElement, "dr-sgrid-row-active");
Element.addClassName(nElement, "dr-sgrid-row-active");
- Element.addClassName(fElement, "Idg-row-active");
- Element.addClassName(nElement, "Idg-row-active");
+ Element.addClassName(fElement, "rich-sgrid-row-active");
+ Element.addClassName(nElement, "rich-sgrid-row-active");
Element.addClassName(fElement, this.activeClass);
Element.addClassName(nElement, this.activeClass);
this.activeRow = rowIndex;
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx
===================================================================
---
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx 2007-07-30
10:13:08 UTC (rev 1915)
+++
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-cell.jspx 2007-07-30
10:23:09 UTC (rev 1916)
@@ -11,7 +11,7 @@
component="javax.faces.component.UIComponent"
- <td class="dr-sgrid-bc Idg-column-cell
#{component.attributes['styleClass']}"
id="#{client_id}:c_#{cell_id}">
+ <td class="dr-sgrid-bc rich-sgrid-column-cell
#{component.attributes['styleClass']}"
id="#{client_id}:c_#{cell_id}">
<div id="#{client_id}:bc_#{cell_id}" class="dr-sgrid-bcbody
#{component.attributes['cellClass']}"
style="#{component.attributes['cellStyle']}">
<vcp:body/>
</div>
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx
===================================================================
---
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx 2007-07-30
10:13:08 UTC (rev 1915)
+++
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-footer-cell.jspx 2007-07-30
10:23:09 UTC (rev 1916)
@@ -11,7 +11,7 @@
component="javax.faces.component.UIComponent"
- <td class="dr-sgrid-fc Idg-footer-cell
#{component.attributes['footerClass']}">
+ <td class="dr-sgrid-fc rich-sgrid-footer-cell
#{component.attributes['footerClass']}">
<span id="#{client_id}:fc_#{cell_index}"
class="dr-sgrid-fcbody1">
<span class="dr-sgrid-fcbody">
<vcp:body/>
Modified:
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
===================================================================
---
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx 2007-07-30
10:13:08 UTC (rev 1915)
+++
trunk/sandbox/ui/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx 2007-07-30
10:23:09 UTC (rev 1916)
@@ -12,7 +12,7 @@
component="javax.faces.component.UIComponent"
- <td class="dr-sgrid-hc Idg-header-cell
#{component.attributes['headerClass']}"
id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}"
sortable="#{component.attributes['sortable']}">
+ <td class="dr-sgrid-hc rich-sgrid-header-cell
#{component.attributes['headerClass']}"
id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}"
sortable="#{component.attributes['sortable']}">
<vcp:body/>
Modified:
trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
===================================================================
---
trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java 2007-07-30
10:13:08 UTC (rev 1915)
+++
trunk/sandbox/ui/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java 2007-07-30
10:23:09 UTC (rev 1916)
@@ -217,13 +217,13 @@
HtmlElement hcell = page.getHtmlElementById(id + ":hc_" + i);
assertNotNull(hcell);
elemClassAttr = hcell.getAttributeValue("class");
- assertTrue(elemClassAttr.contains("dr-sgrid-hc Idg-header-cell"));
+ assertTrue(elemClassAttr.contains("dr-sgrid-hc
rich-sgrid-header-cell"));
for (int j = 0; j < grid.getRows(); j++) {
HtmlElement bcell = page.getHtmlElementById(id + ":c_" + j +
"_" + i);
assertNotNull(bcell);
elemClassAttr = bcell.getAttributeValue("class");
- assertTrue(elemClassAttr.contains("dr-sgrid-bc Idg-column-cell"));
+ assertTrue(elemClassAttr.contains("dr-sgrid-bc
rich-sgrid-column-cell"));
}
}