1 package com.github.sbugat.rundeckmonitor.wizard;
2
3 import java.awt.Component;
4
5 import com.github.sbugat.rundeckmonitor.configuration.RundeckMonitorConfiguration;
6
7
8
9
10
11
12
13 public abstract class WizardPanelDescriptor {
14
15
16 private final ConfigurationWizardStep panelIdentifier;
17
18
19 private final ConfigurationWizardStep back;
20
21
22 private final ConfigurationWizardStep next;
23
24
25 private final RundeckMonitorConfiguration rundeckMonitorConfiguration;
26
27
28
29
30
31
32
33
34
35 public WizardPanelDescriptor(final ConfigurationWizardStep panelIdentifierArg, final ConfigurationWizardStep backArg, final ConfigurationWizardStep nextArg, final RundeckMonitorConfiguration rundeckMonitorConfigurationArg) {
36 panelIdentifier = panelIdentifierArg;
37 back = backArg;
38 next = nextArg;
39 rundeckMonitorConfiguration = rundeckMonitorConfigurationArg;
40 }
41
42
43
44
45
46
47 public abstract Component getPanelComponent();
48
49
50
51
52
53
54 public final ConfigurationWizardStep getPanelDescriptorIdentifier() {
55 return panelIdentifier;
56 }
57
58
59
60
61
62
63 public final RundeckMonitorConfiguration getRundeckMonitorConfiguration() {
64 return rundeckMonitorConfiguration;
65 }
66
67
68
69
70
71
72 public final ConfigurationWizardStep getNext() {
73 return next;
74 }
75
76
77
78
79
80
81 public final ConfigurationWizardStep getBack() {
82 return back;
83 }
84
85
86
87
88 public void aboutToDisplayPanel() {
89
90 }
91
92
93
94
95
96
97 public abstract boolean validate();
98 }