org.browsecode.helpers.dialogs
Class ProgressDialog

java.lang.Object
  extended by org.browsecode.helpers.dialogs.ProgressDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ProgressListener

public class ProgressDialog
extends java.lang.Object
implements java.awt.event.ActionListener, ProgressListener


Constructor Summary
ProgressDialog(java.awt.Frame frame)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent action)
           
 void close()
           
 javax.swing.JPanel getContentPanel()
           
 int getProgress()
           
 java.lang.String getText()
           
 void setIndeterminateMode(boolean indeterminateOn)
           
 void setMaximumProgressValue(int max)
           
 void setProgress(int currentProgress)
           
 void setProgress(int currentProgress, int max)
           
 void setProgressValue(int value)
           
 void setText(java.lang.String text)
           
 void showCancelButton(java.awt.event.ActionListener actionListener)
          Show a cancel button, and notify the actionlistener when it's clicked.
 void showCloseButton()
           
 void startShowingProgress(java.lang.String statement, java.lang.String dialogTitle, int max)
           
 void startShowingProgress(java.lang.String statement, java.lang.String dialogTitle, int max, boolean modal)
           
 void startShowingProgress(java.lang.String statement, java.lang.String dialogTitle, int max, boolean modal, java.lang.Integer width, java.lang.Integer height)
           
 void toFront()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressDialog

public ProgressDialog(java.awt.Frame frame)
Method Detail

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getContentPanel

public javax.swing.JPanel getContentPanel()

close

public void close()

setProgress

public void setProgress(int currentProgress,
                        int max)

setProgress

public void setProgress(int currentProgress)

getProgress

public int getProgress()

startShowingProgress

public void startShowingProgress(java.lang.String statement,
                                 java.lang.String dialogTitle,
                                 int max)

startShowingProgress

public void startShowingProgress(java.lang.String statement,
                                 java.lang.String dialogTitle,
                                 int max,
                                 boolean modal)

startShowingProgress

public void startShowingProgress(java.lang.String statement,
                                 java.lang.String dialogTitle,
                                 int max,
                                 boolean modal,
                                 java.lang.Integer width,
                                 java.lang.Integer height)

showCloseButton

public void showCloseButton()

setIndeterminateMode

public void setIndeterminateMode(boolean indeterminateOn)

showCancelButton

public void showCancelButton(java.awt.event.ActionListener actionListener)
Show a cancel button, and notify the actionlistener when it's clicked.

Parameters:
actionListener -

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent action)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setProgressValue

public void setProgressValue(int value)
Specified by:
setProgressValue in interface ProgressListener

setMaximumProgressValue

public void setMaximumProgressValue(int max)
Specified by:
setMaximumProgressValue in interface ProgressListener

toFront

public void toFront()