svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.utils / src / main / java / org / gvsig / utils / swing / threads / IMonitorableTask.java @ 40561
History | View | Annotate | Download (2.37 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
/* CVS MESSAGES:
|
25 |
*
|
26 |
* $Id: IMonitorableTask.java 29631 2009-06-29 16:56:19Z jpiera $
|
27 |
* $Log$
|
28 |
* Revision 1.3 2007-06-06 14:02:39 cesar
|
29 |
* Include the finished method in the abstract class. Add comments in the interface.
|
30 |
*
|
31 |
* Revision 1.2 2007/05/15 07:21:20 cesar
|
32 |
* Add the finished method for execution from Event Dispatch Thread
|
33 |
*
|
34 |
* Revision 1.1 2006/03/14 19:23:42 azabala
|
35 |
* *** empty log message ***
|
36 |
*
|
37 |
* Revision 1.2 2006/03/09 18:57:39 azabala
|
38 |
* *** empty log message ***
|
39 |
*
|
40 |
* Revision 1.1 2006/03/07 21:00:29 azabala
|
41 |
* *** empty log message ***
|
42 |
*
|
43 |
*
|
44 |
*/
|
45 |
package org.gvsig.utils.swing.threads; |
46 |
|
47 |
/**
|
48 |
* Long time task that could be monitored. The monitorization
|
49 |
* information that this task could offer is:<br>
|
50 |
* <ul>
|
51 |
* <li>Defined (number of steps known) or Undefined task</li>
|
52 |
* <li>Number of steps (for defined tasks)</li>
|
53 |
* <li>Initial and final step</li>
|
54 |
* <li>Description of the task (status)</li>
|
55 |
* <li>Description of subtasks (note)</li>
|
56 |
* </ul>
|
57 |
* @author azabala
|
58 |
*
|
59 |
*/
|
60 |
public interface IMonitorableTask extends ICancelableTask, |
61 |
ICancelMonitor { |
62 |
public int getInitialStep(); |
63 |
public int getFinishStep(); |
64 |
public int getCurrentStep(); |
65 |
public String getStatusMessage(); |
66 |
public String getNote(); |
67 |
public boolean isDefined(); |
68 |
/**
|
69 |
* This method is executed <b>from the Event Dispatch Thread</b>
|
70 |
* when the background task finishes. Any interaction with SWing
|
71 |
* objects should be placed here.
|
72 |
*/
|
73 |
public void finished(); |
74 |
|
75 |
} |
76 |
|