ControllerListener.java |
1 /* 2 * Copyright (c) 1998-2005, The University of Sheffield. 3 * 4 * This file is part of GATE (see http://gate.ac.uk/), and is free 5 * software, licenced under the GNU Library General Public License, 6 * Version 2, June 1991 (in the distribution as file licence.html, 7 * and also available at http://gate.ac.uk/gate/licence.html). 8 * 9 * ControllerListener.java 10 * 11 * Valentin Tablan, 28-Jun-2004 12 * 13 * $Id: ControllerListener.java,v 1.2 2005/01/11 13:51:34 ian Exp $ 14 */ 15 16 package gate.event; 17 18 import java.util.EventListener; 19 20 /** 21 * A listener for events generate by controllers. 22 */ 23 public interface ControllerListener extends EventListener{ 24 25 /** 26 * Called by the controller when a new PR has been added. 27 * @param evt the event. 28 */ 29 public void resourceAdded(ControllerEvent evt); 30 31 /** 32 * Called by the controller when a new PR has been removed. 33 * @param evt the event. 34 */ 35 public void resourceRemoved(ControllerEvent evt); 36 } 37