I have an interface that defines 3 getters for a "Step" in a wizard.

 

Public function get valid():Boolean;

Public function get next():MyEvent;

Public function get previous():MyEvent;

 

Valid: is the current step of the wizard valid

Next/Previous: is the next/previous CairngormEvent in the "chain"

 

I'm getting into a situation where I'm writing a lot of what seems to be
redundant code just to generate the appropriate events when valid, next
and previous change because, according to the documentation, we need
both a getter and a setter for "simple" data binding events.

 

Valid will change any time the mx:Validator's change, next will return
null or the appropriate event based on whether the step is valid or
simply null at the end of the steps, previous returns the previous step,
or null if it's the first step.

 

Going down the path that I'm currently following, I have to write the
exact same event generation code for each of my 8 steps, and it doesn't
seem to be trivial.  Does anyone have any insight into how I could solve
this problem more simply?

 

Thanks!

 

Jay Proulx

Application Developer

Internet Delivery Services - eVision Team

[EMAIL PROTECTED]

(613) 783-6711

 

Reply via email to