| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.sf.cafebabe.util.LongOperation
public abstract class 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 | |
|---|---|
| static int | CANCEL_OPERATION | 
| protected  int | delay | 
| static int | ERROR_OPERATION | 
| static int | OK_OPERATION | 
| Fields inherited from class java.lang.Thread | 
|---|
| MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY | 
| Constructor Summary | |
|---|---|
| LongOperation(int delay) | |
| Method Summary | |
|---|---|
| protected abstract  void | execute() | 
|  java.lang.String | getResultMessage() | 
|  int | getResultType() | 
|  void | run() | 
|  void | startLoading() | 
|  void | stopLoading() | 
| 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 | 
| Field Detail | 
|---|
public static final int OK_OPERATION
public static final int CANCEL_OPERATION
public static final int ERROR_OPERATION
protected int delay
| Constructor Detail | 
|---|
public LongOperation(int delay)
| Method Detail | 
|---|
public void startLoading()
public void stopLoading()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
protected abstract void execute()
                         throws java.lang.Exception
java.lang.Exceptionpublic int getResultType()
public java.lang.String getResultMessage()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||