|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.swing.IlvThreadedActivityMonitor
public class IlvThreadedActivityMonitor
This class manages a list of threaded activities. Activities (i.e. tasks) shall notify this controller of their progress. All activity listeners registered with this controller will be notified in their turn of any activity progress.
| Nested Class Summary | |
|---|---|
static class |
IlvThreadedActivityMonitor.ActivityEvent
An event representing a change in an activity |
static interface |
IlvThreadedActivityMonitor.ActivityListener
An activity listener that will be notified of activity changes in this IlvThreadedActivityMonitor. |
| Field Summary | |
|---|---|
static int |
INDETERMINATE
This value is used to indicate that the progress is indeterminate |
| Constructor Summary | |
|---|---|
IlvThreadedActivityMonitor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addActivityListener(IlvThreadedActivityMonitor.ActivityListener listener)
Adds an activity listener to this controller |
int |
getOverallProgress()
Gets the overall progress of all tasks being monitored |
String |
getOverallStatus()
Gets the overall status of all tasks being monitored |
void |
registerThreadedActivity(Object activity)
Register an task to be monitored. |
void |
removeActivityListener(IlvThreadedActivityMonitor.ActivityListener listener)
Removes an activity listener from this controller |
void |
unregisterThreadedActivity(Object activity)
Removes this task from the list of tasks being monitored |
void |
updateActivityProgress(Object activity,
int progress,
String message)
Updates the status of the specified activity with specified progress parameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int INDETERMINATE
| Constructor Detail |
|---|
public IlvThreadedActivityMonitor()
| Method Detail |
|---|
public void registerThreadedActivity(Object activity)
activity - the object whose task should be monitoredpublic void addActivityListener(IlvThreadedActivityMonitor.ActivityListener listener)
listener - the ActivityListener to addpublic void removeActivityListener(IlvThreadedActivityMonitor.ActivityListener listener)
listener - the ActivityListener to removepublic void unregisterThreadedActivity(Object activity)
activity - the object whose activity should be monitoredpublic int getOverallProgress()
public String getOverallStatus()
public void updateActivityProgress(Object activity,
int progress,
String message)
activity - the activity whose status must be updatedprogress - the progress of the activity in percentmessage - the message to display on the progress bar, or null for percentage display.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||