|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.utils.progress.ProgressManager
public abstract class ProgressManager
Nested Class Summary | |
---|---|
protected static class |
ProgressManager.ProgressEventDispatchThreadEventLauncher
Private Class which simply fires the events using a copy of the listeners list in order to avoid problems with listeners that remove themselves or are removed by someone else |
Constructor Summary | |
---|---|
ProgressManager()
Default constructor. |
|
ProgressManager(boolean sendDelayedMessages)
|
Method Summary | |
---|---|
void |
addProcessingEventListener(ProcessingEventListener listener)
Adding a listener to the ProcessingEventListener s' list. |
void |
dispose()
Perform proper clean up. |
void |
fireEvent(java.lang.String string,
double percentage)
Firing an event to listeners in order to inform them about what we are doing and about the percentage of work already carried out. |
void |
fireException(java.lang.Exception ex)
Firing an exception event to listeners in order to inform them that processing broke and we can no longer proceed. |
void |
fireException(java.lang.String string,
double percentage,
java.lang.Exception ex)
Firing an exception event to listeners in order to inform them that processing broke and we can no longer proceed |
boolean |
getStopThread()
Should this thread be stopped? |
void |
removeAllProcessingEventListeners()
Removing all the listeners. |
void |
removeProcessingEventListener(ProcessingEventListener listener)
Removing a ProcessingEventListener from the listeners' list. |
abstract void |
run()
This method is responsible for doing the actual processing. |
void |
stopThread()
Stop this thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgressManager(boolean sendDelayedMessages)
public ProgressManager()
Method Detail |
---|
public final void addProcessingEventListener(ProcessingEventListener listener)
ProcessingEventListener
s' list.
listener
- to add to the list of listeners.public final void removeProcessingEventListener(ProcessingEventListener listener)
ProcessingEventListener
from the listeners' list.
listener
- ProcessingEventListener
to remove from the list of
listeners.public final void removeAllProcessingEventListeners()
public void fireEvent(java.lang.String string, double percentage)
string
- The message to show.percentage
- The percentage for the process.public void fireException(java.lang.String string, double percentage, java.lang.Exception ex)
string
- The message to show.percentage
- The percentage for the process.ex
- the actual exception occurredpublic void fireException(java.lang.Exception ex)
fireException(String, double, Exception)
with the exception message and -1 as percentage.
ex
- the actual exception occurredpublic final boolean getStopThread()
public final void stopThread()
stop
- public void dispose()
public abstract void run() throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |