org.gerhardb.lib.util
Class ModalProgressDialogFast

java.lang.Object
  extended by org.gerhardb.lib.util.ModalProgressDialogFast

public class ModalProgressDialogFast
extends java.lang.Object

Blocks user interaction during which the application needs to behave modally providing a modal dialog box with a progress meter. All done out of the AWT thread so the application can be providing visual feedback to the user as the operation is processed.


Field Summary
static javax.swing.Icon WAIT_ICON
           
 
Constructor Summary
ModalProgressDialogFast(java.awt.Window topWindow, java.lang.String title, java.lang.String message, java.lang.String cancelBtnText, javax.swing.BoundedRangeModel range, java.lang.Runnable runMe)
           
 
Method Summary
 void deactivateDialog()
           
 void done()
          Called when the task is done to make sure dialog goes away fast...
 void install()
          Makes this object's dialog appear modal with respect to its owner window.
 void interrupt()
          Halts any executing task, and hides this object's dialog if it is displayed.
static void main(java.lang.String[] args)
           
 void start()
           
 void uninstallGlassPane()
          Removes all influences of this object over its dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_ICON

public static final javax.swing.Icon WAIT_ICON
Constructor Detail

ModalProgressDialogFast

public ModalProgressDialogFast(java.awt.Window topWindow,
                               java.lang.String title,
                               java.lang.String message,
                               java.lang.String cancelBtnText,
                               javax.swing.BoundedRangeModel range,
                               java.lang.Runnable runMe)
Method Detail

start

public void start()

interrupt

public void interrupt()
Halts any executing task, and hides this object's dialog if it is displayed. The executing task, if any, will be interrupted; it is up to that task to terminate itself based on its interruption status.


done

public void done()
Called when the task is done to make sure dialog goes away fast...


deactivateDialog

public void deactivateDialog()

install

public void install()
Makes this object's dialog appear modal with respect to its owner window.


uninstallGlassPane

public void uninstallGlassPane()
Removes all influences of this object over its dialog.


main

public static void main(java.lang.String[] args)


Copyright ? 2007 Gerhard Beck. All rights reserved. Subject to GPL.