java.lang.Object
com.virtuosotechnologies.lib.swing.ModalProgressTracker
- All Implemented Interfaces:
- com.virtuosotechnologies.lib.asyncjob.AsyncJobListener, java.util.EventListener
- public class ModalProgressTracker
- extends java.lang.Object
- implements com.virtuosotechnologies.lib.asyncjob.AsyncJobListener
An object that spawns a modal progress tracker dialog for AsyncJobs.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_DIALOG_WIDTH
private static final int INITIAL_DIALOG_WIDTH
- See Also:
- Constant Field Values
INITIAL_DIALOG_HEIGHT
private static final int INITIAL_DIALOG_HEIGHT
- See Also:
- Constant Field Values
DEFAULT_UPDATE_INTERVAL
private static final int DEFAULT_UPDATE_INTERVAL
- See Also:
- Constant Field Values
dialog_
private javax.swing.JDialog dialog_
dialogWidth_
private int dialogWidth_
dialogHeight_
private int dialogHeight_
dialogContent_
private javax.swing.JComponent dialogContent_
dialogParent_
private javax.swing.JComponent dialogParent_
jobInfoMap_
private java.util.Map jobInfoMap_
innerPanel_
private javax.swing.JPanel innerPanel_
paneConstraints_
private java.awt.GridBagConstraints paneConstraints_
timer_
private javax.swing.Timer timer_
ModalProgressTracker
public ModalProgressTracker(javax.swing.JComponent parent)
- Constructor
ModalProgressTracker
public ModalProgressTracker(javax.swing.JComponent parent,
int updateIntervalMillis)
- Constructor
ModalProgressTracker
public ModalProgressTracker(javax.swing.JComponent parent,
int updateIntervalMillis,
int initialDialogWidth,
int initialDialogHeight)
- Constructor
openDialog
private void openDialog()
closeDialog
private void closeDialog()
jobStarted
public void jobStarted(com.virtuosotechnologies.lib.asyncjob.AsyncJobStartedEvent event)
- A job has started
- Specified by:
jobStarted in interface com.virtuosotechnologies.lib.asyncjob.AsyncJobListener
jobProgressed
public void jobProgressed(com.virtuosotechnologies.lib.asyncjob.AsyncJobProgressEvent event)
- Receive a progress update
- Specified by:
jobProgressed in interface com.virtuosotechnologies.lib.asyncjob.AsyncJobListener
jobCompleted
public void jobCompleted(com.virtuosotechnologies.lib.asyncjob.AsyncJobCompletedEvent event)
- A job has completed
- Specified by:
jobCompleted in interface com.virtuosotechnologies.lib.asyncjob.AsyncJobListener
jobFailed
public void jobFailed(com.virtuosotechnologies.lib.asyncjob.AsyncJobFailedEvent event)
- A job has failed
- Specified by:
jobFailed in interface com.virtuosotechnologies.lib.asyncjob.AsyncJobListener
closePane
private void closePane(com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent event)
doTimer
private void doTimer()