|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvNamedProperty
ilog.views.swing.IlvThreadedActivityMonitorProperty
public class IlvThreadedActivityMonitorProperty
This class defines a named property that is used to store the
monitored threaded activities in an 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.
}
});
| Field Summary | |
|---|---|
static String |
NAME
The name of the property. |
| Constructor Summary | |
|---|---|
IlvThreadedActivityMonitorProperty(IlvThreadedActivityMonitor monitor)
Creates a new IlvThreadedActivityMonitorProperty object with the
specified activity monitor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.views.IlvNamedProperty |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public IlvThreadedActivityMonitorProperty(IlvThreadedActivityMonitor monitor)
IlvThreadedActivityMonitorProperty object with the
specified activity monitor.
monitor - activity monitor.| Method Detail |
|---|
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 IlvNamedPropertypublic 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||