home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Sample.bin
/
TrackProgress.java
< prev
next >
Wrap
Text File
|
1998-05-06
|
1KB
|
35 lines
// Copyright (c) 1997, 1998 Symantec, Inc. All Rights Reserved.
/**
This interface is used to report progress of some process to the user.
It typically is implemented by a Dialog that is used to track the progress
of a thread.
*/
public interface TrackProgress {
/**
This method is called to update the message and progressBar that
keeps the user informed of the thread's progress
*/
public void step(String stepMsg, int progressPercent);
/**
This method is called when the thread is done.
Often the dialog will switch a "Cancel" button to an "OK" button.
Before calling this method, the thread calls the step method with
a "done 100%" status.
*/
public void done();
/**
This method is called to display an "OK or Cancel" alert dialog.
It returns true if the alert was OK'd.
*/
public boolean okCancelAlert(String msg);
/**
This method is called to display an Alert Dialog with only an OK button.
*/
public void okAlert(String msg);
}