jas.jds.module
Interface LocalJobBuilder


public interface LocalJobBuilder

The application will provide a LocalJobBuilder to all LocalDIMs. Those DIMs must use the LocalJobBuilder to create a new local job.

See Also:
LocalDIM

Method Summary
 void clearProgressModel()
           
 void createJob(java.lang.String dataSourceName)
          Tells the Job Builder to create a job, which it does by calling the DIM's openDataSet method with the specified dataSourceName.
 void setEventSource(EventSource source)
          Allows a LocalDIM to delay setting the EventSource in the case that opening the EventSouce may take a long time.
 void setMessage(java.lang.String message)
          Puts a message in the message window (e.g.
 void setProgressModel(javax.swing.BoundedRangeModel model)
          Enables the event source to take control of the progress meter, so the user can be given feedback on what is going on.
 

Method Detail

createJob

public void createJob(java.lang.String dataSourceName)
Tells the Job Builder to create a job, which it does by calling the DIM's openDataSet method with the specified dataSourceName.
See Also:
AbstractDIM.openDataSet(String)

setMessage

public void setMessage(java.lang.String message)
Puts a message in the message window (e.g. "loading data...")

setProgressModel

public void setProgressModel(javax.swing.BoundedRangeModel model)
Enables the event source to take control of the progress meter, so the user can be given feedback on what is going on.

clearProgressModel

public void clearProgressModel()

setEventSource

public void setEventSource(EventSource source)
Allows a LocalDIM to delay setting the EventSource in the case that opening the EventSouce may take a long time. In this case the LocalDIM may return null from its openDataSet method, and instead call this method later when the EventSource is ready.
Parameters:
source - The newly opened EventSource to be added to the job.
See Also:
AbstractDIM.openDataSet(String)