01: /*
02: * $Id: ProcessChangeEvent.java 490 2005-08-15 12:50:16Z hengels $
03: * (c) Copyright 2004 con:cern development team.
04: *
05: * This file is part of con:cern (http://concern.sf.net).
06: *
07: * con:cern is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU Lesser General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.concern.model;
15:
16: import java.util.EventObject;
17:
18: /**
19: * @version $Revision: 490 $
20: */
21: public class ProcessChangeEvent extends EventObject {
22: public static final int ADDED = 1;
23: public static final int CHANGED = 2;
24: public static final int REMOVED = 3;
25:
26: int action;
27: private Element element;
28:
29: public ProcessChangeEvent(Object source, Element element, int action) {
30: super (source);
31: this .element = element;
32: this .action = action;
33: }
34:
35: public Element getNode() {
36: return element;
37: }
38:
39: public int getAction() {
40: return action;
41: }
42: }
|