com.virtuosotechnologies.lib.swing
Class ModalProgressTracker

java.lang.Object
  extended bycom.virtuosotechnologies.lib.swing.ModalProgressTracker

public class ModalProgressTracker
extends Object

An object that spawns a modal progress tracker dialog for AsyncJobs.

Author:
Daniel Azuma

Constructor Summary
ModalProgressTracker(JComponent parent)
          Constructor
ModalProgressTracker(JComponent parent, int updateIntervalMillis)
          Constructor
ModalProgressTracker(JComponent parent, int updateIntervalMillis, int initialDialogWidth, int initialDialogHeight)
          Constructor
 
Method Summary
 AsyncJobListener getAsyncJobListener()
          Get the AsyncJobListener
 void stopTrackingFor(AsyncJob job)
          Stop progress reporting for a particular job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModalProgressTracker

public ModalProgressTracker(JComponent parent)
Constructor

Parameters:
parent - dialog parent

ModalProgressTracker

public ModalProgressTracker(JComponent parent,
                            int updateIntervalMillis)
Constructor

Parameters:
parent - dialog parent
updateIntervalMillis - dialog update interval in milliseconds

ModalProgressTracker

public ModalProgressTracker(JComponent parent,
                            int updateIntervalMillis,
                            int initialDialogWidth,
                            int initialDialogHeight)
Constructor

Parameters:
parent - dialog parent
updateIntervalMillis - dialog update interval in milliseconds
initialDialogWidth - initial width of the dialog
initialDialogHeight - initial height of the dialog
Method Detail

getAsyncJobListener

public AsyncJobListener getAsyncJobListener()
Get the AsyncJobListener

Returns:
the AsyncJobListener for this tracker

stopTrackingFor

public void stopTrackingFor(AsyncJob job)
Stop progress reporting for a particular job.

Parameters:
job - AsyncJob to stop reporting for