public class IlvThreadMonitoringData extends Object
Call updateProgress(int) to correct the progress of this
subactivity so that it falls inside the minimum and maximum parameters
supplied to this object.
| Constructor and Description |
|---|
IlvThreadMonitoringData(IlvThreadedActivityMonitor monitor,
Object activity,
String description,
int min,
int max)
Creates a subactivity monitoring utility class.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getActivity()
Returns the activity ID.
|
String |
getDescription()
Returns the subactivity description.
|
int |
getMax()
Returns the value of activity advancement when a subactivity ends.
|
int |
getMin()
Returns the value of activity advancement when a subactivity starts.
|
IlvThreadedActivityMonitor |
getMonitor()
Returns the activity monitor used.
|
void |
setActivity(Object activity)
Sets the activity ID.
|
void |
setDescription(String description)
Sets the activity description.
|
void |
setMax(int max)
Sets the value of activity advancement when a subactivity ends.
|
void |
setMin(int min)
Sets the value of activity advancement when a subactivity starts.
|
void |
updateProgress(int percent)
Updates the activity percentage according to the progress of the
subactivity.
|
public IlvThreadMonitoringData(IlvThreadedActivityMonitor monitor, Object activity, String description, int min, int max)
monitor - The monitor managing the activities.activity - The activity id.description - The description of this subactivity.min - minimum The minimum progress when subactivity starts. This
value must be in the range 0 to 100.max - maximum The maximum progress when subactivity ends. This
value must be in the range 0 to 100.public void updateProgress(int percent)
percent - The advancement percentage of the activity. This value
must be in the range 0 to 100.public Object getActivity()
public void setActivity(Object activity)
activity - The activity ID.public String getDescription()
public void setDescription(String description)
description - The activity description.public int getMax()
public void setMax(int max)
max - The value of activity advancement when a subactivity ends.public int getMin()
public void setMin(int min)
min - The value of activity advancement when a subactivity starts.public IlvThreadedActivityMonitor getMonitor()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.