PageRenderTime 112ms CodeModel.GetById 109ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/org/gjt/sp/util/ProgressObserver.java

#
Java | 57 lines | 7 code | 4 blank | 46 comment | 0 complexity | bcacb2932e2a77486eb520dd0c23cad9 MD5 | raw file
 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
23package 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 */
32public 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 status);
57}