ProgressListener.java |
1 /* 2 * ProgressListener.java 3 * 4 * Copyright (c) 1998-2005, 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 * Valentin Tablan, 03/07/2000 12 * 13 * $Id: ProgressListener.java,v 1.4 2005/01/11 13:51:34 ian Exp $ 14 */ 15 16 package gate.event; 17 18 import java.util.EventListener; 19 20 /** This interface describes objects that can register themselves as listeners 21 * to ProcessProgressReporters. 22 * They need to be able to handle progress change and process finished events. 23 * 24 */ 25 public interface ProgressListener extends EventListener{ 26 27 /** 28 * Called when the progress has changed 29 * 30 * @param i 31 */ 32 public void progressChanged(int i); 33 34 /** 35 * Called when the process is finished. 36 * 37 */ 38 public void processFinished(); 39 40 } // ProgressListener 41 42