Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.lib.swing
Class ModalProgressTracker  view ModalProgressTracker download ModalProgressTracker.java

java.lang.Object
  extended bycom.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.


Nested Class Summary
private static class ModalProgressTracker.JobInfo
           
 
Field Summary
private static int DEFAULT_UPDATE_INTERVAL
           
private  javax.swing.JDialog dialog_
           
private  javax.swing.JComponent dialogContent_
           
private  int dialogHeight_
           
private  javax.swing.JComponent dialogParent_
           
private  int dialogWidth_
           
private static int INITIAL_DIALOG_HEIGHT
           
private static int INITIAL_DIALOG_WIDTH
           
private  javax.swing.JPanel innerPanel_
           
private  java.util.Map jobInfoMap_
           
private  java.awt.GridBagConstraints paneConstraints_
           
private  javax.swing.Timer timer_
           
 
Fields inherited from interface com.virtuosotechnologies.lib.asyncjob.AsyncJobListener
JOB_COMPLETED_METHOD, JOB_FAILED_METHOD, JOB_PROGRESSED_METHOD, JOB_STARTED_METHOD
 
Constructor Summary
ModalProgressTracker(javax.swing.JComponent parent)
          Constructor
ModalProgressTracker(javax.swing.JComponent parent, int updateIntervalMillis)
          Constructor
ModalProgressTracker(javax.swing.JComponent parent, int updateIntervalMillis, int initialDialogWidth, int initialDialogHeight)
          Constructor
 
Method Summary
private  void closeDialog()
           
private  void closePane(com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent event)
           
private  void doTimer()
           
 void jobCompleted(com.virtuosotechnologies.lib.asyncjob.AsyncJobCompletedEvent event)
          A job has completed
 void jobFailed(com.virtuosotechnologies.lib.asyncjob.AsyncJobFailedEvent event)
          A job has failed
 void jobProgressed(com.virtuosotechnologies.lib.asyncjob.AsyncJobProgressEvent event)
          Receive a progress update
 void jobStarted(com.virtuosotechnologies.lib.asyncjob.AsyncJobStartedEvent event)
          A job has started
private  void openDialog()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_
Constructor Detail

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

Method Detail

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()