Aus einem OSS-Java-Installer - die betreffende Klasse heißt "Mage":
Code:/** * This class is the starting point where the whole gui is created and managed. * When called, it initializes the SWT thingy and then interates through an * array, meaning a sorted list of Strings holding the names of the classes that * will be called in order to display certain pages. He implements the * ControlAdapter to catch the events triggered by a click on the `Next >' * button. When catched, the event forces the mage to dispose his current * creature (meaning to call the `die()' of that class), then he sets * currentDialogue += 1 and summons the next one by using Java's reflection * API. * Every "page" or dialogue class must be a concrete class of `Creature' * to implement the `summon' (to bring the dialogue up) and the `die' * (to dispose it) method. * Why the funny name? Well, this whole application will be called an Install * Wizard. A wizard is a Mage, that's why this class is called `Mage'. And * because he will summon the pages, those pages are called `Creatures'. The * idea came when I was playing D&D the other day. And, btw, program creators * need to have fun after blood, sweat and tears. ;-) * By the way, this is an Arch Mage, beware! :^) * */
Lesezeichen