edu.jhu.tmaj.client.shared
Class SimpleProgressDialog

java.lang.Object
  extended by edu.jhu.tmaj.client.shared.SimpleProgressDialog

public abstract class SimpleProgressDialog
extends java.lang.Object

This class is used to display a dialog containing an indeterminate ProgressBar. The ProgressBar is not notified of progress, so it is indeterminate. The method runJob() should be overwritten with code this task should execute. When the programmer wants to execute the code in runJob() and display the dialog, the method startTaskAndShowDialog() is called.


Constructor Summary
SimpleProgressDialog(java.lang.String mainTitle, java.awt.Component parentComponent)
           
 
Method Summary
 LevelMessages getLevelMessages()
           
protected  void jobIsDone()
           
protected abstract  void runJob()
          Overwrite this method with code that the task will run.
 void startTaskAndShowDialog()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProgressDialog

public SimpleProgressDialog(java.lang.String mainTitle,
                            java.awt.Component parentComponent)
Method Detail

startTaskAndShowDialog

public final void startTaskAndShowDialog()

getLevelMessages

public LevelMessages getLevelMessages()

runJob

protected abstract void runJob()
                        throws java.lang.Exception
Overwrite this method with code that the task will run.

Throws:
java.lang.Exception

jobIsDone

protected void jobIsDone()