01: /*
02: * ProgressObserver.java - Progression monitor
03: * :tabSize=8:indentSize=8:noTabs=false:
04: * :folding=explicit:collapseFolds=1:
05: *
06: * Copyright (C) 2005 Matthieu Casanova
07: *
08: * This program is free software; you can redistribute it and/or
09: * 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: * Update the progress value.
35: *
36: * @param value the new value
37: * @since jEdit 4.3pre3
38: */
39: void setValue(long value);
40:
41: /**
42: * Update the maximum value.
43: *
44: * @param value the new maximum value
45: * @since jEdit 4.3pre3
46: */
47: void setMaximum(long value);
48:
49: /**
50: * Update the status label.
51: *
52: * @param status the new status label
53: * @since jEdit 4.3pre3
54: */
55: void setStatus(String status);
56: }
|