|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.reload.dweezil.gui.ReloadProgressMonitor
My Progress Monitor based on Sun's - this one doesn't have all the waiting for time millis crap and you can reset it to start over from the beginning.
Constructor Summary | |
ReloadProgressMonitor(java.awt.Component parentComponent,
java.lang.String title,
java.lang.String message,
java.lang.String note,
boolean indeterminate,
javax.swing.Icon icon)
Constructor - specify an initial dialog title, message, note and the indeterminate value |
Method Summary | |
void |
close()
Close the dialog and clean up |
void |
incProgress(int inc,
boolean closeOnMax)
Increment the progress by by inc amount If closeOnmax is true the PMonitor will close when max is reached |
void |
init(int max)
Reset the PMonitor to start from zero with same message and note |
void |
init(java.lang.String message,
java.lang.String note,
int max)
Reset the PMonitor to start from zero with new message and note |
boolean |
isCanceled()
Determine if the dialog's cancel button is selected or not |
void |
setIndeterminate(boolean indeterminate)
Set the indeterminate value |
void |
setMessage(java.lang.String message)
Set a message in the dialog |
void |
setNote(java.lang.String note)
Set a note in the dialog |
void |
setProgress(int progress,
boolean closeOnMax)
Set the progress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReloadProgressMonitor(java.awt.Component parentComponent, java.lang.String title, java.lang.String message, java.lang.String note, boolean indeterminate, javax.swing.Icon icon)
parentComponent
- the non-null parent component from which the dialog is displayedtitle
- the initial dialog titlemessage
- the message to display in the dialognote
- the additional note to display in the dialogindeterminate
- the indeterminate valueicon
- the icon to use for the JOptionPaneMethod Detail |
public void init(int max)
max
- the maximum valuepublic void init(java.lang.String message, java.lang.String note, int max)
message
- the new message to display in the dialognote
- the new note to display in the dialogmax
- the maximum valuepublic void setProgress(int progress, boolean closeOnMax)
progress
- the current progress valuecloseOnMax
- true if the dialog has to be closed when the maximum progress
value is reached, false otherwisepublic void incProgress(int inc, boolean closeOnMax)
inc
- the amount by which to increment the progresscloseOnMax
- true if the dialog has to be closed when the maximum progress
value is reached, false otherwisepublic void setIndeterminate(boolean indeterminate)
indeterminate
- true if the progress is indeterminate, false otherwisepublic void close()
public void setMessage(java.lang.String message)
message
- the message to be displayed in the dialog, if message is null display Emptypublic void setNote(java.lang.String note)
note
- the note to be displayed in the dialog, if note is null display Emptypublic boolean isCanceled()
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |