|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.util.progress.XProgressBarListener
public class XProgressBarListener
This class implements a progress listener for controlling an attached Swing progress bar. The progress bar will then reflect the progress as received by this listener.
Field Summary | |
---|---|
protected JProgressBar |
progressBar
Controlled progress bar. |
protected int |
startValue
Start value to use in progress bar. |
protected int |
stopValue
Stop value to use in progress bar. |
Constructor Summary | |
---|---|
XProgressBarListener(JProgressBar progressBar)
Creates a new progress bar listener with the specified progress bar for display. |
|
XProgressBarListener(JProgressBar progressBar,
int startValue,
int stopValue)
Creates a new progress bar listener with the specified progress bar for display. |
Method Summary | |
---|---|
boolean |
isAborted()
Checks whether the monitored process has been canceled. |
void |
updateProgress(int progress,
int maxProgress)
Notifies the listener about progress being made. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JProgressBar progressBar
protected int startValue
protected int stopValue
Constructor Detail |
---|
public XProgressBarListener(JProgressBar progressBar)
progressBar
- Progress bar to display progress.public XProgressBarListener(JProgressBar progressBar, int startValue, int stopValue)
progressBar
- Progress bar to display progress.startValue
- When the progress listener begins, this will be
the displayed value on the progress bar.stopValue
- When the progress listener is completed, this will
be the displayed value on the progress bar.Method Detail |
---|
public void updateProgress(int progress, int maxProgress)
XProgressListener
updateProgress
in interface XProgressListener
progress
- Current progress step achieved.maxProgress
- Maximal progress steps available.public boolean isAborted()
isAborted
in interface XProgressListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |