|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.progress.NullProgressMonitor
public class NullProgressMonitor
ProgressMonitor
implementation that does nothing.
Constructor Summary | |
---|---|
NullProgressMonitor()
|
Method Summary | |
---|---|
void |
done()
Notifies that the work is done; that is, either the main task is completed or the user cancelled it. |
boolean |
isCanceled()
Returns true if the user does some UI action to cancel this operation. |
void |
setCanceled(boolean b)
Attempts to cancel the monitored task. |
void |
subTaskStarted(String name)
Notifies that a subtask of the main task is beginning. |
void |
taskStarted(String name,
int totalWork)
Notifies that the main task is beginning. |
void |
worked(int work)
Notifies that a percentage of the work has been completed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullProgressMonitor()
Method Detail |
---|
public void done()
ProgressMonitor
done
in interface ProgressMonitor
public boolean isCanceled()
ProgressMonitor
isCanceled
in interface ProgressMonitor
public void setCanceled(boolean b)
ProgressMonitor
setCanceled
in interface ProgressMonitor
public void subTaskStarted(String name)
ProgressMonitor
subTaskStarted
in interface ProgressMonitor
name
- the name (or description) of the subtaskpublic void taskStarted(String name, int totalWork)
ProgressMonitor
taskStarted
in interface ProgressMonitor
name
- the name (or description) of the main tasktotalWork
- the total number of work units into which the main task is
been subdivided. If the value is 0 or UNKNOWN the
implemenation is free to indicate progress in a way which
doesn't require the total number of work units in advance. In
general users should use the UNKNOWN value if they don't know
the total amount of work units.public void worked(int work)
ProgressMonitor
worked
in interface ProgressMonitor
work
- the percentage complete (0..100)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |