1 package fr.ove.applet;
2
3 import fr.ove.applet.events.AppletListener;
4 import fr.ove.applet.events.AppletEvent;
5
6 /***
7 * The interface that all applet that wants to be listenable must implement.
8 *
9 * @author © 1999 DIRAT Laurent
10 * @version 1.0 30/04/99
11 */
12 public interface ListenableApplet {
13 /***
14 * Sets the name of the applet.
15 * @param name the name of the applet.
16 */
17 public void setName(String name);
18
19 /***
20 * Returns the name of the applet.
21 */
22 public String getName();
23
24 /***
25 * Registers a listener of the applet.
26 */
27 public void addAppletListener(AppletListener appletListener);
28
29 /***
30 * Unregisters the specified listener of the applet.
31 * @param appletListener the listener to remove.
32 */
33 public void removeAppletListener(AppletListener appletListener);
34
35 /***
36 * Fires an event to all the registered listeners of the applet.
37 * @param appletEvent the event to fire.
38 */
39 public void fireAppletEvent(AppletEvent appletEvent);
40 }