org.shiftone.memento.view.ucare
Class AbstractProcess

java.lang.Object
  extended byorg.shiftone.memento.view.ucare.AbstractProcess
All Implemented Interfaces:
Process
Direct Known Subclasses:
BrowsePicturesProcess, BrowsePicturesProcess, BusyProcessTestCase.SampleProcess, ImportPicturesProcess, ProcessPicturesProcess

public abstract class AbstractProcess
extends java.lang.Object
implements Process


Field Summary
protected  boolean interrupted
           
static org.apache.log4j.Logger LOG
           
protected  java.util.List processListenerList
           
protected  int totalSteps
           
 
Constructor Summary
AbstractProcess()
           
 
Method Summary
 void addProcessListener(ProcessListener listener)
           
 void clearProcessListeners()
           
protected  void fireProcessEvent(java.lang.Integer stepNum, java.lang.String message)
           
 int getTotalSteps()
           
 void interrupt()
           
protected  boolean isInterrupted()
           
 void removeProcessListener(ProcessListener listener)
           
protected  void setTotalSteps(int totalSteps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shiftone.memento.view.ucare.Process
isInterruptable, run
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG

processListenerList

protected java.util.List processListenerList

interrupted

protected boolean interrupted

totalSteps

protected int totalSteps
Constructor Detail

AbstractProcess

public AbstractProcess()
Method Detail

interrupt

public void interrupt()
Specified by:
interrupt in interface Process

isInterrupted

protected boolean isInterrupted()

setTotalSteps

protected void setTotalSteps(int totalSteps)

getTotalSteps

public int getTotalSteps()
Specified by:
getTotalSteps in interface Process

fireProcessEvent

protected void fireProcessEvent(java.lang.Integer stepNum,
                                java.lang.String message)

addProcessListener

public void addProcessListener(ProcessListener listener)
Specified by:
addProcessListener in interface Process

clearProcessListeners

public void clearProcessListeners()
Specified by:
clearProcessListeners in interface Process

removeProcessListener

public void removeProcessListener(ProcessListener listener)
Specified by:
removeProcessListener in interface Process