org.yasl.jarinspector.component
Class JarInspProgressThread

java.lang.Object
  extended byorg.yasl.progress.ProgressThread
      extended byorg.yasl.jarinspector.component.JarInspProgressThread
All Implemented Interfaces:
DynamicJarLoaderStatus, Runnable

public class JarInspProgressThread
extends ProgressThread
implements DynamicJarLoaderStatus

Version:
1.0
Author:
Jeff Chapman

Field Summary
 
Fields inherited from class org.yasl.progress.ProgressThread
taskCancelled, taskStatus
 
Fields inherited from interface org.yasl.jars.DynamicJarLoaderStatus
MSSGID_FINDINGCLASSES, MSSGID_FINDINGJARFILES, MSSGID_FINDINGRESOURCES, MSSGID_LOADINGCLASSES
 
Constructor Summary
JarInspProgressThread(JarInfoModel jarInfoModel)
           
 
Method Summary
 void cancelTask()
           
 void jarLoadStatus(int mssgId, String mssg)
          Records the status of the jar loading process for display to user.
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
 
Methods inherited from class org.yasl.progress.ProgressThread
setTaskStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarInspProgressThread

public JarInspProgressThread(JarInfoModel jarInfoModel)
Method Detail

cancelTask

public void cancelTask()
Overrides:
cancelTask in class ProgressThread

run

public void run()
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

Specified by:
run in interface Runnable

jarLoadStatus

public void jarLoadStatus(int mssgId,
                          String mssg)
Records the status of the jar loading process for display to user. The implementing class will handle creating the message to display to the user.

The mssgId integer refers to one of the MSSGID constants.

The mssg String value depends on the particular MSSGID: MSSGID_FINDINGJARFILES = jar file name MSSGID_FINDINGCLASSES = jar file name MSSGID_FINDINGRESOURCES = jar file name MSSGID_LOADINGCLASSES = class name

Specified by:
jarLoadStatus in interface DynamicJarLoaderStatus
Parameters:
mssgId - int
mssg - String