|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.ui.ProgressMonitorWindow
public class ProgressMonitorWindow
Manages a ProgressMonitor dialog.
NOTE: Users of this class should use the type of the interface
ProgressMonitor wherever possible to
maintain GUI independence.
| Constructor Summary | |
|---|---|
ProgressMonitorWindow(java.awt.Frame parent,
javax.swing.ProgressMonitor progressMonitor)
Deprecated. initializes a ProgressMonitor |
|
ProgressMonitorWindow(java.awt.Frame parent,
java.lang.String title)
Deprecated. initializes a ProgressMonitor |
|
| Method Summary | |
|---|---|
void |
close()
Deprecated. Indicate that the operation is complete. |
boolean |
isCanceled()
Deprecated. Determines if the user wants to cancel the current action. |
void |
notifyMessage(java.lang.String title,
java.lang.String introduction,
java.lang.String message)
Deprecated. If something happens the user should be notified. |
void |
notifyNullAction()
Deprecated. This method notifies the GUI that the working thread determines that there are no actions that could be done for various reasons. |
void |
progress(ProgressEvent event)
Deprecated. Called when a ProgressEvent is fired. |
void |
setMaximumProgress(int max)
Deprecated. Determines the maximum amount of progress that can be reached. |
void |
updateMainTask(java.lang.String name)
Deprecated. Updates the major task that is going on. |
void |
updateProgress(int progress)
Deprecated. Informs the progress tool that the total progress was updated. |
void |
updateSubTask(java.lang.String action)
Deprecated. Updates the subtask that is in progress. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressMonitorWindow(java.awt.Frame parent,
java.lang.String title)
parent - the Component to be set as parenttitle - the (internationalized) title of the ProgressMonitor
public ProgressMonitorWindow(java.awt.Frame parent,
javax.swing.ProgressMonitor progressMonitor)
parent - the Component to be set as parentprogressMonitor - the ProgressMonitor| Method Detail |
|---|
public void progress(ProgressEvent event)
ProgressListener
progress in interface ProgressListenerevent - the ProgressEventpublic void updateProgress(int progress)
ProgressMonitor
updateProgress in interface ProgressMonitorprogress - the amount of progress done so far, this is the whole
progress until now, not just the subtask's progress or the
main task's progresspublic boolean isCanceled()
ProgressMonitorSo in a long running action, you should query this periodicaly to see if the user still wants to continue or he canceled the action.
NOTE: It appears to be some kind of Java tradition to misspell the name of this method, so we follow the Swing and Eclipse tradition of spelling it with a single "L".
isCanceled in interface ProgressMonitorpublic void close()
ProgressMonitor
close in interface ProgressMonitor
public void notifyMessage(java.lang.String title,
java.lang.String introduction,
java.lang.String message)
ProgressMonitor
notifyMessage in interface ProgressMonitortitle - a title for the error/information/etcintroduction - a short message that will continue with the messagemessage - the actual message with all the detailspublic void notifyNullAction()
ProgressMonitor
notifyNullAction in interface ProgressMonitorpublic void setMaximumProgress(int max)
ProgressMonitor
setMaximumProgress in interface ProgressMonitormax - the maximum progress value or -1 if the value is unknownpublic void updateSubTask(java.lang.String action)
ProgressMonitor
updateSubTask in interface ProgressMonitoraction - the name of the subtaskpublic void updateMainTask(java.lang.String name)
ProgressMonitor
updateMainTask in interface ProgressMonitorname - the new task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |