Source code: com/flexstor/common/gui/sendsettings/SettingsComponentI.java
1 /*
2 * SettingsComponentI.java
3 *
4 * Copyright $Date: 2003/08/11 02:22:34 $ FLEXSTOR.net Inc.
5 *
6 * This work is licensed for use and distribution under license terms found at
7 * http://www.flexstor.org/license.html
8 *
9 */
10
11 package com.flexstor.common.gui.sendsettings;
12
13 import com.flexstor.common.awt.event.SettingsEventListener;
14 import com.flexstor.common.data.ejb.SettingData;
15
16 /**
17 * Interface for Address Book component.Any component, to be added to the viewer should implement
18 * this interface.
19 */
20
21 public interface SettingsComponentI
22 {
23 /**
24 * Add listener to the list of Listeners
25 * @param listener listner to add to listener list
26 * @return void
27 */
28 public void addSettingsListener(SettingsEventListener l);
29
30 /**
31 * Remove listener to the list of Listeners
32 * @param listener listner to remove to listener list
33 * @return void
34 */
35 public void removeSettingsListener(SettingsEventListener l);
36
37 /**
38 * Check if component is modified
39 * @param void
40 * @return booelan
41 */
42 public boolean isModified();
43
44 /**
45 * Populate Component with setting data
46 * @param setting Setting to populated gui
47 * @return void
48 */
49 public void populateGUI(SettingData setting);
50
51 /**
52 * Populate setting data with GUI values
53 * @param setting Setting to be populated
54 * @return void
55 */
56 public void synchronizeData(SettingData setting);
57
58 public void setModel(Object model);
59
60 public SettingData getDataObject();
61
62 }
63