01: /*
02: * $RCSfile: VAIProductEvent.java,v $
03: * @modification $Date: 2001/09/28 19:33:15 $
04: * @version $Id: VAIProductEvent.java,v 1.1 2001/09/28 19:33:15 hfalk Exp $
05: *
06: */
07:
08: package com.memoire.vainstall.builder.event;
09:
10: import java.util.EventObject;
11:
12: /**
13: * This is
14: *
15: * @see com.memoire.vainstall.builder.VAIProductModel
16: * @see java.util.EventObject
17: *
18: * @author Henrik Falk
19: * @version $Id: VAIProductEvent.java,v 1.1 2001/09/28 19:33:15 hfalk Exp $
20: */
21: public class VAIProductEvent extends EventObject {
22:
23: public static final int PROJECT_LOADED = 1;
24: public static final int PROJECT_SAVED = 2;
25: public static final int PROJECT_DIRTY = 3;
26: public static final int PROJECT_ACTIVATED = 4;
27: public static final int PROJECT_DEACTIVATED = 5;
28:
29: public static final int PROPERTIES_CHANGED = 9;
30:
31: public static final int PROJECTNAME_CHANGED = 10;
32: public static final int PROJECTVERSION_CHANGED = 11;
33: public static final int PROJECTDIRECTORY_CHANGED = 12;
34:
35: public static final int PROJECT_REQUIREMENTS_MET = 20;
36: public static final int PROJECT_REQUIREMENTS_NOTMET = 21;
37:
38: /**
39: * The type of event
40: */
41: protected int type;
42:
43: /**
44: * User data provided by this event
45: */
46: protected String userData;
47:
48: public VAIProductEvent(Object source) {
49: this (source, PROPERTIES_CHANGED);
50: }
51:
52: public VAIProductEvent(Object source, int type) {
53: super (source);
54: this .type = type;
55: }
56:
57: public VAIProductEvent(Object source, int type, String userData) {
58: super (source);
59: this .type = type;
60: this .userData = userData;
61: }
62:
63: /**
64: * Returns the type of event
65: */
66: public int getType() {
67: return type;
68: }
69:
70: /**
71: * Returns the user data of the event
72: */
73: public String getUserData() {
74: return userData;
75: }
76:
77: }
|