|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.ProgressMonitor
jview.TimerDrivenProgressMonitor
public class TimerDrivenProgressMonitor
An extension to a ProgressMonitor that needs no further interaction
by the user, as the minimum and maximum supplied are used for a timer
process.
| Nested Class Summary | |
|---|---|
static class |
TimerDrivenProgressMonitor.Show
Test class. |
| Nested classes/interfaces inherited from class javax.swing.ProgressMonitor |
|---|
ProgressMonitor.AccessibleProgressMonitor |
| Field Summary | |
|---|---|
private Timer |
clock
The swing timer that fires the action events on the progress monitor. |
private int |
count
The count intervall in ms. |
private static int |
MININTERVALL
The minimum action-event firing intervall in ms. |
private String |
orgnote
The note without any time adds. |
private boolean |
persistent
If true, dialog stays open until closed. |
private int |
sum
The summed-up time. |
| Fields inherited from class javax.swing.ProgressMonitor |
|---|
accessibleContext |
| Constructor Summary | |
|---|---|
TimerDrivenProgressMonitor(Component parent,
Object message,
String note,
int min,
long len)
Constructs a new timer-driven progress monitor. |
|
TimerDrivenProgressMonitor(Component parent,
Object message,
String note,
int min,
long len,
boolean stay)
Constructs a new timer-driven progress monitor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
The action events fired by the timer. |
void |
close()
This method is called by the parental class if the progress is bigger or equal to the maximum. |
void |
setProgress(int newsum)
We have to store our progress for internal accumulating in the timer events. |
| Methods inherited from class javax.swing.ProgressMonitor |
|---|
getAccessibleContext, getMaximum, getMillisToDecideToPopup, getMillisToPopup, getMinimum, getNote, isCanceled, setMaximum, setMillisToDecideToPopup, setMillisToPopup, setMinimum, setNote |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MININTERVALL
private int count
private int sum
private boolean persistent
private String orgnote
private Timer clock
| Constructor Detail |
|---|
public TimerDrivenProgressMonitor(Component parent,
Object message,
String note,
int min,
long len)
public TimerDrivenProgressMonitor(Component parent,
Object message,
String note,
int min,
long len,
boolean stay)
| Method Detail |
|---|
public void actionPerformed(ActionEvent ae)
count milliseconds.
actionPerformed in interface ActionListenerpublic void setProgress(int newsum)
setProgress in class ProgressMonitorpublic void close()
close in class ProgressMonitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||