public class ProgressMonitor extends java.lang.Object implements java.awt.event.ActionListener, AwbProgressMonitor, IProgressMonitor
UNKNOWN| Constructor and Description |
|---|
ProgressMonitor(java.lang.String windowTitle,
java.lang.String headerText,
java.lang.String progressText,
javax.swing.ImageIcon iconImage,
javax.swing.JDesktopPane parentDesktopPane,
java.lang.String lookAndFeelClassName)
Instantiates a new progress monitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae) |
void |
beginTask(java.lang.String name,
int totalWork) |
void |
dispose()
Dispose the progress monitor.
|
void |
done() |
void |
internalWorked(double work) |
boolean |
isCanceled()
Checks if this dialog was canceled.
|
boolean |
isVisible()
Checks if is visible.
|
void |
repaint()
Repaint the progress monitor.
|
void |
setAllow2Cancel(boolean allow2Cancel)
Sets the permission to cancel an action via the progress dialog.
|
void |
setCanceled(boolean value) |
void |
setHeaderText(java.lang.String headerText)
Sets the header text.
|
void |
setOwner(java.awt.Window ownerWindow)
Allows to set the owner window of JDialog, if used.
|
void |
setProgress(int progress)
Can be used to set the progress in percent (0 - 100).
|
void |
setProgressText(java.lang.String progressText)
Sets the progress text.
|
void |
setTaskName(java.lang.String name) |
void |
setVisible(boolean visible)
Sets the progress dialog visible.
|
void |
setWindowTitle(java.lang.String windowTitle)
Sets the window title.
|
void |
subTask(java.lang.String name) |
void |
validate()
Validate the progress monitor.
|
void |
worked(int work) |
public ProgressMonitor(java.lang.String windowTitle,
java.lang.String headerText,
java.lang.String progressText,
javax.swing.ImageIcon iconImage,
javax.swing.JDesktopPane parentDesktopPane,
java.lang.String lookAndFeelClassName)
windowTitle - the window title - may be nullheaderText - the header text - may be nullprogressText - the progress text - may be nulliconImage - the icon image - may be nullparentDesktopPane - the parent desktop pane - may be nulllookAndFeelClassName - the look and feel class reference - may be nullpublic void setOwner(java.awt.Window ownerWindow)
AwbProgressMonitorsetOwner in interface AwbProgressMonitorownerWindow - the new ownerpublic void setVisible(boolean visible)
setVisible in interface AwbProgressMonitorvisible - the new visiblepublic boolean isVisible()
isVisible in interface AwbProgressMonitorpublic void validate()
public void repaint()
public void dispose()
dispose in interface AwbProgressMonitorpublic void setWindowTitle(java.lang.String windowTitle)
setWindowTitle in interface AwbProgressMonitorwindowTitle - the new window titlepublic void setHeaderText(java.lang.String headerText)
setHeaderText in interface AwbProgressMonitorheaderText - the new header textpublic void setProgressText(java.lang.String progressText)
setProgressText in interface AwbProgressMonitorprogressText - the new progress textpublic void setProgress(int progress)
setProgress in interface AwbProgressMonitorprogress - the new progress in percentpublic void setAllow2Cancel(boolean allow2Cancel)
setAllow2Cancel in interface AwbProgressMonitorallow2Cancel - the new allow to cancelpublic boolean isCanceled()
isCanceled in interface AwbProgressMonitorisCanceled in interface IProgressMonitorpublic void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed in interface java.awt.event.ActionListenerpublic void beginTask(java.lang.String name,
int totalWork)
beginTask in interface IProgressMonitorpublic void done()
done in interface IProgressMonitorpublic void setCanceled(boolean value)
setCanceled in interface IProgressMonitorpublic void setTaskName(java.lang.String name)
setTaskName in interface IProgressMonitorpublic void subTask(java.lang.String name)
subTask in interface IProgressMonitorpublic void worked(int work)
worked in interface IProgressMonitorpublic void internalWorked(double work)
internalWorked in interface IProgressMonitor