|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSubProgressMonitor
com.ibm.ram.client.status.RAMStatusMonitor
public class RAMStatusMonitor
Monitors progress. This monitor uses a given amount of work ticks from a parent monitor, and can be used as follows:
try {
pm.beginTask("Main Task", 100);
doSomeWork(pm, 30);
RAMStatusPorgressMonitor subMonitor= new RAMStatusPorgressMonitor(pm, 40);
try {
subMonitor.beginTask("", 300);
doSomeWork(subMonitor, 300);
} finally {
subMonitor.done();
}
doSomeWork(pm, 30);
} finally {
pm.done();
}
| Constructor Summary | |
|---|---|
RAMStatusMonitor()
Creates a RAMStatus Monitor based on NullProgress monitor |
|
RAMStatusMonitor(IProgressMonitor monitor,
int ticks)
Creates a new sub-progress monitor for the given monitor. |
|
RAMStatusMonitor(IProgressMonitor monitor,
int ticks,
int style)
Creates a new sub-progress monitor for the given monitor. |
|
| Method Summary | |
|---|---|
void |
appendStatus(java.lang.Object targetObject,
int severity,
int code,
java.lang.String message,
java.lang.Throwable exception)
This method is called when a mojor status update is encountered by the client. |
RAMStatus |
getStatus()
|
void |
setCanceled(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RAMStatusMonitor()
public RAMStatusMonitor(IProgressMonitor monitor,
int ticks,
int style)
monitor - the parent progress monitorticks - the number of work ticks allocated from the
parent monitor
public RAMStatusMonitor(IProgressMonitor monitor,
int ticks)
monitor - the parent progress monitorticks - the number of work ticks allocated from the
parent monitorstyle - one of
SUPPRESS_SUBTASK_LABEL PREPEND_MAIN_LABEL_TO_SUBTASK #SUPPRESS_SUBTASK_LABEL,
#PREPEND_MAIN_LABEL_TO_SUBTASK| Method Detail |
|---|
public RAMStatus getStatus()
public void setCanceled(boolean b)
public void appendStatus(java.lang.Object targetObject,
int severity,
int code,
java.lang.String message,
java.lang.Throwable exception)
object - severity - code - message - exception -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||