public class IlvThreadedActivityMonitorProperty extends IlvNamedProperty
IlvManager containing map data.
Example of use:
final IlvThreadedActivityMonitor mon = IlvThreadedActivityMonitorProperty.GetThreadedActivityMonitor(view.getManager());
// Create a bean displaying the threaded activities
IlvThreadedActivityMonitorPanel swingPanel=new IlvThreadedActivityMonitorPanel(mon);
statusPanel.add(swingPanel, BorderLayout.LINE_END);
...
Thread t=new Thread(new Runnable() {
public void run() {
Object activityID= ...;
...
mon.updateActivityProgress(activityID,10,"10% done");
...
mon.unregisterThreadedActivity(activityID);// or set progress to 100.
}
});
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of the property.
|
| Constructor and Description |
|---|
IlvThreadedActivityMonitorProperty(IlvThreadedActivityMonitor monitor)
Creates a new
IlvThreadedActivityMonitorProperty object with the
specified activity monitor. |
| Modifier and Type | Method and Description |
|---|---|
IlvNamedProperty |
copy()
Copies the property.
|
IlvThreadedActivityMonitor |
getActivityMonitor()
Returns the activity monitor of this property.
|
static IlvThreadedActivityMonitor |
GetThreadedActivityMonitor(IlvManager manager)
Returns the activity monitor of a manager (creates one if necessary).
|
boolean |
isPersistent()
Returns
true if the property can be saved. |
void |
write(IlvOutputStream stream)
Writes the property to an
IlvOutputStream. |
getNamepublic static final String NAME
public IlvThreadedActivityMonitorProperty(IlvThreadedActivityMonitor monitor)
IlvThreadedActivityMonitorProperty object with the
specified activity monitor.monitor - The activity monitor.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream.write in interface IlvPersistentObjectwrite in class IlvNamedPropertystream - The output stream.IOException - If an I/O exception occurs.public IlvNamedProperty copy()
copy in class IlvNamedPropertyIlvThreadedActivityMonitorProperty.public boolean isPersistent()
true if the property can be saved.isPersistent in class IlvNamedPropertytrue.public IlvThreadedActivityMonitor getActivityMonitor()
public static IlvThreadedActivityMonitor GetThreadedActivityMonitor(IlvManager manager)
manager - The manager.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.