|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gadgets.ActivityProgressWorker
com.partnersoft.modules.inspection.app.InspectionProgressWorker
public class InspectionProgressWorker
Handles parsing a list of data IDs to attempt and create Inspections. Can be setup to only inspect specific data types and to pause between inspections. Stores map's original selection and center position before inspection begins and restores when finished or canceled. Each object assigns itself to the passed ActivityProgressControl as it's worker, and setups up it's current activity and description.
Copyright 2008 Partner Software
| Field Summary | |
|---|---|
protected com.partnersoft.maps.app.MapApp |
app
|
protected InspectionProgressBar |
bar
|
protected com.partnersoft.gui.ActivityProgressControl |
control
|
protected com.partnersoft.data.Naming |
copyData
|
protected java.util.List<java.lang.Integer> |
dataIds
|
protected java.util.List<java.lang.String> |
dataTypes
|
protected long |
delay
|
protected InspectionKit |
kit
|
protected boolean |
useDelay
|
| Constructor Summary | |
|---|---|
InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData)
Creates an InspectionProgressWorker. |
|
InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.String> dataTypes,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData)
Creates an InspectionProgressWorker. |
|
InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.String> dataTypes,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData,
boolean useDelay)
Creates an InspectionProgressWorker. |
|
InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.String> dataTypes,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData,
boolean useDelay,
long delay)
Creates an InspectionProgressWorker. |
|
| Method Summary | |
|---|---|
void |
run()
|
| Methods inherited from class com.partnersoft.gadgets.ActivityProgressWorker |
|---|
cancelWork, finishedWorking, isCanceled, isPaused, keepRunning, setPause, startRunning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InspectionProgressBar bar
protected com.partnersoft.gui.ActivityProgressControl control
protected java.util.List<java.lang.String> dataTypes
protected java.util.List<java.lang.Integer> dataIds
protected com.partnersoft.maps.app.MapApp app
protected InspectionKit kit
protected com.partnersoft.data.Naming copyData
protected long delay
protected boolean useDelay
| Constructor Detail |
|---|
public InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData)
app - - Valid app, used for selection,centering, and map data.kit - - InspectionKit to use for creating inspections.control - - The ActivityProgressControl that is monitoring this Worker.dataIds - - list of Integer map Data IDs to inspect.
public InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.String> dataTypes,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData)
app - - Valid app, used for selection,centering, and map data.kit - - InspectionKit to use for creating inspections.control - - The ActivityProgressControl that is monitoring this Worker.dataTypes - - A list of string data types to inspect. Only map items matching these types will be inspected.
If dataTypes is null, every item is inspected.dataIds - - list of Integer map Data IDs to inspect.
public InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.String> dataTypes,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData,
boolean useDelay)
app - - Valid app, used for selection,centering, and map data.kit - - InspectionKit to use for creating inspections.control - - The ActivityProgressControl that is monitoring this Worker.dataTypes - - A list of string data types to inspect. Only map items matching these types will be inspected.
If dataTypes is null, every item is inspected.dataIds - - list of Integer map Data IDs to inspect.useDelay - - Pauses for 15ms between inspections if true.
public InspectionProgressWorker(com.partnersoft.maps.app.MapApp app,
InspectionKit kit,
com.partnersoft.gui.ActivityProgressControl monitor,
InspectionProgressBar bar,
java.util.List<java.lang.String> dataTypes,
java.util.List<java.lang.Integer> dataIds,
com.partnersoft.data.Naming copyData,
boolean useDelay,
long delay)
app - - Valid app, used for selection,centering, and map data.kit - - InspectionKit to use for creating inspections.control - - The ActivityProgressControl that is monitoring this Worker.dataTypes - - A list of string data types to inspect. Only map items matching these types will be inspected.
If dataTypes is null, every item is inspected.dataIds - - list of Integer map Data IDs to inspect.useDelay - - Pauses for passed delay between inspections if true.delay - - Number of ms to pause between inspections.| Method Detail |
|---|
public void run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||