私は qooxdoo の初心者で、「検索」機能で使用する自動プログレス バーを作成しようとしています。
「setTimeout」関数の前に停止するように見えるため、値は変更されません
私が使用しているコード (ポップアップは VBox レイアウトのポップアップです):
var bar=new hello.automaticProgressBar();
bar.delayedLoop();
popup.add(bar);
私のautomaticProgressBar.js:
qx.Class.define("hello.automaticProgressBar",
{
extend : qx.ui.indicator.ProgressBar,
construct : function()
{
this.base(arguments);
//var i = 1;
},
members:{
i:1,
delayedLoop : function()
{
setTimeout(function ()
{
this.setValue(10*this.i);
this.i++;
if (this.i < 11)
{
alert(this.i);
this.delayedLoop();
}
}, 300)
}
}
});
推測はありますか?