public class ProgressMonitor
extends java.lang.Object
implements java.awt.event.ActionListener
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 |
dispose()
Dispose the progress monitor.
|
boolean |
isCanceled()
Checks if this dialog was canceled.
|
boolean |
isSetModal()
Checks if the progress monitor should be set modal.
|
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 |
setHeaderText(java.lang.String headerText)
Sets the header text.
|
void |
setModal(boolean isSetModal)
Sets the progress monitor modal (or not) if possible (applies
if a dialog is used as container for the progress monitor).
|
void |
setOwner(java.awt.Dialog ownerDialog)
Allows to set the owner frame of JDialog, if used.
|
void |
setOwner(java.awt.Frame ownerFrame)
Allows to set the owner frame of JDialog, if used.
|
void |
setOwner(java.awt.Window owner)
Allows to set the owner window .
|
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 |
setVisible(boolean visible)
Sets the progress dialog visible.
|
void |
setWindowTitle(java.lang.String windowTitle)
Sets the window title.
|
void |
validate()
Validate the progress monitor.
|
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.Frame ownerFrame)
ownerFrame
- the new ownerpublic void setOwner(java.awt.Dialog ownerDialog)
ownerDialog
- the new ownerpublic void setOwner(java.awt.Window owner)
owner
- the new ownerpublic void setModal(boolean isSetModal)
false
.isSetModal
- the new modalpublic boolean isSetModal()
public void setVisible(boolean visible)
visible
- the new visiblepublic boolean isVisible()
public void validate()
public void repaint()
public void dispose()
public void setWindowTitle(java.lang.String windowTitle)
windowTitle
- the new window titlepublic void setHeaderText(java.lang.String headerText)
headerText
- the new header textpublic void setProgressText(java.lang.String progressText)
progressText
- the new progress textpublic void setProgress(int progress)
progress
- the new progress in percentpublic void setAllow2Cancel(boolean allow2Cancel)
public boolean isCanceled()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener