|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
fable.thread.FableThread
public class FableThread
FableThread is a thread that is used in Fable. It executes a series
of Runnable(s) linearly.
FableThread can execute both normal Runnables, which is sync'ed with the parent SWT thread, as well as
Non-GUI tasks, that are usually slow, that are not sync'ed with the GUI.
FableThread recognizes FableNonGUITask(s) as non-GUI tasks and all other runnable objects as GUI tasks.
FableThread is a daemon and terminates when the program stops.
tasksToDo Sequential list of tasks to do| 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 java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
FableThread(Display display)
Creates a new FableThread. |
|
| Method Summary | |
|---|---|
void |
addTask(java.lang.Runnable newTask,
FableComponent parentComponent)
Adds a task to the list of tasks needed to do |
void |
feedDeleted(FeedDeletedEvent fde)
Do appropriate action according to the event. |
void |
folderDeleted(FolderDeletedEvent fde)
Do appropriate action according to the event. |
boolean |
hasTasks()
Checks if this thread still has tasks to do |
void |
run()
Starts the execution of the Thread |
void |
stopThread()
Stops the thread |
| 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 |
|---|
public FableThread(Display display)
display - Display of the SWT GUI| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopThread()
public void addTask(java.lang.Runnable newTask,
FableComponent parentComponent)
newTask - New task to addparentComponent - The parent component in the GUI (Folder or Feed) that this task adds topublic boolean hasTasks()
public void feedDeleted(FeedDeletedEvent fde)
FeedDeletedListener
feedDeleted in interface FeedDeletedListenerfde - an event object contains relevant information about the event.public void folderDeleted(FolderDeletedEvent fde)
FolderDeletedListener
folderDeleted in interface FolderDeletedListenerfde - an event object contains relevant information about the event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||