01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor;
15:
16: import java.util.EventObject;
17:
18: /**
19: * Event providing information about what was changed in settings
20: *
21: * @author Miloslav Metelka
22: * @version 1.00
23: */
24:
25: public class SettingsChangeEvent extends EventObject {
26:
27: private Class kitClass;
28:
29: private String settingName;
30:
31: private Object oldValue;
32:
33: private Object newValue;
34:
35: public SettingsChangeEvent(Object source, Class kitClass,
36: String settingName, Object oldValue, Object newValue) {
37: super (source);
38: this .kitClass = kitClass;
39: this .settingName = settingName;
40: this .oldValue = oldValue;
41: this .newValue = newValue;
42: }
43:
44: public Class getKitClass() {
45: return kitClass;
46: }
47:
48: public String getSettingName() {
49: return settingName;
50: }
51:
52: public Object getOldValue() {
53: return oldValue;
54: }
55:
56: public Object getNewValue() {
57: return newValue;
58: }
59:
60: }
|