1 package siouxsie.desktop.option;
2
3 import javax.swing.JComponent;
4
5 /**
6 * The main preferences renderer.
7 * @author Arnaud Cogoluegnes
8 * @version $Id$
9 */
10 public interface IPreferencesRenderer {
11
12 /**
13 * The main component.
14 * @return
15 */
16 public JComponent getComponent();
17
18 /**
19 * Called when all the preferences are to be saved
20 * @throws Exception
21 */
22 public void save() throws Exception;
23
24 /**
25 * Called when all the preferences are to be cancel or ignored.
26 * @throws Exception
27 */
28 public void cancel() throws Exception;
29
30 }