| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canQuit(WizardStep step) { |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canClose(WizardStep step) { |
| | | return step == Step.PROGRESS; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canCancel(WizardStep step) { |
| | | return step == Step.CONFIRM_UNINSTALL; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void cancelClicked(WizardStep cStep, QuickSetup qs) { |
| | | if (cStep == Step.CONFIRM_UNINSTALL) { |
| | | qs.quit(); |
| | | } else { |
| | | throw new IllegalStateException( |
| | | "Cancel only can be clicked on CONFIRM_UNINSTALL step"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Update the UserData object according to the content of the review |
| | | * panel. |
| | | */ |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean isCancellable() { |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void cancel() { |
| | | // do nothing; not cancellable |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void windowClosing(QuickSetupDialog dlg, WindowEvent evt) { |
| | | if (dlg.getDisplayedStep() == Step.PROGRESS) { |
| | | // Simulate a close button event |