01: /*
02: * InterruptibleProcess.java
03: *
04: * Created on 6 June 2006, 01:45
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.underworldlabs.swing.util;
11:
12: /**
13: * Defines an interruptible (usually threaded) process.
14: *
15: * @author Takis Diakoumis
16: * @version $Revision: 1.1 $
17: * @date $Date: 2006/06/05 15:50:20 $
18: */
19: public interface InterruptibleProcess {
20:
21: /**
22: * Sets the process cancel flag as specified.
23: */
24: public void setCancelled(boolean cancelled);
25:
26: /**
27: * Indicates thatthis process should be interrupted.
28: */
29: public void interrupt();
30:
31: }
|