Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.kelp.common
Class KelpTool  view KelpTool download KelpTool.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.enhydra.kelp.common.KelpTool
All Implemented Interfaces:
org.enhydra.tool.common.event.CancelListener, java.util.EventListener, java.lang.Runnable

public class KelpTool
extends java.lang.Thread
implements org.enhydra.tool.common.event.CancelListener


Field Summary
private  boolean fresh
           
private  java.util.Vector progVector
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
KelpTool()
           
 
Method Summary
 void addProgressListener(org.enhydra.tool.common.event.ProgressListener l)
           
 org.enhydra.tool.common.event.ProgressListener[] getProgressListeners()
           
 boolean isFresh()
           
 void onCancel(org.enhydra.tool.common.event.CancelEvent event)
           
 void refreshProgress(int progress, java.lang.String message)
           
 void removeProgressListener(org.enhydra.tool.common.event.ProgressListener l)
           
 void setFresh(boolean b)
          Make the thread stale so it stops running gracefully.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

progVector

private java.util.Vector progVector

fresh

private boolean fresh
Constructor Detail

KelpTool

public KelpTool()
Method Detail

setFresh

public void setFresh(boolean b)
Make the thread stale so it stops running gracefully.


isFresh

public boolean isFresh()

getProgressListeners

public org.enhydra.tool.common.event.ProgressListener[] getProgressListeners()

addProgressListener

public void addProgressListener(org.enhydra.tool.common.event.ProgressListener l)

removeProgressListener

public void removeProgressListener(org.enhydra.tool.common.event.ProgressListener l)

refreshProgress

public void refreshProgress(int progress,
                            java.lang.String message)

onCancel

public void onCancel(org.enhydra.tool.common.event.CancelEvent event)
Specified by:
onCancel in interface org.enhydra.tool.common.event.CancelListener