Class ProgressMonitor
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----CancelDialog
|
+----ProgressMonitor
- public class ProgressMonitor
- extends CancelDialog
- implements ActionListener
Class definition for a dialog window with a progress bar
and a 'Cancel' button.
- Version:
- $Revision: 1.3 $, $Date: 2000/10/12 14:07:58 $
- Author:
- John Cavanaugh
-
current
- The current value.
-
pb
- A progress bar.
-
pl
- A label to accompany the progress bar.
-
total
- The value we're measuring progress toward.
-
ProgressMonitor(Frame, String, String[], long)
- Constructs the progress monitor.
-
getTotal()
- Get the total we're working toward.
-
setCurrent(long)
- Set the current value and update the progress bar.
-
setTotal(long)
- Set the total we're working toward.
total
protected long total
- The value we're measuring progress toward.
current
protected long current
- The current value.
pb
protected ProgressMonitor. ProgressBar pb
- A progress bar.
pl
protected Label pl
- A label to accompany the progress bar.
ProgressMonitor
public ProgressMonitor(Frame frame,
String title,
String text[],
long total)
- Constructs the progress monitor.
- Parameters:
- frame - the parent frame.
- title - a title for the progress monitor window.
- text - a message to display with the progress bar.
- total - the value to measure progress toward.
getTotal
public long getTotal()
- Get the total we're working toward.
- Returns:
- the total we're working toward.
setTotal
public void setTotal(long total)
- Set the total we're working toward.
- Parameters:
- total - the total we're working toward.
setCurrent
public void setCurrent(long current)
- Set the current value and update the progress bar.
- Parameters:
- current - the current value.