Through the
JobManager
an extension can add and remove
Job
s. If
a point product supports this API it will check for running jobs upong quitting, giving
the user a chance to abort the shut down. Therefor it is vital to remove any
Job
if it has finished.
public function JobManager()
Constructs the JobManager
.
public function addJob(job:Job):Boolean
Add the given Job
. Will return true
if the Job
was successfully added at the point product.
Parameters
| job:Job — The Job to add.
|
Returns
| Boolean — true if the Job was added successfully; else
false .
|
public function jobs():ArrayCollection
Returns a list of all currently running Job
s for this extension. The list
shouldn't be modified.
Returns
| ArrayCollection — The list of currently running Job s.
|
public function removeJob(job:Job):Boolean
Removes the given Job
. Will return true
if the Job
was successfully removed at the point product.
Parameters
| job:Job — The Job to remove.
|
Returns
| Boolean — true if the Job was removed successfully; else
false .
|
Copyright © 2010 Adobe Systems Incorporated. All Rights Reserved.