KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > images > IconEvent


1 package org.oddjob.images;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.EventObject JavaDoc;
5
6 /**
7  * An event which encapselates information about a
8  * variables value.
9  *
10  * @author Rob Gordon
11  */

12
13 public class IconEvent extends EventObject JavaDoc
14         implements Serializable JavaDoc {
15
16     final private String JavaDoc id;
17
18     /**
19      * Event constructor.
20      *
21      * @param source The source of the event.
22      * @param id The icon id.
23      */

24     public IconEvent(Object JavaDoc source, String JavaDoc iconId) {
25
26         super(source);
27         this.id = iconId;
28     }
29
30     /**
31      * Get the variable name.
32      *
33      * @return The variable name.
34      */

35
36     public String JavaDoc getIconId() {
37     
38         return id;
39     }
40 }
41
Popular Tags