Good idea. However I would prefer a static class with these method or even better: Write a class for every method (inform, alert, confirm, ...) you have created. Every class extends qx.ui.window.Window (or create a basic Dialog class for all stuff currently in _createWindow).
Just my 2 cents. Sebastian blattgold.cb schrieb: > Hello, > > wanted to let you know about a new snippet: > > Asynchronous (Non-Blocking) User Interaction > > JavaScript’s commands to interact with the user (alert, confirm, prompt) > are extremely limited and they have a very nasty side-effect: they block > the UI and all javascript processes, such as redrawing the layout, rpc > requests, etc. > > Here is a mixin for qx.application.Gui that provides the following methods: > > * > inform : inform the user > * > alert : warn the user > * > confirm: let the user confirm something > * > offer : give the user a set of choices > * > prompt : let the user enter some text > > All functions are non-blocking and therefore require a callback function > that is called when the user has reacted to the information presented. > > http://qooxdoo.org/documentation/0.7/snippets/asynchronous_user_interaction > > I was hoping for a long time someone else would be writing this mixin > ;-) but now I needed it for my application because the > alert/prompt/confirm functions caused a lot of problems for timeouts etc... > > Feel free to improve the code.... > > Enjoy, > Christian > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel