|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.common.monitor.ProgressMonitorWrapper
public class ProgressMonitorWrapper
| Constructor Summary | |
|---|---|
ProgressMonitorWrapper(ProgressMonitor delegate)
|
|
| Method Summary | |
|---|---|
void |
beginTask(double totalWork,
I18n name,
java.lang.Object... params)
Start work on the task, specifying the total amount of work that this task constitutes. |
ProgressMonitor |
createSubtask(double subtaskWork)
Create a subtask with the given about of work. |
void |
done()
Mark this task as being completed. |
java.lang.String |
getActivityName()
Get the name of the activity. |
ProgressStatus |
getStatus(java.util.Locale locale)
Return the current status of this activity, localized to the specified locale. |
ProgressMonitor |
getWrappedMonitor()
|
boolean |
isCancelled()
Returned whether this activity has been cancelled. |
void |
setCancelled(boolean value)
Set the cancelled state of this activity. |
void |
worked(double work)
Report work completed for this task. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressMonitorWrapper(ProgressMonitor delegate)
| Method Detail |
|---|
public ProgressMonitor getWrappedMonitor()
public void beginTask(double totalWork,
I18n name,
java.lang.Object... params)
beginTask in interface ProgressMonitortotalWork - the total number of work units for the taskname - the name of the taskparams - the parameters for localizationpublic ProgressMonitor createSubtask(double subtaskWork)
ProgressMonitor.beginTask(double, I18n, Object...))
and finished (ProgressMonitor.done()).
createSubtask in interface ProgressMonitorsubtaskWork - the number of work units for this subtask
public void done()
done in interface ProgressMonitorpublic java.lang.String getActivityName()
subtasks should have the same name.
getActivityName in interface ProgressMonitorpublic ProgressStatus getStatus(java.util.Locale locale)
subtask,
this method returns the status of the subtask.
getStatus in interface ProgressMonitorlocale - the locale in which the status is to be represented; if null, the default locale
will be used
public boolean isCancelled()
cancelled.
isCancelled in interface ProgressMonitorpublic void setCancelled(boolean value)
false.
setCancelled in interface ProgressMonitorvalue - true if requesting the activity be cancelled.public void worked(double work)
worked in interface ProgressMonitorwork - the number of work units that have been worked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||