com.xinapse.util
Class IndeterminateProgressMonitor

java.lang.Object
  extended by com.xinapse.util.IndeterminateProgressMonitor

public final class IndeterminateProgressMonitor
extends java.lang.Object

A JDialog for showing progress through an operation that will take an indeterminate number of steps, or an unknown time to complete.


Constructor Summary
IndeterminateProgressMonitor(java.awt.Component parentComponent, java.lang.Object message, java.lang.String title)
          Constructs a JDialog that shows progress that will take place over an indeterminate time, typically by making a rectangular bar oscillate from side to side.
 
Method Summary
 void close()
          Indicate that the operation is complete.
 boolean isCanceled()
          Returns true if the user hits the Cancel button in the progress dialog.
 void setMessage(java.lang.Object message)
          Sets the message shown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndeterminateProgressMonitor

public IndeterminateProgressMonitor(java.awt.Component parentComponent,
                                    java.lang.Object message,
                                    java.lang.String title)
Constructs a JDialog that shows progress that will take place over an indeterminate time, typically by making a rectangular bar oscillate from side to side.

Parameters:
parentComponent - the parent component for the dialog box
message - a descriptive message that will be shown to the user to indicate what operation is being monitored. This does not change as the operation progresses.
title - the title shown in the JDialog.
Method Detail

setMessage

public void setMessage(java.lang.Object message)
Sets the message shown.

Parameters:
message - the message to show in the dialog.

close

public void close()
Indicate that the operation is complete.


isCanceled

public boolean isCanceled()
Returns true if the user hits the Cancel button in the progress dialog.



Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.