org.sf.cafebabe.util
Class TimerLongOperation

java.lang.Object
  extended by java.lang.Thread
      extended by org.sf.cafebabe.util.LongOperation
          extended by org.sf.cafebabe.util.TimerLongOperation
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
MailFrame.Sender

public abstract class TimerLongOperation
extends LongOperation

This class represents some long operation as Thread. It allows correctly kill such task. Additionally it produces event ActionEvent each delay mc for registered listener ActionListener.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.sf.cafebabe.util.LongOperation
CANCEL_OPERATION, delay, ERROR_OPERATION, OK_OPERATION
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimerLongOperation(int delay, java.awt.event.ActionListener listener)
           
 
Method Summary
 void startLoading()
           
 void stopLoading()
           
 
Methods inherited from class org.sf.cafebabe.util.LongOperation
execute, getResultMessage, getResultType, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimerLongOperation

public TimerLongOperation(int delay,
                          java.awt.event.ActionListener listener)
Method Detail

startLoading

public void startLoading()
Overrides:
startLoading in class LongOperation

stopLoading

public void stopLoading()
Overrides:
stopLoading in class LongOperation


Copyright 2006 Dream Programs Inc.. All Rights Reserved.