|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.jets3t.gui.ProgressDialog
public class ProgressDialog
A modal dialog box to display progress information to the user when a long-lived task
is running. If the long-lived task can be cancelled by the user, this dialog will invoke
the CancelEventTrigger when the user clicks the cancel button.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ProgressDialog(Frame owner,
String title,
Properties applicationProperties)
Constructs the progress dialog box. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
dispose()
|
void |
startDialog(String statusMessage,
String detailsText,
int minTaskValue,
int maxTaskValue,
CancelEventTrigger cancelEventListener,
String cancelButtonText)
Displays the progress dialog. |
void |
stopDialog()
|
void |
updateDialog(String statusMessage,
String detailsText,
int progressValue)
Updates the dialog's information. |
| Methods inherited from class javax.swing.JDialog |
|---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressDialog(Frame owner,
String title,
Properties applicationProperties)
owner - the Frame over which the progress dialog will be displayed and centredtitle - the title for the progress dialog| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void dispose()
dispose in class Window
public void startDialog(String statusMessage,
String detailsText,
int minTaskValue,
int maxTaskValue,
CancelEventTrigger cancelEventListener,
String cancelButtonText)
statusMessage - describes the status of a task text meaningful to the user, such as "3 files of 7 uploaded"detailsText - describes the status of a task in more detail, such as the current transfer rate and ETA.minTaskValue - the minimum progress value for a task, generally 0maxTaskValue - the maximum progress value for a task, such as the total number of threads or 100 if
using percentage-complete as a metric.cancelEventListener - listener that is responsible for cancelling a long-lived task when the user clicks
the cancel button. If a task cannot be cancelled this must be null.cancelButtonText - text displayed in the cancel button if a task can be cancelledpublic void stopDialog()
public void updateDialog(String statusMessage,
String detailsText,
int progressValue)
statusMessage - text describing the status of a task text meaningful to the user, such as "3 files of 7 uploaded"detailsText - detailed description of the task's status, such as the current transfer rate and remaining time.progressValue - value representing how far through the task we are, somewhere between
minTaskValue and maxTaskValue as set in the constructor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||