Jan 20

Today I’m going to clean up my code for a wizard-framework developed in Java. At the moment the code and design is somewhat messy. I think I will change some of the overall design into a factory-method-pattern and take a look at the result.

At the moment the API requires the using coder to inherit and instanciate two types of classes for each page
of the wizard.

With the factory-method-pattern this could be reduced to just one, by pushing one page-class inside the wizard itself and making it accessibe by a factory-method, so in the end the coder just has to instanciate and build his pages. Then he just has to add them to the wizard, et voilá.

Parallel to this I invented a similar framework for a preferences-dialogue. Maybe I can use the same shit to simplify some things her too.


leave a reply