org.geotools.util
Class NullProgressListener

Object
  extended by NullProgressListener
All Implemented Interfaces:
ProgressListener

public class NullProgressListener
extends Object
implements ProgressListener

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.

Since:
2.2
Module:
modules/library/main (gt-main.jar)

Constructor Summary
NullProgressListener()
          Creates a null progress listener with no description.
 
Method Summary
 void complete()
           
 void dispose()
           
 void exceptionOccurred(Throwable exception)
           
 String getDescription()
           
 float getProgress()
           
 InternationalString getTask()
           
 boolean isCanceled()
           
 void progress(float percent)
           
 void setCanceled(boolean cancel)
           
 void setDescription(String description)
           
 void setTask(InternationalString task)
           
 void started()
           
 void warningOccurred(String source, String location, String warning)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProgressListener

public NullProgressListener()
Creates a null progress listener with no description.

Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface ProgressListener

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface ProgressListener

started

public void started()
Specified by:
started in interface ProgressListener

progress

public void progress(float percent)
Specified by:
progress in interface ProgressListener

getProgress

public float getProgress()
Specified by:
getProgress in interface ProgressListener

complete

public void complete()
Specified by:
complete in interface ProgressListener

dispose

public void dispose()
Specified by:
dispose in interface ProgressListener

setCanceled

public void setCanceled(boolean cancel)
Specified by:
setCanceled in interface ProgressListener

isCanceled

public boolean isCanceled()
Specified by:
isCanceled in interface ProgressListener

warningOccurred

public void warningOccurred(String source,
                            String location,
                            String warning)
Specified by:
warningOccurred in interface ProgressListener

exceptionOccurred

public void exceptionOccurred(Throwable exception)
Specified by:
exceptionOccurred in interface ProgressListener

getTask

public InternationalString getTask()
Specified by:
getTask in interface ProgressListener

setTask

public void setTask(InternationalString task)
Specified by:
setTask in interface ProgressListener


Copyright © 1996-2010 Geotools. All Rights Reserved.