diff options
Diffstat (limited to 'swat.obsolete/style/qooxdoo/widgets/managers/QxRangeManager.js')
-rw-r--r-- | swat.obsolete/style/qooxdoo/widgets/managers/QxRangeManager.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/swat.obsolete/style/qooxdoo/widgets/managers/QxRangeManager.js b/swat.obsolete/style/qooxdoo/widgets/managers/QxRangeManager.js new file mode 100644 index 0000000000..c9757cb3ba --- /dev/null +++ b/swat.obsolete/style/qooxdoo/widgets/managers/QxRangeManager.js @@ -0,0 +1,2 @@ +/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */ +function QxRangeManager(){QxTarget.call(this);};QxRangeManager.extend(QxManager,"QxRangeManager");QxRangeManager.addProperty({name:"value",type:Number,defaultValue:0});QxRangeManager.addProperty({name:"min",type:Number,defaultValue:0});QxRangeManager.addProperty({name:"max",type:Number,defaultValue:100});proto._checkValue=function(_b1){return Math.max(this.getMin(),Math.min(this.getMax(),Math.floor(_b1)));};proto._modifyValue=function(_b1,_b2,_b3,_b4){if(this.hasEventListeners("change")){this.dispatchEvent(new QxEvent("change"));};return true;};proto._checkMax=function(_b1){return Math.floor(_b1);};proto._modifyMax=function(_b1,_b2,_b3,_b4){this.setValue(Math.min(this.getValue(),_b1));if(this.hasEventListeners("change")){this.dispatchEvent(new QxEvent("change"));};return true;};proto._checkMin=function(_b1){return Math.floor(_b1);};proto._modifyMin=function(_b1,_b2,_b3,_b4){this.setValue(Math.max(this.getValue(),_b1));if(this.hasEventListeners("change")){this.dispatchEvent(new QxEvent("change"));};return true;};
\ No newline at end of file |