/** * Called to initialize the step. When this method is called depends on the kind of wizard model * that is used. * * The {@link WizardModel static wizard model} knows all the steps upfront and initializes themm * when starting up. This method will be called when the wizard is {@link #init(IWizardModel) * initializing}. * * The {@link DynamicWizardModel dynamic wizard model} initializes steps every time they are * encountered. * * This method sets the wizard model and then calls template method * {@link #onInit(IWizardModel)} * * @param wizardModel * the model to which the step belongs. */ @Override public final void init(final IWizardModel wizardModel) { this.wizardModel = wizardModel; onInit(wizardModel); }
/** * Called to initialize the step. When this method is called depends on the kind of wizard model * that is used. * * The {@link WizardModel static wizard model} knows all the steps upfront and initializes themm * when starting up. This method will be called when the wizard is {@link #init(IWizardModel) * initializing}. * * The {@link DynamicWizardModel dynamic wizard model} initializes steps every time they are * encountered. * * This method sets the wizard model and then calls template method * {@link #onInit(IWizardModel)} * * @param wizardModel * the model to which the step belongs. */ public final void init(IWizardModel wizardModel) { this.wizardModel = wizardModel; onInit(wizardModel); }