Author: abelevich
Date: 2010-03-02 13:52:59 -0500 (Tue, 02 Mar 2010)
New Revision: 16516
Added:
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/css/
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/css/datascroller.css
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js
Log:
add styles, scripts
Added:
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/css/datascroller.css
===================================================================
---
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/css/datascroller.css
(rev 0)
+++
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/css/datascroller.css 2010-03-02
18:52:59 UTC (rev 16516)
@@ -0,0 +1,70 @@
+.ds_container{
+ white-space : nowrap;
+ display : inline-block;
+ font-size : 11px/*generalSizeFont*/;
+ padding : 1px;
+ font-family : verdana/*generalFamilyFont*/;
+ background : #ffffff/*background-color - tableBackgroundColor*/;
+}
+
+.ds_container_decor{
+ border : 1px solid #A6A6A6/*tableBorderColor*/;
+}
+
+.ds_button{
+ cursor : pointer;
+ padding : 2px 10px 3px 10px;
+ border : 1px solid #A6A6A6/*tableBorderColor*/;
+ display : inline-block;
+ background : url(images/bg_btn.png) top left repeat-x #C0D1E7/*gradient - from
headerGradientColor to headerBackgroundColor, background-color - headerBackgroundColor*/;
+ font-size : 11px/*generalSizeFont*/;
+ font-family : verdana/*generalFamilyFont*/;
+ color : #000000/*generalTextColor*/;
+}
+
+.ds_left{
+ margin-right : 1px;
+}
+
+.ds_right{
+ margin-left : 1px;
+}
+
+.ds_digital{
+ cursor : pointer;
+ width : 2em;
+ text-align : center;
+ margin-left : 1px;
+ margin-right : 1px;
+ padding : 2px 2px 3px 2px;
+ border : 1px solid transparent;
+ border-top : 1px solid #A6A6A6/*tableBorderColor*/;
+ background : url(images/bg_field.png) top left repeat-x/*gradient - from
additionalBackgroundColor to tableBackgroundColor, background-color -
tableBackgroundColor*/;
+ display : inline-block;
+ font-size : 11px/*generalSizeFont*/;
+ font-family : verdana/*generalFamilyFont*/;
+ color : #000000/*generalTextColor*/;
+}
+
+.ds_over{
+ border : 1px solid #A6A6A6/*tableBorderColor*/;
+ background : url(images/bg_field.png) top left repeat-x #FFFFFF; /*gradient - from
additionalBackgroundColor to tableBackgroundColor, background-color -
tableBackgroundColor*/;
+}
+
+.ds_press{
+ border : 1px solid #A6A6A6/*tableBorderColor*/;
+ background : #ECF3FA; /*background-color - additionalBackgroundColor*/;
+}
+
+.ds_current{
+ cursor : default;
+ font-weight : bold;
+ border : 1px solid transparent;
+ border-bottom : 1px solid #A6A6A6/*tableBorderColor*/;
+ background : none;
+}
+
+.ds_disabled{
+ color : #A6A6A6/*tableBorderColor*/;
+ cursor : default;
+}
\ No newline at end of file
Added:
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js
===================================================================
---
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js
(rev 0)
+++
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js 2010-03-02
18:52:59 UTC (rev 16516)
@@ -0,0 +1,55 @@
+(function (jQuery, richfaces) {
+
+ richfaces.ui = richfaces.ui || {};
+
+ richfaces.ui.DataScroller = function(id, options) {
+ this.id = id;
+ this.options = options;
+ this.init(options);
+ };
+
+ jQuery.extend(richfaces.ui.DataScroller.prototype, ( function () {
+
+ return {
+ init: function(options) {
+ RichFaces.Event.bindById(this.id, 'rich:datascroller:onscroll',
this.submitFunction, this);
+ },
+
+ submitFunction: function(event) {
+ alert(test);
+ },
+
+ switchToPage: function(page) {
+ if (typeof page != 'undefined' && page != null) {
+ RichFaces.Event.callHandlerById(this.id, 'rich:datascroller:onscroll',
{'page': page});
+ }
+ },
+
+ next: function() {
+ this.switchToPage("next");
+ },
+
+ previous: function() {
+ this.switchToPage("previous");
+ },
+
+ first: function() {
+ this.switchToPage("first");
+ },
+
+ last: function() {
+ this.switchToPage("last");
+ },
+
+ fastForward: function() {
+ this.switchToPage("fastforward");
+ },
+
+ fastRewind: function() {
+ this.switchToPage("fastrewind");
+ }
+ }
+
+ })());
+
+})(jQuery, window.RichFaces);
\ No newline at end of file
Show replies by date