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

Quick Search    Search Deep

org.jempeg.empeg.emplode.dialog
Class ProgressDialog  view ProgressDialog download ProgressDialog.java

java.lang.Object
  extended byorg.jempeg.empeg.emplode.dialog.ProgressDialog
All Implemented Interfaces:
org.jempeg.empeg.emptool.DatabaseProgressListenerIfc, java.util.EventListener

public class ProgressDialog
extends java.lang.Object
implements org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

ProgressDialog is an implementation of DatabaseProgressListenerIfc that renders a set of labels and JProgressBars to represents the status of a download or upload.

Version:
$Revision: 1.12 $

Field Summary
private  javax.swing.JDialog myDialog
           
private  javax.swing.JFrame myFrame
           
private  javax.swing.JLabel myOperationLabel
           
private  javax.swing.JProgressBar myOperationProgressBar
           
private  javax.swing.JLabel myTaskLabel
           
private  javax.swing.JProgressBar myTaskProgressBar
           
 
Constructor Summary
ProgressDialog(javax.swing.JFrame _frame)
           
 
Method Summary
protected  void createDialog()
           
 void debug(int _level, java.lang.String _fmt)
           
 void error(int _code, java.lang.String _fmt)
           
 void error(int _code, java.lang.String _errorMessage, java.lang.Throwable _error)
           
 void error(int _code, java.lang.Throwable _error)
           
 void log(int _level, java.lang.String _fmt)
           
 void operationStarted(int _code, java.lang.String _fmt)
           
 void operationUpdated(long _progress, long _total)
           
 void setVisible(boolean _visible)
           
 void setVisibleInBackground(boolean _visible)
          Calls setVisible() in a thread other than the one which called this method.
 void taskStarted(int _code, java.lang.String _fmt)
           
 void taskUpdated(long _progress, long _total)
           
protected  void updateProgress(javax.swing.JProgressBar _progressBar, long _value, long _maximum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myFrame

private javax.swing.JFrame myFrame

myDialog

private javax.swing.JDialog myDialog

myOperationLabel

private javax.swing.JLabel myOperationLabel

myTaskLabel

private javax.swing.JLabel myTaskLabel

myOperationProgressBar

private javax.swing.JProgressBar myOperationProgressBar

myTaskProgressBar

private javax.swing.JProgressBar myTaskProgressBar
Constructor Detail

ProgressDialog

public ProgressDialog(javax.swing.JFrame _frame)
Method Detail

createDialog

protected void createDialog()

setVisible

public void setVisible(boolean _visible)

operationStarted

public void operationStarted(int _code,
                             java.lang.String _fmt)
Specified by:
operationStarted in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

operationUpdated

public void operationUpdated(long _progress,
                             long _total)
Specified by:
operationUpdated in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

taskStarted

public void taskStarted(int _code,
                        java.lang.String _fmt)
Specified by:
taskStarted in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

taskUpdated

public void taskUpdated(long _progress,
                        long _total)
Specified by:
taskUpdated in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

debug

public void debug(int _level,
                  java.lang.String _fmt)
Specified by:
debug in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

log

public void log(int _level,
                java.lang.String _fmt)
Specified by:
log in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

error

public void error(int _code,
                  java.lang.String _fmt)
Specified by:
error in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

error

public void error(int _code,
                  java.lang.String _errorMessage,
                  java.lang.Throwable _error)
Specified by:
error in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

error

public void error(int _code,
                  java.lang.Throwable _error)
Specified by:
error in interface org.jempeg.empeg.emptool.DatabaseProgressListenerIfc

updateProgress

protected void updateProgress(javax.swing.JProgressBar _progressBar,
                              long _value,
                              long _maximum)

setVisibleInBackground

public void setVisibleInBackground(boolean _visible)
Calls setVisible() in a thread other than the one which called this method.