@Override public void close() { super.close(); for (Iterator<NuclosEntityAbstractStep> it = getModel().stepIterator(); it.hasNext(); ) { final NuclosEntityAbstractStep step = it.next(); step.close(); } }
public CreateRoleWizard(Category category) { setLayout(new BorderLayout()); wizardModel = new CreateRoleWizardModel(category); wizard = new Wizard(wizardModel); wizard.addWizardListener( new WizardListener() { @Override public void wizardCancelled(WizardEvent e) { backAction.actionPerformed(null); } @Override public void wizardClosed(WizardEvent e) { backAction.actionPerformed(null); } }); add(wizard, BorderLayout.CENTER); }
@Override public void cancel() { super.cancel(); close(); }