Author: dmaliarevich
Date: 2008-01-12 10:35:46 -0500 (Sat, 12 Jan 2008)
New Revision: 5653
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
Log:
rich faces orderingList template updated.
table header cell bg changed.
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css
===================================================================
---
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css 2008-01-12
14:50:17 UTC (rev 5652)
+++
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css 2008-01-12
15:35:46 UTC (rev 5653)
@@ -139,33 +139,6 @@
font-size:11px;
cursor: pointer;
}
-
-.rich-ordering-list-button-disabled {
-background-color:#E3DED5;
-background-image:url(/richfaces-demo/a4j_3_1_3.GAorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7....1XuPARQVBZQ_.jsf);
-color:#B1ADA7;
-font-family:Arial,Verdana,sans-serif;
-font-size:11px;
-}
-.rich-ordering-list-button-light {
-background-color:#E3DED5;
-background-image:url(/richfaces-demo/a4j_3_1_3.GAorg.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient/DATB/eAH7....1XuPARQVBZQ_.jsf);
-border-color:#E79A00;
-border-width:1px;
-color:#000000;
-font-family:Arial,Verdana,sans-serif;
-font-size:11px;
-}
-.rich-ordering-list-button-press {
-background-color:#E3DED5;
-background-image:url(/richfaces-demo/a4j_3_1_3.GAorg.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient/DATB/eAG7eu.x....ARLgBZQ_.jsf);
-border-color:#C4C0C9;
-border-width:1px;
-color:#000000;
-font-family:Arial,Verdana,sans-serif;
-font-size:11px;
-}
-
a.rich-ordering-list-button-selection:visited,
a.rich-ordering-list-button-selection:link,
a.rich-ordering-list-button-a-disabled:visited,
a.rich-ordering-list-button-a-disabled:link {
text-decoration:none;
}
@@ -182,17 +155,18 @@
}
.rich-ordering-list-table-header-cell, .rich-ordering-list-table-header-cell-last {
-background-color:#E3DED5;
-
-border-bottom-color:#C4C0C9;
-border-bottom-width:1px;
-border-right-color:#C4C0C9;
-border-right-width:1px;
-color:#000000;
-font-family:Arial,Verdana,sans-serif;
-font-size:11px;
+ background-color: #E3DED5;
+ background-repeat: repeat-x;
+ background-attachment: scroll;
+ border-bottom-color:#C4C0C9;
+ border-bottom-width:1px;
+ border-right-color:#C4C0C9;
+ border-right-width:1px;
+ color:#000000;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
}
.rich-ordering-list-table-header-cell-last {
-border-right-width:0pt;
+ border-right-width:0pt;
}
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
===================================================================
---
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java 2008-01-12
14:50:17 UTC (rev 5652)
+++
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java 2008-01-12
15:35:46 UTC (rev 5653)
@@ -47,7 +47,7 @@
private static final String BOTTOM_CONTROL_IMG = "orderingList/bottom.gif";
private static final String BUTTON_BG = "orderingList/button_bg.gif";
- private static final String HEADER_CELL_BG =
"orderingList/header_cell_bg.gif";
+ private static final String HEADER_CELL_BG =
"orderingList/table_header_cell_bg.gif";
private static final String LIST_WIDTH = "listWidth";
private static final String LIST_HEIGHT = "listHeight";
@@ -281,6 +281,7 @@
nsIDOMElement tr = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TR);
thead.appendChild(tr);
+
String styleClass = encodeStyleClass(null,
"dr-table-subheader rich-table-subheader", null,
headerClass);
@@ -290,7 +291,7 @@
}
encodeHeaderFacets(creationData, tr, visualDocument,
columnsHeaders,
- "dr-table-subheadercell rich-table-subheadercell",
+ "rich-ordering-list-table-header-cell",
headerClass, HEADER, HtmlComponentUtil.HTML_TAG_TD);
}
}
@@ -381,7 +382,6 @@
div1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
"rich-ordering-control");
div2.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
"rich-ordering-list-button");
- div2.setAttribute("onmouseover",
"this.className='rich-ordering-list-button-light'");
a.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
"rich-ordering-list-button-selection");
div3.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
"rich-ordering-list-button-content");
@@ -468,6 +468,18 @@
String styleClass = encodeStyleClass(null, skinCellClass,
headerClass, columnHeaderClass);
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+
+ nsIDOMElement div1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ String resourceFolder = RichFacesTemplatesActivator
+ .getPluginResourcePath();
+ String div1Style = "background-image: url(file://" + resourceFolder
+ + HEADER_CELL_BG + ");";
+ div1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ "rich-ordering-list-table-header-cell");
+ div1.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, div1Style);
+ td.appendChild(div1);
+
td.setAttribute("scop", "col");
String colspan = column
.getAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN);
@@ -476,7 +488,7 @@
}
Element facetBody = ComponentUtil.getFacet(column, facetName);
- VpeChildrenInfo child = new VpeChildrenInfo(td);
+ VpeChildrenInfo child = new VpeChildrenInfo(div1);
child.addSourceChild(facetBody);
creationData.addChildrenInfo(child);
}