public final class RundeckMonitorConfigurationWizard extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
BACK_BUTTON_LABEL
Back button label.
|
private JButton |
backButton
Back/previous step button of the wizard.
|
private static String |
CANCEL_BUTTON_LABEL
Cancel button label.
|
private CardLayout |
cardLayout
Wizard main card layout for steps.
|
private JPanel |
cardPanel
Wizard main panel.
|
private ConfigurationWizardStep |
currentStep
Current wizard step.
|
private static String |
FINISH_BUTTON_LABEL
Finish button label.
|
private Map<ConfigurationWizardStep,WizardPanelDescriptor> |
map
Wizard steps maps.
|
private static String |
NEXT_BUTTON_LABEL
Next button label.
|
private JButton |
nextButton
Next step button of the wizard.
|
private static String |
WIZARD_FRAME_TITLE
Configuration wizard frame title.
|
private JFrame |
wizardFrame
Configuration wizard main frame.
|
Constructor and Description |
---|
RundeckMonitorConfigurationWizard(RundeckMonitorConfiguration rundeckMonitorConfiguration,
boolean exitOnClose)
Initialize a new configuration wizard.
|
Modifier and Type | Method and Description |
---|---|
private void |
initComponents(boolean exitOnClose)
Initialize the main card panel and listeners.
|
void |
registerWizardPanel(WizardPanelDescriptor panel)
Add a new wizard panel to the wizard.
|
void |
setCurrentPanel(ConfigurationWizardStep id,
boolean next)
Change the current panel to a new one with validation of the current if needed.
|
private static final String WIZARD_FRAME_TITLE
private static final String BACK_BUTTON_LABEL
private static final String CANCEL_BUTTON_LABEL
private static final String FINISH_BUTTON_LABEL
private static final String NEXT_BUTTON_LABEL
private final Map<ConfigurationWizardStep,WizardPanelDescriptor> map
private ConfigurationWizardStep currentStep
private final JFrame wizardFrame
private JPanel cardPanel
private CardLayout cardLayout
private JButton backButton
private JButton nextButton
public RundeckMonitorConfigurationWizard(RundeckMonitorConfiguration rundeckMonitorConfiguration, boolean exitOnClose)
rundeckMonitorConfiguration
- RunDeck monitor configurationexitOnClose
- indicate if the program must exit if the wizard is closedprivate void initComponents(boolean exitOnClose)
exitOnClose
- indicate if Cancel/close the wizard will exitpublic void registerWizardPanel(WizardPanelDescriptor panel)
panel
- panel to addpublic void setCurrentPanel(ConfigurationWizardStep id, boolean next)
id
- identifier or the targeted Wizard stepnext
- indicate if it's a next stepCopyright © 2013–2015. All rights reserved.