com.japisoft.xmlpad.toolkit
Class JobManager

java.lang.Object
  extended bycom.japisoft.xmlpad.toolkit.JobManager
All Implemented Interfaces:
java.lang.Runnable

public final class JobManager
extends java.lang.Object
implements java.lang.Runnable

Toolkit for asynchronous working. Useful for sample for the real time synchronization between the text and the tree

Version:
1.2
Author:
(c) 2003 JAPISOFT / Alexandre Brillant
See Also:
Job

Field Summary
static JobManager COMMON_MANAGER
           
static int JOB_DELAY
          Delay for job.
 
Constructor Summary
JobManager()
           
 
Method Summary
static void addJob(Job run)
          Add a new job.
 void dispose()
          Dispose the current manager.
 boolean isTerminated(java.lang.String jobName)
           
 void releaseWaiterForNoJob()
           
 void run()
           
static void setJobManagerListener(JobManagerListener vlistener)
          Set a listener about current job
 void waitForNoJob()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_DELAY

public static int JOB_DELAY
Delay for job. This is a way to manage the parsing frequency


COMMON_MANAGER

public static JobManager COMMON_MANAGER
Constructor Detail

JobManager

public JobManager()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

setJobManagerListener

public static void setJobManagerListener(JobManagerListener vlistener)
Set a listener about current job


addJob

public static void addJob(Job run)
Add a new job. It will be managed when possible


dispose

public void dispose()
Dispose the current manager. It will stop the Thread


isTerminated

public boolean isTerminated(java.lang.String jobName)
Returns:
true if this job is terminated or has not been managed

releaseWaiterForNoJob

public void releaseWaiterForNoJob()

waitForNoJob

public void waitForNoJob()