Author: vmolotkov
Date: 2008-01-04 07:33:17 -0500 (Fri, 04 Jan 2008)
New Revision: 5133
Modified:
trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
component's style was added
Modified: trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml
===================================================================
--- trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml 2008-01-03 20:46:24
UTC (rev 5132)
+++ trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml 2008-01-04 12:33:17
UTC (rev 5133)
@@ -45,6 +45,7 @@
<description></description>
<defaultvalue>true</defaultvalue>
</property>
+
<property>
<name>defaultMessage</name>
<classname>java.lang.String</classname>
Modified:
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
---
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-01-03
20:46:24 UTC (rev 5132)
+++
trunk/sandbox/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-01-04
12:33:17 UTC (rev 5133)
@@ -73,6 +73,7 @@
protected void encodeSuggestion(ResponseWriter writer, UIComboBox comboBox, String
value) throws IOException{
writer.startElement(HTML.DIV_ELEM, comboBox);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, "rich-combobox-item
rich-combobox-item-normal", null);
writer.write(value);
writer.endElement(HTML.DIV_ELEM);
}
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
---
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-03
20:46:24 UTC (rev 5132)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-04
12:33:17 UTC (rev 5133)
@@ -12,28 +12,23 @@
white-space:nowrap;
}
+.cb_list_position{ position : absolute; top:-5px; left:0px;}
+.cb_list_decoration{ border : 1px solid #c0c0c0 /*panelBorderColor*/; padding : 0px;
background : #FFFFFF; /*tableBackgroundColor*/}
+.cb_list_scroll{ overflow : auto;}
+.cb_list_cord{ position : relative; font-size : 0px; /*display:none;*/ top: 2px;}/*DDL is
hidden!!!!!*/
+
.rich-combobox-item {
- border:1px solid #FFFFFF;
- font-family:tahoma,arial,helvetica,sans-serif;
- font-size:12px;
- font-size-adjust:none;
- font-stretch:normal;
- font-style:normal;
- font-variant:normal;
- font-weight:normal;
- line-height:normal;
- overflow:hidden;
- padding:2px;
- white-space:nowrap;
+ padding : 2px; white-space : nowrap;
+ font-size : 11px/*generalSizeFont*/; font-family : arial/*generalFamilyFont*/; color :
#000000/*generalTextColor*/
}
.rich-combobox-item-normal {
-
}
.rich-combobox-item-selected {
- background:#DFE8F6 none repeat scroll 0%;
- border:1px dotted #A3BAE9 !important;
+ padding : 1px;
+ background : #C7D7EC;
+ border : 1px dotted #000000;/*generalTextColor*/
cursor:pointer;
}
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-03 20:46:24 UTC
(rev 5132)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-04 12:33:17 UTC
(rev 5133)
@@ -63,9 +63,13 @@
</input>
<input type="text" class="rich_cb_width rich_cb_strut
rich_cb_font">
</input>
- <div id="listParent#{clientId}" style="display:none"
class="rich-combobox-list">
- <div id="list#{clientId}">
- <f:call name="encodeItems"/>
+ <div class="cb_list_cord">
+ <div class="cb_list_position">
+ <div id="listParent#{clientId}" class="cb_list_decoration
cb_list_scroll" style="display:none">
+ <div id="list#{clientId}">
+ <f:call name="encodeItems"/>
+ </div>
+ </div>
</div>
</div>
</div>
Show replies by date