abstract class SampThread
extends java.lang.Thread
#runSamp
method to do the work;
any resulting SampException will be suitably displayed to the user.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errText_ |
private java.lang.String |
errTitle_ |
private java.awt.Component |
parent_ |
Constructor and Description |
---|
SampThread(java.awt.Component parent,
java.lang.String errTitle,
java.lang.String errText)
Constructs a SampThread given a parent component.
|
SampThread(java.util.EventObject evt,
java.lang.String errTitle,
java.lang.String errText)
Constructs a SampThread given an event object with a source which
presumably corresponds to a parent component.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
protected abstract void |
sampRun()
Called from the
run() method. |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private final java.awt.Component parent_
private final java.lang.String errTitle_
private final java.lang.String errText_
public SampThread(java.awt.Component parent, java.lang.String errTitle, java.lang.String errText)
parent
- parent componenterrTitle
- title of error window if one is needederrText
- text of error messsage if one is neededpublic SampThread(java.util.EventObject evt, java.lang.String errTitle, java.lang.String errText)
evt
- triggering eventerrTitle
- title of error window if one is needederrText
- text of error messsage if one is neededprotected abstract void sampRun() throws SampException
run()
method.SampException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread