GateEvent.java
01 /*
02  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
03  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
04  *
05  *  This file is part of GATE (see http://gate.ac.uk/), and is free
06  *  software, licenced under the GNU Library General Public License,
07  *  Version 2, June 1991 (in the distribution as file licence.html,
08  *  and also available at http://gate.ac.uk/gate/licence.html).
09  *
10  *  Valentin Tablan 08/03/2001
11  *
12  *  $Id: GateEvent.java 12006 2009-12-01 17:24:28Z thomas_heitz $
13  */
14 package gate.event;
15 
16 import java.util.EventObject;
17 
18 /**
19  * The top level event class for all the event types fired by the Gate system.
20  */
21 public class GateEvent extends EventObject {
22 
23   public static final int FEATURES_UPDATED = 701;
24 
25   /**
26    * Constructor from source and type.
27    @param source the object that initiated this event
28    @param type the type on the event.
29    */
30   public GateEvent(Object source, int type) {
31     super(source);
32     this.type = type;
33   }
34 
35 
36   /**
37    * Gets the type of the event.
38    */
39   public int getType() {
40     return type;
41   }
42 
43   protected int type;
44 }