|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.util.NullProgressListener
A default progress listener implementation suitable for subclassing.
This implementation supports cancelation and getting/setting the description. The default implementations of the other methods do nothing.
Constructor Summary | |
NullProgressListener()
Creates a null progress listener with no description. |
Method Summary | |
void |
complete()
Notifies this listener that the operation has finished. |
void |
dispose()
Release any resources used by this listener. |
void |
exceptionOccurred(java.lang.Throwable exception)
Reports an exception. |
java.lang.String |
getDescription()
Returns the description for the lengthly operation to be reported, or if none. |
boolean |
isCanceled()
Is this job canceled? |
void |
progress(float percent)
Notifies this listener of progress in the lengthly operation. |
void |
setCanceled(boolean cancel)
Indicate that progress should is canceled. |
void |
setDescription(java.lang.String description)
Set the description for the lenghtly operation to be reported. |
void |
started()
Notifies this listener that the operation begins. |
void |
warningOccurred(java.lang.String source,
java.lang.String margin,
java.lang.String warning)
Reports a warning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullProgressListener()
Method Detail |
public java.lang.String getDescription()
ProgressListener
getDescription
in interface ProgressListener
public void setDescription(java.lang.String description)
ProgressListener
setDescription
in interface ProgressListener
description
- The new description, or if none.public void started()
ProgressListener
started
in interface ProgressListener
public void progress(float percent)
ProgressListener
progress
in interface ProgressListener
public void complete()
ProgressListener
complete
in interface ProgressListener
public void dispose()
ProgressListener
dispose
in interface ProgressListener
public void setCanceled(boolean cancel)
ProgressListener
setCanceled
in interface ProgressListener
public boolean isCanceled()
ProgressListener
isCanceled
in interface ProgressListener
public void warningOccurred(java.lang.String source, java.lang.String margin, java.lang.String warning)
ProgressListener
warningOccurred
in interface ProgressListener
source
- The source of the warning, or if none. This is typically the
filename in process of being parsed.margin
- Text to write on the left side of the warning message, or if none.
This is typically the line number where the error occured in the file.warning
- The warning message.public void exceptionOccurred(java.lang.Throwable exception)
ProgressListener
exceptionOccurred
in interface ProgressListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |