KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > sp > util > ProgressObserver


1 /*
2  * ProgressObserver.java - Progression monitor
3  * :tabSize=8:indentSize=8:noTabs=false:
4  * :folding=explicit:collapseFolds=1:
5  *
6  * Copyright (C) 2005 Matthieu Casanova
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  */

22
23 package org.gjt.sp.util;
24
25 /**
26  * Interface used to monitor things that can progress.
27  *
28  * @author Matthieu Casanova
29  * @version $Id: ProgressObserver.java 5231 2005-07-27 21:19:39Z kpouer $
30  * @since jEdit 4.3pre3
31  */

32 public interface ProgressObserver
33 {
34     /**
35      * Update the progress value.
36      *
37      * @param value the new value
38      * @since jEdit 4.3pre3
39      */

40     void setValue(long value);
41      
42     /**
43      * Update the maximum value.
44      *
45      * @param value the new maximum value
46      * @since jEdit 4.3pre3
47      */

48     void setMaximum(long value);
49      
50     /**
51      * Update the status label.
52      *
53      * @param status the new status label
54      * @since jEdit 4.3pre3
55      */

56     void setStatus(String JavaDoc status);
57 }
58
Popular Tags