| | |
| | | |
| | | import org.opends.quicksetup.ButtonName; |
| | | import org.opends.quicksetup.WizardStep; |
| | | import org.opends.quicksetup.upgrader.Upgrader; |
| | | import org.opends.quicksetup.event.ButtonActionListener; |
| | | import org.opends.quicksetup.event.ButtonEvent; |
| | | import org.opends.quicksetup.installer.Installer; |
| | | import org.opends.quicksetup.uninstaller.Uninstaller; |
| | | |
| | | import javax.swing.*; |
| | | import java.awt.*; |
| | |
| | | |
| | | // The quit button appears on all the panels leading up |
| | | // to the progress panel |
| | | quitButton.setVisible(!step.isProgressStep()); |
| | | quitButton.setVisible(!step.isProgressStep() && !step.isFinishedStep()); |
| | | |
| | | // The close button is only used on the progress panel and |
| | | // is only enabled once progress has finished or cancelled. |
| | | closeButton.setVisible(step.isProgressStep()); |
| | | closeButton.setVisible(step.isProgressStep() || step.isFinishedStep()); |
| | | closeButton.setEnabled(application.getCurrentProgressStep().isLast()); |
| | | } |
| | | |
| | |
| | | nextFinishPanel.setOpaque(false); |
| | | nextFinishPanel.add(nextButton, gbcAux); |
| | | |
| | | // TODO: remove this hack |
| | | if (getApplication() instanceof Installer || |
| | | getApplication() instanceof Upgrader) { |
| | | if (getApplication().finishOnLeft()) { |
| | | nextFinishPanel.add(finishButton, gbcAux); |
| | | } |
| | | width = |
| | |
| | | gbc.fill = GridBagConstraints.NONE; |
| | | gbc.insets.left = UIFactory.HORIZONTAL_INSET_BETWEEN_BUTTONS; |
| | | |
| | | // TODO: remove this hack |
| | | if (getApplication() instanceof Uninstaller) { |
| | | if (!getApplication().finishOnLeft()) { |
| | | gbc.insets.right = UIFactory.HORIZONTAL_INSET_BETWEEN_BUTTONS; |
| | | add(finishButton, gbc); |
| | | gbc.insets.right = 0; |