1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.xnap.gui;
21
22 import javax.swing.Icon;
23 import javax.swing.JComponent;
24
25 /***
26 * Defines the requirements for panels that are shown in the wizard or
27 * preferences dialog.
28 *
29 * @see PreferencesDialog
30 * @see xnap.gui.component.DefaultWizardDialog
31 */
32 public interface SettingsPanel {
33
34
35
36 /***
37 * Invoked when the dialog is closed or the apply button is pressed.
38 *
39 * @exception IllegalArgumentException thrown when settings could not
40 * be applied
41 */
42 void apply() throws Exception;
43
44 /***
45 * Returns a short description of the panel.
46 */
47 String getDescription();
48
49 /***
50 * Returns an icon.
51 *
52 * @see xnap.gui.component.DefaultWizardDialog
53 */
54 Icon getIcon();
55
56 /***
57 * Returns the panel.
58 */
59 JComponent getPanel();
60
61 /***
62 * Returns the title of the panel.
63 */
64 String getTitle();
65
66 }
67