1 package com.explosion.utilities.preferences;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 /***
23 * @author Stephen
24 * Created on May 31, 2004
25 * This class represents a change to an Preference. It has an event code
26 * and the object which changed
27 */
28 public class PreferenceChangeEvent {
29
30 public static final int PROPERTY_VALUE_CHANGED = 0;
31
32 public static final int PROPERTY_COLLECTION_VALUE_CHANGED = 1;
33 private int changeCode;
34 private Preference preference;
35
36 public PreferenceChangeEvent(int changeCode, Preference preference)
37 {
38 this.changeCode = changeCode;
39 this.preference = preference;
40 }
41 /***
42 * @return Returns the changeCode.
43 */
44 public int getChangeCode() {
45 return changeCode;
46 }
47 /***
48 * @param changeCode The changeCode to set.
49 */
50 public void setChangeCode(int changeCode) {
51 this.changeCode = changeCode;
52 }
53 /***
54 * @return Returns the preference.
55 */
56 public Preference getPreference() {
57 return preference;
58 }
59 /***
60 * @param preference The preference to set.
61 */
62 public void setPreference(Preference preference) {
63 this.preference = preference;
64 }
65 }