1 package siouxsie.desktop.option; 2 3 import javax.swing.JComponent; 4 5 /** 6 * Base interface for option pane. 7 * @author Arnaud Cogoluegnes 8 * @version $Id$ 9 * @todo would need a pre-commit method? (useful for a IOptionPane stack) 10 */ 11 public interface IOptionPane { 12 13 /** 14 * The name 15 * @return 16 */ 17 public String getName(); 18 19 /** 20 * The option pane component (form) 21 * @return 22 */ 23 public JComponent getComponent(); 24 25 /** 26 * Called when the preferences are to be saved from the form 27 * @throws Exception 28 */ 29 public void save() throws Exception; 30 31 /** 32 * Widget creation. 33 * 34 */ 35 public void init(); 36 37 }