Author: nbelaevski
Date: 2008-02-08 20:14:34 -0500 (Fri, 08 Feb 2008)
New Revision: 5970
Modified:
trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
Log:
ComponentControl & ProgressBar integration
Modified:
trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
===================================================================
---
trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-02-09
01:14:31 UTC (rev 5969)
+++
trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-02-09
01:14:34 UTC (rev 5970)
@@ -121,7 +121,16 @@
}
return placeholders;
},
- setLabel: function (str) {
+ setLabel: function (arg, params) {
+ var str;
+
+ if (params && params.label) {
+ //componentControl
+ str = params.label;
+ } else {
+ str = arg;
+ }
+
if (this.state != "progressState") { return; }
var d = $(this.id + ":remain");
if (!d) { return; }
@@ -139,10 +148,20 @@
getMinValue: function () {
return this.minValue;
},
+
isAjaxMode: function () {
return (this.getMode() == "ajax");
},
- setValue: function (val) {
+ setValue: function (arg, params) {
+ var val;
+
+ if (params && params.value) {
+ //componentControl
+ val = params.value;
+ } else {
+ val = arg;
+ }
+
this.value = val;
var p = val;
val = "" + val;
Show replies by date