|
ObjectModificationEvent |
|
1 /* 2 * ObjectModificationEvent.java 3 * 4 * Copyright (c) 1998-2001, The University of Sheffield. 5 * 6 * This file is part of GATE (see http://gate.ac.uk/), and is free 7 * software, licenced under the GNU Library General Public License, 8 * Version 2, June 1991 (in the distribution as file licence.html, 9 * and also available at http://gate.ac.uk/gate/licence.html). 10 * 11 * Marin Dimitrov, 21/Sep/2001 12 * 13 */ 14 15 16 package gate.event; 17 18 import junit.framework.*; 19 20 public class ObjectModificationEvent extends GateEvent { 21 22 public static final int OBJECT_CREATED = 1000; 23 public static final int OBJECT_MODIFIED = 1001; 24 public static final int OBJECT_DELETED = 1002; 25 26 private static int subtype; 27 28 public ObjectModificationEvent(Object source, int type, int subtype) { 29 30 super(source,type); 31 32 Assert.assertTrue(type == OBJECT_CREATED || 33 type == OBJECT_DELETED || 34 type == OBJECT_MODIFIED); 35 36 this.subtype = subtype; 37 } 38 39 public int getSubType() { 40 return this.subtype; 41 } 42 }
|
ObjectModificationEvent |
|