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