skar wrote:
> Hi,
>
> I want to be able to show a busy spinner in the foreground and maybe
> make the app dull a bit, when a server remote request is active. Any
> ideas on how to do it?
>   

You could use an image like this [1], on top of a semi-transparent 
blocker [2].

> If I could somehow extend the qx.io.remote.Request class to do that,
> it'd be awesome, as I wouldn't need to repeat the complete/fail/timeout
> etc listener every time I have a new request.
>   

Yes, you could do that. You could create a derived class MyRequest which 
derives from qx.io.remote.Request. MyRequest could add default listeners 
in the constructor, so each instance of MyRequest had some default event 
handling pre-installed. Since event listeners "stack up" the individual 
instance could still do another call to this.addListener and add another 
call back to the same event (like 'completed'), in order to do 
individual work that goes beyond the default behaviour. Both event 
listeners would get called for the same event in order.

T.

[1] 
http://demo.qooxdoo.org/devel/feedreader/resource/feedreader/images/loading66.gif
[2] http://demo.qooxdoo.org/devel/apiviewer/index.html#qx.html.Blocker

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to