View Javadoc

1   package fr.ove.palette.events;
2   
3   import java.util.EventObject;
4   import fr.ove.palette.*;
5   
6   /***
7   * The event to send to all objects that implements the interface PaletteListener
8   * and which want to execute the control actions.
9   *
10  * @author © 1999 DIRAT Laurent
11  * @version 1.0  18/09/1999
12  */
13  public class PaletteEvent extends EventObject {
14      /***
15      * The information to transmit to the listener of the palette.
16      */
17      private PaletteInfo paletteInfo;
18  
19      /***
20      * The constructor.
21      * @param src the object which produces this event.
22      */
23      public PaletteEvent(Object src) {
24          super(src);
25      }
26  
27      /***
28      * Sets the information to transmit to the listener of the palette
29      * @param data the information to transmit.
30      */
31      public void setPaletteInfo(PaletteInfo paletteInfo) {
32          this.paletteInfo = paletteInfo;
33      }
34  
35      /***
36      * Returns the information associated with the event.
37      */
38      public PaletteInfo getPaletteInfo() {
39          return paletteInfo;
40      }
41  }