I had a solution to my problem. In the transition predicate, i need to check the event type. If it's say "save" and i'm in the editState, then return true. And after that, the fsm, or the transition can have add some listner. The listener could waite for a execute event on the save button, and then fire a save event to the fsm.
But i'm curious why you recommend to me to listen on mouseDown or mouseUp rather than on execute. Because i want to catch every kind of button activation, even with a enter or space. Regards 2011/3/17 Derrell Lipman <[email protected]>: > On Thu, Mar 17, 2011 at 10:16, Benjamin Dreux <[email protected]> > wrote: >> >> I would like to use the FSM package to describe the beahavior of my gui's >> app. >> With for instance an editState, and a transition out of thius state >> wich will be trigerred by some previous state and a click on the >> "save" button. >> Does anyone already think to things like this ? >> >> And how would you make thing work for this transition. Because, button >> does say if they are pressed or not. They just fire event. So i can't >> test a button state in my transition predicate. > > Hi Benjamin, > Yes, what you're looking to do is very reasonable. If you're using using > qx.ui.form.ToggleButton, then you can listen for the "changeValue" event. If > you're using a qx.ui.form.Button then you can determine button state by > listening for the "mousedown" and "mouseup" events rather than for > "execute". > Cheers, > Derrell > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Benjamin Dreux Analyste-Programmeur Chaire de logiciel libre-Finance Social et solidaire UQAM Montréal ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
