|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.SimpleProgressMonitor
public class SimpleProgressMonitor
A simplified progress monitor. It calls "close()" whenever it is terminated. By overriding the close() method you can thus handle any form of termination (e.g. for re-enabling another window).
| Constructor Summary | |
|---|---|
SimpleProgressMonitor(Frame f,
String title,
String note)
|
|
SimpleProgressMonitor(Frame f,
String title,
String note,
int min,
int max)
Deprecated. use SimpleProgressMonitor(Frame f, String title, String note) instead |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels the progress monitor dialog. |
void |
close()
Closes the progress monitor dialog. |
int |
getProgress()
Returns the current value of the progress bar. |
boolean |
isCanceled()
Returns whether the dialog has been cancelled. |
boolean |
isVisible()
|
void |
reset(Frame f,
String title,
String note)
|
void |
setMaximum(int max)
|
void |
setMinimum(int min)
|
void |
setNote(String s)
Changes the text displayed in the dialog window. |
void |
setProgress(int i)
Updates the progress bar with the indicated value. |
void |
setVisible(boolean visible)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleProgressMonitor(Frame f,
String title,
String note,
int min,
int max)
f - parent windowtitle - title of the dialognote - initial text to displaymin - integer corresponding to 0% progressmax - integer corresponding to 100% progress
public SimpleProgressMonitor(Frame f,
String title,
String note)
| Method Detail |
|---|
public void reset(Frame f,
String title,
String note)
public void setVisible(boolean visible)
public boolean isVisible()
public void setProgress(int i)
JProgressBar.setValue(int)public int getProgress()
JProgressBar.getValue()public void setNote(String s)
public void setMaximum(int max)
public void setMinimum(int min)
public boolean isCanceled()
cancel()public void cancel()
public void close()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||