Package org.jmol.script
Class FileLoadThread
- java.lang.Object
-
- java.lang.Thread
-
- org.jmol.thread.JmolThread
-
- org.jmol.script.FileLoadThread
-
- All Implemented Interfaces:
Runnable
class FileLoadThread extends JmolThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description private String
cacheName
(package private) String
fileName
private String
key
-
Fields inherited from class org.jmol.thread.JmolThread
CHECK1, CHECK2, CHECK3, currentTime, eval, FINISH, haveReference, hoverEnabled, INIT, isJS, isReset, lastRepaintTime, MAIN, name, sc, sleepTime, startTime, stopped, targetTime, useTimeout, vwr
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description FileLoadThread(JmolScriptEvaluator eval, Viewer vwr, String fileName, String key, String cacheName)
JavaScript only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
run1(int mode)
(package private) void
setData(String fileName, String fileName0, Object data, Object myData)
Called by Jmol._loadFileAsyncDone(this.vwr.html5Applet).-
Methods inherited from class org.jmol.thread.JmolThread
checkInterrupted, interrupt, oops, reset, resumeEval, run, runSleep, setEval, setManager, setViewer, start
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
FileLoadThread
public FileLoadThread(JmolScriptEvaluator eval, Viewer vwr, String fileName, String key, String cacheName)
JavaScript only- Parameters:
eval
-vwr
-fileName
-key
-cacheName
-
-
-
Method Detail
-
run1
protected void run1(int mode) throws InterruptedException
- Specified by:
run1
in classJmolThread
- Throws:
InterruptedException
-
setData
void setData(String fileName, String fileName0, Object data, Object myData) throws InterruptedException
Called by Jmol._loadFileAsyncDone(this.vwr.html5Applet). Allows for callback to set the file name.- Parameters:
fileName
-fileName0
-data
-myData
- unused in Jmol- Throws:
InterruptedException
-
-