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 null
headerText
- the header text - may be null
progressText
- the progress text - may be null
iconImage
- the icon image - may be null
parentDesktopPane
- the parent desktop pane - may be null
lookAndFeelClassName
- the look and feel class reference - may be null
public void setOwner(java.awt.Window ownerWindow)
AwbProgressMonitor
setOwner
in interface AwbProgressMonitor
ownerWindow
- the new ownerpublic void setVisible(boolean visible)
setVisible
in interface AwbProgressMonitor
visible
- the new visiblepublic boolean isVisible()
isVisible
in interface AwbProgressMonitor
public void validate()
public void repaint()
public void dispose()
dispose
in interface AwbProgressMonitor
public void setWindowTitle(java.lang.String windowTitle)
setWindowTitle
in interface AwbProgressMonitor
windowTitle
- the new window titlepublic void setHeaderText(java.lang.String headerText)
setHeaderText
in interface AwbProgressMonitor
headerText
- the new header textpublic void setProgressText(java.lang.String progressText)
setProgressText
in interface AwbProgressMonitor
progressText
- the new progress textpublic void setProgress(int progress)
setProgress
in interface AwbProgressMonitor
progress
- the new progress in percentpublic void setAllow2Cancel(boolean allow2Cancel)
setAllow2Cancel
in interface AwbProgressMonitor
allow2Cancel
- the new allow to cancelpublic boolean isCanceled()
isCanceled
in interface AwbProgressMonitor
isCanceled
in interface IProgressMonitor
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
public void beginTask(java.lang.String name, int totalWork)
beginTask
in interface IProgressMonitor
public void done()
done
in interface IProgressMonitor
public void setCanceled(boolean value)
setCanceled
in interface IProgressMonitor
public void setTaskName(java.lang.String name)
setTaskName
in interface IProgressMonitor
public void subTask(java.lang.String name)
subTask
in interface IProgressMonitor
public void worked(int work)
worked
in interface IProgressMonitor
public void internalWorked(double work)
internalWorked
in interface IProgressMonitor