As Derrell asked here is the description of what i understood about
the FiniteStateMachine.eventListener() method.
According to the mouse haze exemple. When we want to run an event on
the FSM. Here is a part of the code that make me think this way :
// Dispatch an event to cause us to continue.
var event = new qx.event.type.Event();
event.setType("KickInTheAss");
_this.eventListener(event);
As i understand it. FSM doesn't use a classic .addListener() the
change it's state.
It look like i'm wrong...
What I'm trying to do is to change the fsm state according to some button push.
Here is what I did to match the button push event to the fsm event:
this.getObject("addButton").addListener("execute",function(){
var e = new qx.event.type.Event();
e.setType("add");
this.eventListener(e);
},this);
This beeing my FSM.
Is there a better way to accomplish what i want ??
Regards
--
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