Source code: com/eireneh/config/ConfigEvent.java
1
2 package com.eireneh.config;
3
4 import java.util.*;
5
6 /**
7 * An event indicating that an exception has happened
8 *
9 * <table border='1' cellPadding='3' cellSpacing='0' width="100%">
10 * <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
11 * Distribution Licence:<br />
12 * Project B is free software; you can redistribute it
13 * and/or modify it under the terms of the GNU General Public License,
14 * version 2 as published by the Free Software Foundation.<br />
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.<br />
19 * The License is available on the internet
20 * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
21 * <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
23 * The copyright to this program is held by it's authors.
24 * </font></td></tr></table>
25 * @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
26 * @see docs.Licence
27 * @author Joe Walker
28 */
29 public class ConfigEvent extends EventObject
30 {
31 /**
32 * Constructs an ConfigEvent object.
33 * @param source The event originator, or log stream
34 * @param message The string to be logged
35 */
36 public ConfigEvent(Object source, String key, Choice model)
37 {
38 super(source);
39
40 this.key = key;
41 this.model = model;
42 }
43
44 /**
45 * Returns the key.
46 * @return the key
47 */
48 public String getKey()
49 {
50 return key;
51 }
52
53 /**
54 * Returns the choice.
55 * @return the choice
56 */
57 public Choice getChoice()
58 {
59 return model;
60 }
61
62 /**
63 * Returns the choice.
64 * @return the choice
65 */
66 public Choice getPath()
67 {
68 return model;
69 }
70
71 /** The name of the choice */
72 private String key;
73
74 /** The Choice */
75 private Choice model;
76 }