|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.unex.sextante.gui.core.DefaultTaskMonitor
public class DefaultTaskMonitor
A simple task monitor, which just shows a progress monitor
Constructor Summary | |
---|---|
DefaultTaskMonitor(java.lang.String sText,
boolean bDeterminate,
javax.swing.JDialog parent)
Creates a new task monitor |
Method Summary | |
---|---|
void |
close()
Closes the monitor. |
boolean |
isCanceled()
Returns rue is the task that is being monitored has been canceled using this monitor |
void |
setDeterminate(boolean bDeterminate)
Set whether the process is determinate or not |
void |
setProcessDescription(java.lang.String sDescription)
Sets the description of the process being monitored |
void |
setProgress(int iStep)
Sets the current progress |
void |
setProgress(int iStep,
int iTotalNumberOfSteps)
Sets the current progress |
void |
setProgressText(java.lang.String sText)
Sets the current text to display by this task monitor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTaskMonitor(java.lang.String sText, boolean bDeterminate, javax.swing.JDialog parent)
sText
- the text to show in the top bar of the progress monitorbDeterminate
- whether the process to monitor is determinate (the
number of total steps to complete is known)parent
- the parent component. If null, the main frame will be usedMethod Detail |
---|
public boolean isCanceled()
ITaskMonitor
isCanceled
in interface ITaskMonitor
public void setProgress(int iStep)
ITaskMonitor
setProgress
in interface ITaskMonitor
iStep
- the current progress, in percentage (0-100)public void setProgressText(java.lang.String sText)
ITaskMonitor
setProgressText
in interface ITaskMonitor
sText
- The text to displaypublic void close()
ITaskMonitor
close
in interface ITaskMonitor
public void setProgress(int iStep, int iTotalNumberOfSteps)
ITaskMonitor
setProgress
in interface ITaskMonitor
iStep
- the current stepiTotalNumberOfSteps
- the total number of steps in the taskpublic void setDeterminate(boolean bDeterminate)
ITaskMonitor
setDeterminate
in interface ITaskMonitor
bDeterminate
- whether the process to monitor is determinate (the
number of total steps to complete is known)public void setProcessDescription(java.lang.String sDescription)
ITaskMonitor
setProcessDescription
in interface ITaskMonitor
sDescription
- the description of the process being monitored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |