public class IlvThreadedActivityMonitor extends Object
Modifier and Type | Class and Description |
---|---|
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 . |
Modifier and Type | Field and Description |
---|---|
static int |
INDETERMINATE
This value is used to indicate that the progress is indeterminate.
|
Constructor and Description |
---|
IlvThreadedActivityMonitor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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)
Registers a 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.
|
public static int INDETERMINATE
public IlvThreadedActivityMonitor()
public void registerThreadedActivity(Object activity)
activity
- The object whose task should be monitored.public void addActivityListener(IlvThreadedActivityMonitor.ActivityListener listener)
listener
- The ActivityListener
to add.public void removeActivityListener(IlvThreadedActivityMonitor.ActivityListener listener)
listener
- The ActivityListener
to remove.public void unregisterThreadedActivity(Object activity)
activity
- The object whose activity should be monitored.public int getOverallProgress()
public String getOverallStatus()
public void updateActivityProgress(Object activity, int progress, String message)
activity
- The activity whose status must be updated.progress
- The progress of the activity in percentage.message
- The message to display on the progress bar, or null
for percentage display.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.