edu.jhu.tmaj.client.shared
Class SimpleProgressDialog
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleProgressDialog
public SimpleProgressDialog(java.lang.String mainTitle,
java.awt.Component parentComponent)
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()