|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.gui.widgets.AProgress
public class AProgress
This class provides a generic output dialog for progress reporting.
| Field Summary | |
|---|---|
boolean |
isCanceled
Set to true if "Cancel" is pressed |
boolean |
isTriggered
Set to true if "Trigger" is pressed |
private javax.swing.JDialog |
jd
|
private javax.swing.JLabel |
jlProgress
|
private javax.swing.JPanel |
jpButtons
|
| Constructor Summary | |
|---|---|
AProgress(javax.swing.JFrame ownerFrame,
java.lang.String $WindowTitle,
java.lang.String $InitText)
The AProgress constructor sets up the dialog box and action listeners. |
|
AProgress(javax.swing.JFrame ownerFrame,
java.lang.String $WindowTitle,
java.lang.String $InitText,
boolean showCancel)
The AProgress constructor sets up the dialog box and action listeners. |
|
| Method Summary | |
|---|---|
void |
addTrigger(java.lang.String $ButtonText)
Add a trigger button to the progress dialog box |
void |
close()
Close the progress dialog box |
void |
removeTrigger()
Remove the trigger button from the progress dialog box |
private void |
sendNetworkTrigger()
|
void |
setText(java.lang.String $NewText)
Set the progress text |
void |
setTitle(java.lang.String $Title)
Set the progress window title bar text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isCanceled
public boolean isTriggered
private javax.swing.JDialog jd
private javax.swing.JLabel jlProgress
private javax.swing.JPanel jpButtons
| Constructor Detail |
|---|
public AProgress(javax.swing.JFrame ownerFrame,
java.lang.String $WindowTitle,
java.lang.String $InitText)
ownerFrame - the JFrame that owns this method$WindowTitle - the window title$InitText - the initial progress text
public AProgress(javax.swing.JFrame ownerFrame,
java.lang.String $WindowTitle,
java.lang.String $InitText,
boolean showCancel)
ownerFrame - the JFrame that owns this method$WindowTitle - the window title$InitText - the initial progress textshowCancel - if true, a Cancel button is added to the dialog| Method Detail |
|---|
public void addTrigger(java.lang.String $ButtonText)
$ButtonText - the text to use for the trigger buttonpublic void close()
public void removeTrigger()
private void sendNetworkTrigger()
public void setText(java.lang.String $NewText)
$NewText - the text to set the progress label topublic void setTitle(java.lang.String $Title)
$Title - the text to set in the window title bar
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||