1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.xnap.commons.gui.wizard;
20
21 import javax.swing.Icon;
22 import javax.swing.JComponent;
23 import javax.swing.JPanel;
24
25 /***
26 * Provides the default implementation for a wizard panel.
27 *
28 * @author Steffen Pingel
29 */
30 public class DefaultWizardPage extends JPanel implements WizardPage {
31
32 private String description;
33 private Icon icon;
34 private String title;
35
36 public DefaultWizardPage()
37 {
38 }
39
40 public String getDescription()
41 {
42 return description;
43 }
44
45 public Icon getIcon()
46 {
47 return icon;
48 }
49
50 public JComponent getPanel()
51 {
52 return this;
53 }
54
55 public String getTitle()
56 {
57 return title;
58 }
59
60 public void setDescription(String description)
61 {
62 this.description = description;
63 }
64
65 public void setIcon(Icon icon)
66 {
67 this.icon = icon;
68 }
69
70 public void setTitle(String title)
71 {
72 this.title = title;
73 }
74
75 public boolean apply()
76 {
77 return true;
78 }
79
80 }