public static class IlvThreadedActivityMonitor.ActivityEvent extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVITY_ADDED
A type of event indicating that a new activity was registered for monitoring.
|
static int |
ACTIVITY_PROGRESS
A type of event indicating that the progress of an activity has changed.
|
static int |
ACTIVITY_REMOVED
A type of event indicating that a registered activity was removed.
|
Constructor and Description |
---|
ActivityEvent(Object activity,
int eventType,
int progress,
String status)
Constructs a new event.
|
Modifier and Type | Method and Description |
---|---|
Object |
getActivity()
Returns the activity which has changed.
|
int |
getEventType()
Returns the type of event which happened.
|
int |
getProgress()
Returns the progress (in percentage) of the activity.
|
String |
getStatus()
Returns a string describing the current status of the activity.
|
public static final int ACTIVITY_ADDED
public static final int ACTIVITY_PROGRESS
public static final int ACTIVITY_REMOVED
public ActivityEvent(Object activity, int eventType, int progress, String status)
activity
- The activity concerned by this event.eventType
- The type of activity change.progress
- The progress (in percentage) of the activity.status
- A string describing the current status of the activity.public Object getActivity()
public int getEventType()
ACTIVITY_ADDED
,
ACTIVITY_PROGRESS
,
ACTIVITY_REMOVED
public int getProgress()
public String getStatus()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.