fi.helsinki.dacopan.ui
Class DialogProgressIndicator

java.lang.Object
  extended by fi.helsinki.dacopan.ui.DialogProgressIndicator
All Implemented Interfaces:
ProgressIndicator

public class DialogProgressIndicator
extends java.lang.Object
implements ProgressIndicator

Progress indicator based on ProgressMonitor, a standard Swing class.

Version:
$Id: DialogProgressIndicator.java,v 1.2 2005/04/14 19:58:30 korkki Exp $

Nested Class Summary
 
Nested classes/interfaces inherited from interface fi.helsinki.dacopan.ui.ProgressIndicator
ProgressIndicator.NoopIndicator
 
Constructor Summary
DialogProgressIndicator(java.awt.Frame owner, java.lang.String title)
           
 
Method Summary
 void close()
          Closes the indicator.
 void setMessage(java.lang.String message)
          Sets the message displayed in the indicator.
 void setProgress(float progress)
          Sets current progress.
 void setStep(float step)
          Sets the step that subsequent calls to ProgressIndicator.step() will use.
 void show()
           
 void step()
          Steps forward for the amount specified with ProgressIndicator.setStep(float).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogProgressIndicator

public DialogProgressIndicator(java.awt.Frame owner,
                               java.lang.String title)
Method Detail

show

public void show()

close

public void close()
Description copied from interface: ProgressIndicator
Closes the indicator. This is automatically done when progress reaches 100.

Specified by:
close in interface ProgressIndicator

setMessage

public void setMessage(java.lang.String message)
Description copied from interface: ProgressIndicator
Sets the message displayed in the indicator.

Specified by:
setMessage in interface ProgressIndicator

setProgress

public void setProgress(float progress)
Description copied from interface: ProgressIndicator
Sets current progress. Valid values are 0..100.

Specified by:
setProgress in interface ProgressIndicator

setStep

public void setStep(float step)
Description copied from interface: ProgressIndicator
Sets the step that subsequent calls to ProgressIndicator.step() will use.

Specified by:
setStep in interface ProgressIndicator

step

public void step()
Description copied from interface: ProgressIndicator
Steps forward for the amount specified with ProgressIndicator.setStep(float).

Specified by:
step in interface ProgressIndicator


© Dacopan2 team, 2005-