The only thing I can see is your getValue method should be:
        getValue:function(){
                return this.base(arguments)+1;
        }


John

On 29/03/2012 19:24, "Benjamin Dreux" <[email protected]> wrote:

>Hi,
>I've created a new class, when compiling it i've got this error:
>
>  - Generate packages \Problem optimizing ifsr.ui.SteppedProgressBar;
>probably a syntax problem?
>
>here is my class
>
>qx.Class.define("ifsr.ui.SteppedProgressBar",{
>    extend:qx.ui.indicator.ProgressBar,
>    construct:function(value,max){
>        this.base(arguments,value,max);
>        this.addListener("click",this._onClick,this);
>    },
>    members:{
>        _onClick:function(event){
>            var clickPosition = event.getDocumentLeft();
>            var contentElem = this.getContentElement().getDomElement();
>            var location = qx.bom.element.Location.get(contentElem);
>            var width = qx.bom.element.Dimension.getWidth(contentElem);
>
>            var percentage = this._computePercentage(clickPosition,
>width, location.left);
>            var correctedValue = this._correctValue(percentage);
>            this.setValue(correctedValue);
>        },
>        _computePercentage:function(cursorLeft, widgetWidth, offset){
>          return ((cursorLeft-offset)/widgetWidth);
>        },
>        _correctValue:function(val){
>            return parseInt(val*this.getMaximum(),10);
>        },
>        getValue:function(){
>            return this.base()+1;
>        }
>    }
>});
>
>I can't see where the issue is.
>Does someone see it ??
>
>Is there a special meaning for this error
>
>Regards
>
>-- 
>Benjamin Dreux
>Analyste-Programmeur
>Chaire de logiciel libre-Finance Social et solidaire
>UQAM
>Montréal
>
>--------------------------------------------------------------------------
>----
>This SF email is sponsosred by:
>Try Windows Azure free for 90 days Click Here
>http://p.sf.net/sfu/sfd2d-msazure
>_______________________________________________
>qooxdoo-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to