public class NullActionMonitor extends java.lang.Object implements IActionMonitor
ACTION_DETAIL, HIGH, HIGHLEVEL_DETAIL, LOW, MEDIUM, NO_DETAIL, VERBOSE_DETAIL| Constructor and Description |
|---|
NullActionMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(java.lang.String sMessage)
Post an action message to the monitor.
|
void |
beginTask(java.lang.String name,
int totalWork)
Notifies that the main task is beginning.
|
void |
checkCancel() |
void |
done()
Notifies that the work is done; that is, either the main task is completed
or the user canceled it.
|
int |
getDetailLevel()
Suppling the detail level to the interface consumer is an optimization that allows
the consumer to avoid generating potentially expensive messages that will not be
utilized.
|
void |
highLevel(java.lang.String sMessage)
Post a high level message to the monitor.
|
boolean |
isCanceled()
Returns whether cancelation of current operation has been requested.
|
void |
setItemCount(int count,
int level) |
void |
subTask(java.lang.String name)
Notifies that a subtask of the main task is beginning.
|
void |
verbose(java.lang.String sMessage)
Post a verbose message to the monitor.
|
void |
worked(int work)
Notifies that a given number of work unit of the main task
has been completed.
|
public void checkCancel()
checkCancel in interface IActionMonitorpublic void verbose(java.lang.String sMessage)
IActionMonitorverbose in interface IActionMonitorsMessage - The verbose message to display.public void highLevel(java.lang.String sMessage)
IActionMonitorhighLevel in interface IActionMonitorsMessage - The high level message to display.public void action(java.lang.String sMessage)
IActionMonitoraction in interface IActionMonitorsMessage - The action message to display.public int getDetailLevel()
IActionMonitorgetDetailLevel in interface IActionMonitorNO_DETAIL,
ACTION_DETAIL,
HIGHLEVEL_DETAIL,
VERBOSE_DETAILpublic void beginTask(java.lang.String name,
int totalWork)
IActionMonitorbeginTask in interface IActionMonitorname - 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 UNKNOWN
the implemenation is free to indicate progress in a way which
doesn't require the total number of work units in advance.public void done()
IActionMonitordone in interface IActionMonitorpublic boolean isCanceled()
IActionMonitorisCanceled in interface IActionMonitortrue if cancellation has been requested,
and false otherwise#setCanceledpublic void subTask(java.lang.String name)
IActionMonitorsubTask in interface IActionMonitorname - the name (or description) of the subtaskpublic void worked(int work)
IActionMonitorworked in interface IActionMonitorwork - the number of work units just completedpublic void setItemCount(int count,
int level)
setItemCount in interface IActionMonitor