|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.ui.PrimaryProgressDialog
public class PrimaryProgressDialog
This class is the only instance of a progress dialog in venice. When a progress
dialog is created, this class creates the dialog. The other class that implements
ProgressDialog merely proxies to this class.
See ProgressDialogManager for details about using progress dialogs in
venice.
| Constructor Summary | |
|---|---|
PrimaryProgressDialog(javax.swing.JDesktopPane parent)
Create a new Progress Dialog. |
|
PrimaryProgressDialog(javax.swing.JDesktopPane parent,
boolean isCancelButtonToBePainted)
Create a new Progress Dialog. |
|
| Method Summary | |
|---|---|
void |
decrement()
Decrement current progress by one unit. |
int |
getMaximum()
Get the maximum progress value. |
int |
getMinimum()
Get the minimum progress value. |
java.lang.String |
getNote()
Get the note or rather the action we are curently waiting for. |
int |
getProgress()
Get current progress value. |
void |
hide()
Close the dialog window. |
void |
increment()
Increment current progress by one unit. |
boolean |
isIndeterminate()
Return whether the dialog is indeterminate. |
boolean |
isMaster()
Query if the dialog is a master dialog. |
void |
setIndeterminate(boolean indeterminate)
Set whether the dialog is indeterminate. |
void |
setMaster(boolean master)
Set whether dialog is a master dialog. |
void |
setMaximum(int maximum)
Get the maximum progress value. |
void |
setMinimum(int minimum)
Set the minimum progress value. |
void |
setNote(java.lang.String note)
Set the note to be the action we are curently waiting for. |
void |
setProgress(int progress)
Set current progress value. |
void |
show(java.lang.String title)
Show the dialog window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrimaryProgressDialog(javax.swing.JDesktopPane parent)
show(java.lang.String)
is called. The Primary Progress Dialog is the actual dialog being displayed, it
is returned by the first call to ProgressDialogManager.getProgressDialog().
parent - the parent desktop pane
public PrimaryProgressDialog(javax.swing.JDesktopPane parent,
boolean isCancelButtonToBePainted)
show(java.lang.String)
is called. The Primary Progress Dialog is the actual dialog being displayed, it
is returned by the first call to ProgressDialogManager.getProgressDialog().
parent - the parent desktop paneisCancelButtonToBePainted - true if we need to paint a cancel button| Method Detail |
|---|
public void hide()
hide in interface ProgressDialogpublic void show(java.lang.String title)
show in interface ProgressDialogtitle - the title should be set to the task that we are performing,
which is not necessarily the action we are waiting for.
e.g. the task might be "Graph CBA", but the action we are
waiting for would be "Load CBA Quotes".public java.lang.String getNote()
getNote in interface ProgressDialogpublic void setNote(java.lang.String note)
setNote in interface ProgressDialognote - the action we are waiting forpublic int getMinimum()
getMinimum in interface ProgressDialogpublic void setMinimum(int minimum)
setMinimum in interface ProgressDialogminimum - the minimum progress valuepublic int getMaximum()
getMaximum in interface ProgressDialogpublic void setMaximum(int maximum)
setMaximum in interface ProgressDialogmaximum - the maximum progress valuepublic int getProgress()
getProgress in interface ProgressDialogpublic void setProgress(int progress)
setProgress in interface ProgressDialogprogress - New value of property progresspublic void increment()
increment in interface ProgressDialogpublic void decrement()
decrement in interface ProgressDialogpublic boolean isIndeterminate()
isIndeterminate in interface ProgressDialogtrue if no progress is displayedpublic void setIndeterminate(boolean indeterminate)
setIndeterminate in interface ProgressDialogindeterminate - true if no progress can be displayedpublic void setMaster(boolean master)
setMaster in interface ProgressDialogmaster - whether the dialog is a master dialogProgressDialogManagerpublic boolean isMaster()
isMaster in interface ProgressDialogProgressDialogManager
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||